hi
how can i use whole words like 'north' for the mob to move north?
thanks
ID:267673
Aug 13 2003, 9:04 am
|
|
Make yourself a variable to keep track of your text directions like so:
var/global/list/text_dir=list("north"=1,"south"=2,"east"=4," west"=8)
After that, if you want to move a movable object in a specific direction, just call the appropriate procedure with your text_dir variable as an argument.
Examples:
Move(get_step(src,text_dir("north")))//This will move you one step north.
walk(src,text_dir("east"))//This will make you continually walk to the east.
[edit]
I just woke up this morning thinking about this for some reason: I realised that I made a mistake here.
Fixed Examples:
Move(get_step(src,text_dir["north"]))//This will move you one step north.
walk(src,text_dir["east"])//This will make you continually walk to the east.