Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ ok im back again ;)

ok im back again ;)

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Typhon   USA  (112 posts)  Bio
Date Tue 01 Oct 2002 07:41 PM (UTC)
Message
well after another break im back to start coding.. im currently trying to code some more complex spells that only the person with a perticularily deity can cast... godspells. well fo some reason i cant get the if block to recognize wheteher your and imm or a mortal and if your a mortal if your devoted to a perticular god. for example this is the if statement im using:
if ( ( !IS_IMMORTAL(ch) )
&& ((!ch->pcdata->deity)
|| ((ch->pcdata->deity) && (str_cmp(ch->pcdata->deity->name, "Blade") ) ) ) )
{
send_to_char( "Blade has not deemed you worthy of casting this spell.\n\r", ch );
return rSPELL_FAILED;
}

if your a mortal char then it works correctly however if your immortal it still wotn let you cast the spell unless your devoted to the god. anyone have any ideas? i sure i just puthte () in the wrong spot :p

my second question is: im trying to make another spell that has 2 different affects. if cast on yourself it buffs you but if cast on someone else it spells them down. is there any spells int he stock code similar to this that i can use as an example or does anyone have an example i could look at i would really appreciate it :)
thanks - typ
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


7,621 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.