mob
Necromancer
verb
Angorodons_Gaze(mob/M as mob in view())
set category = "Spells"
set name = "Angorodon's Gaze"
set desc = "Steal 10,34,or 40 Health from foe.Takes 5 MP,5 seconds to recharge,and 1 second to activate."
var/random = rand(1,2)
if(usr.rechargeAG==1)
usr<<"You Need To Wait."
if(usr.rechargeAG==0)
usr.MP-=5
sleep(10)
if(random==1)
M.Health-=10
view()<<"[M] was hit with [usr]'s [src] for 10 damage!"
if(src.Health<=0)
deathcheck(M)
usr.rechargeAG=1
sleep(500)
usr.rechargeAG=0
if(usr.undercondition==1)
usr.Health+=1
if(random==2)
M.Health-=34
view()<<"[M] was hit with [usr]'s [src] for 34 damage!"
if(src.Health<=0)
deathcheck(M)
usr.rechargeAG=1
sleep(50)
usr.rechargeAG=0
if(usr.undercondition==1)
usr.Health+=7
Problem description:
umm, it doesnt make the person wait to attack, its like the little "rechargeAG" thing is never there setting it to 1, whats wrong here?
to this:
spawn(50) usr.rechargeAG=0
I suggest you research datums and build a skill system based on that. Another thing you'd benefit from is having a single list that contains all of your cooldown timers for your skills -- then you just use a loop to subtract from all of the timers in the loop. Much easier than trying to handle 50 different variables in that way.