mob
var
confunded=1
client
North()
if(usr.confunded==1)
South(usr, 1)
else
return
South()
if(usr.confunded==1)
North(usr, 1)
else
return
East()
if(usr.confunded==1)
West(usr, 1)
else
return
West()
if(usr.confunded==1)
East(usr, 1)
else
return
Problem description:now every time i press up down left or right i get this message:
<
runtime error: Maximum recursion level reached (perhaps there is an infinite loop)
To avoid this safety check, set world.loop_checks=0.
proc name: West (/client/West)
usr: VolksBlade (/mob)
src: VolksBlade (/client)
call stack:
VolksBlade (/client): West(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): West(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): West(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): West(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): West(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
...
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): East(VolksBlade (/mob), 1)
VolksBlade (/client): East()
Now, i dont think im doing the oposite direction thingy right, but i havent ever worked in the "if you press one way you the the other" coding before, so i need help...
This is my last post for the night, Good Night!
The problem is, that when player is Confunded, and try to step North, it calls South, which calls North and it keep calling it like that non-stop...