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 ➜ Little help with the fight system

Little help with the fight system

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


Posted by Rob Harper   (108 posts)  Bio
Date Wed 15 Oct 2003 04:59 PM (UTC)
Message
This was somthing I thought I could do originaly quite easy, but I cant seem to get a start, my plan was to in swr, is to have each attack, last 1 round and 1 round only, so you would type either kill or murder <name> and it would initiate one round of combat then stop, and you'd have to attack again to start, can anyone give me a hand with this one?
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Wed 15 Oct 2003 05:42 PM (UTC)
Message
Well, the function to call to stop a fight is " void stop_fighting( CHAR_DATA *ch, bool fBoth )". This will remove the character from the fight, and if you put the bool to true, it will stop all the people currently in that fight. Now, as to where to put this... You might consider the fight update, or possibly at the end of the kill command, as well as a few other places. Hope that helps some.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Rob Harper   (108 posts)  Bio
Date Reply #2 on Thu 16 Oct 2003 03:02 AM (UTC)
Message
Ahh, thanks I'll try that I thought there would be a if check somewhere, that if -insert unknown variable here- then return; and it would return to the begining till it didnt meet that -variable- wich is what I was looking for..if it's not there that would explaine why I couldnt find it, but thanks again man, I'll try this out.
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.


13,156 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.