[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  ok im back again ;)

ok im back again ;)

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


Posted by Typhon   USA  (112 posts)  [Biography] 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
[Go to top] 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.


5,891 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]