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
➜ Adding stat rerolling function
Adding stat rerolling function
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Edgeofforever
(25 posts) Bio
|
Date
| Sun 24 Oct 2004 05:53 AM (UTC) |
Message
| If there is anywhere this has already been discussed, please direct me there.
I'm trying to create a function that will reroll stats on command. I already believe I know how to set up the actual rolling and where, (in the nanny function in mud.comm.c) and I also know how to create the loop, I just dont know how to call to the character and ask for input, then accept that input and compare it to see if the loop ends or not. Any help would be appriciated.
| Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #1 on Sun 24 Oct 2004 07:13 AM (UTC) |
Message
| What do you mean, on command? On who's command? The player? If thats the case, you would set it up like a regular command in the style of
void do_command(CHAR_DATA *ch, char*argument)
{
/* Perform function here */
}
In this circumstance, ch would point to your player. They would call such a function like any other command.
If you want to use a command that forces people to reroll, I would recommend copying another immortal command, something that uses get_char_world to find a target. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | 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.
11,918 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top