turf
grass
icon = 'i.dmi'
mob
icon = 'i.dmi'
icon_state = "2"
var
HP =10
MP =10
obj/tornado
icon = 'i.dmi'
icon_state = "1"
New()
spawn(5)
del(src)
Bump(mob/M)
M << "You were hit by a tornado and blown back with it!"
M.HP -= 1
step(M,src.dir)
mob/verb/tornado()
set category = "Spell"
usr << "You cast a tornado spell!"
new/obj/tornado/T(usr.loc)
walk(T,usr.dir)
ID:171617
Aug 30 2004, 5:24 am
|
|
Below is my coding for a tornado ver that sends out a tornado and knocks a mob back. But im getting 2 errors. Can someone tell me whats wrong with this?
|
Aug 30 2004, 5:30 am
|
|
nevermind I fixed it.
|
I can see one problem, but it's always alot easier to understand when you tell us what the errors are.
mob/verb/tornado() just add another arg to the walk proc. walk(T,usr.dir,5) That defines the wait time (in 1/10ths of seconds) that T waits before stepping to another square. Play with that number until you get the right speed. |