>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?
[EDIT]
Doesn't work. mpsleep now just ends the whole prog. Here is what I have.
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];
}
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).
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).