ID:149583
 
I wanna have an attack that freezes another person.
I dont want it to reach across the screen maybe just 3-5 squares and for the person to be frozen for like 5-10 seconds.How would i do this?im a n00b :(
if your a noob then post in the noob central. to freez something u first need to decide how u want to freez it. do you want a verb that someone can use that will freez the other player? if its just a simple verb to freez it (although u probable have something more extravagant planned) this is how u might start:

mob/var/frozen=0

mob/verb/freez(mob/M as mob in oview(1))
M.freezing()

mob/proc/freezing()
frozen=1
sleep(rand(50,100))
frozen=0

mob/Move()
if(frozen==0)..()
else usr<<"You cannot move while frozen!"

if you are a noob u should probably stick with some ez'er stuff (no offence).