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 ➜ Question about a player's state

Question about a player's state

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


Posted by Traditz   (2 posts)  Bio
Date Fri 30 May 2008 02:24 PM (UTC)
Message
Well the subject title is probably misleading as I really didn't know how to word it. But here's my question.

Is there a simple way to check to see if a character currently is not in combat? I know there is the fighting and position attributes under the character struct, but I'm not too sure if either of those would allow me to check to see if a character is in combat through an if statement.

Any help would be appreciated and I can try and give more details if needed.
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #1 on Fri 30 May 2008 09:31 PM (UTC)
Message
IS_FIGHTING there is that macro which you can use in if checks, or ch->fighting can also be used.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by Traditz   (2 posts)  Bio
Date Reply #2 on Sat 31 May 2008 09:41 PM (UTC)
Message
Thanks for the help, I had noticed ch->fighting earlier and was wondering if that could be used and now I've got my problem solved.
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.


12,735 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.