mob/var/test
mob
verb
Test()
set name = "Test"
set category = "Test"
if(usr.test == 1)
usr.test = 0
usr << " OFF!"
else
usr.test = 1
usr << "ON!"
flick("test",usr)
usr.invisibility = 1
if(usr.dir == NORTH)
usr.loc = locate(usr.x,usr.y+1,usr.z)
if(usr.dir == SOUTH)
usr.loc = locate(usr.x,usr.y-1,usr.z)
if(usr.dir == EAST)
usr.loc = locate(usr.x+1,usr.y,usr.z)
if(usr.dir == WEST)
usr.loc = locate(usr.x-1,usr.y,usr.z)
usr.invisibility = 0
flick("test",usr)
Problem description:
:P Continuous, what a word. I'm not going to lie, I had to look that one up. lol
Anyways! So I would like some assistance on what I can only assume would be looping. When I click test I want to move in the direction continuously until I click the verb again to stop it. Sounds easy enough, no? Well... I can't figure it out, and any help would be great. :D
Here's a very simplified version of how you might do this. Might not be perfect, but it's a start at should give you an idea.