Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
Entire forum
➜ SMAUG
➜ Running the server
➜ Smaug, mprog problem
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Sun 02 Jan 2005 09:49 PM (UTC) |
Message
| >speech_prog "I need a katana"
if class($n) == combatant
if iscarrying($n) == 154
say You have no need for another katana.
else
tsk $n
say Very well i shall provide you with another
mpoload 154
mpe Komosai walks across the cave vanishing into the shadows.
mpsleep 15
mpe He returns with a new katana in his hands.
mpsleep 8
say Here you go now be more careful with it!
give katana $n
endif
endif/code]
Ryo says 'i need a katana'
Komosai looks at Ryo and says 'tsk tsk tsk'.
Komosai says 'Very well i shall provide you with another'
Komosai walks across the cave vanishing into the shadows.
He returns with a new katana in his hands.
Komosai says 'Here you go now be more careful with it!'
Komosai gives a combatant's crystal katana to Ryo.
The above works fine. But if they have a katana...
Ryo says 'i need a katana'
Komosai says 'You have no need for another katana.'
He returns with a new katana in his hands.
Komosai says 'Here you go now be more careful with it!'
The above works, but then the prog continues right after the mpsleep, even though it should stop right after he says you don't need another. Whats wrong?
|
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #1 on Sun 02 Jan 2005 10:28 PM (UTC) Amended on Sun 02 Jan 2005 10:31 PM (UTC) by Nick Cash
|
Message
| |
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #2 on Sun 02 Jan 2005 10:37 PM (UTC) Amended on Sun 02 Jan 2005 10:51 PM (UTC) by Zeno
|
Message
| [EDIT]
Doesn't work. mpsleep now just ends the whole prog. Here is what I have.
for (count = 0; count < MAX_IFS; count++)
{
//for (count2 = 0; count2 < DO_ELSE; count2++) Old line
for (count2 = 0; count2 <= DO_ELSE; count2++)
ifstate[count][count2] =
current_mpsleep->ifstate[count][count2];
}
|
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #3 on Mon 03 Jan 2005 12:31 AM (UTC) Amended on Mon 03 Jan 2005 12:32 AM (UTC) by Nick Cash
|
Message
| I would go through and reinstall the mpsleep snippet you used and make sure you did everything correctly. Other then that I don't really know what to tell you. :(
I recall some times when I added things and hit one error that I could never get past, so I just ripped it out and redid everything and it all went away. Its worth a shot. I usually learn quite a bit in the process, as I tend to debug during the day, but do the majority of my coding at night or early morning when I'm tired (which makes me prone to errors). |
~Nick Cash
http://www.nick-cash.com | 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,550 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top