Techniques //New Datum
var
name = "" //Technique Name
list/owner = list() //The Owner (Used in saving)
uses = 0 //How many times it's been used
level = 0 //The Technique level
cooldown = 0 //Cooldown between jutsus
Uchiha
proc
Sharingan()
set name = "Sharingan"
set category = "Techniques"
if(usr.slot == 1)
src.owner.Add ("[usr.key]1")
if(src.cooldown <= 0 && usr.cooldown <= 0)
view() << output("<font color = #DC143C>[usr.Name]: Sharingan!</font>","chat")
if(src.cooldown > 0)
usr << output("You cant use this technique for [src.cooldown/10] more seconds!","chat")
if(usr.cooldown > 0)
usr << output("You cant use another technique yet! ([usr.cooldown/10] Seconds","chat")
Problem description:
The technique just wont work. Period. Nothing happens, nada. Now my suspicion is that you cant make a mob use a proc from the technique datum. If I'm wrong, could you tell me how to make it work? If I'm right, is there a way to do my idea of having each technique have a uses, cooldown, lvl var independent from the mob var?