How would i make a Movment Code ? like so that the player slows Down by wight and and so i can make Speed Spells for a RPG
thank you
ID:175929
Feb 26 2003, 5:27 am
|
|
Feb 26 2003, 5:28 am (Edited on Feb 26 2003, 5:41 am)
|
|
Theres a weight system some where in the demos.
|
In response to Siientx
|
|
just use
Move() if(src.move_lock == 1) return0//stop the move else if(src.walk_spell == 1)//if spell is casted sleep(0) else if(src.weight <= 50) sleep(2) if(src.weight > 50) sleep(4) or something like that. |
In response to Fint
|
|
sleep(src.weight), Sleep(0) should be return 0
Siientx |
In response to Siientx
|
|
in my own game i had shirts with a weight of 4 so when you had 2 in your contents you where moving very slow if you use sleep(src.weight), that y i used differend if commands.
and when a spell is caster a player still hast to walk or not? when you put return0 there you will stop walking. a well |