Code:proc
Attack(mob/M)
var/damage = powerlevel
M.TakeDamage(src, damage)
TakeDamage(mob/attacker, damage)
if (istype(src, /mob/other))
usr << "No..."
else
if(src.npp == 0|1)
src.powerlevel -= attacker.strength
flick("attack",attacker)
src.Die()
attacker.powerlevel += rand(0,1)
attacker.random = rand(1,3)
if(src.powerlevel >= 1)
if(attacker.random == 1)
view(6) << "[attacker.name] punches [src] in the face."
if(attacker.random == 2)
view(6) << "[attacker.name] kicks [src]."
if(attacker.random == 3)
view(6) << "[attacker.name] stumbles and misses [src]."
Problem description:
I tried using this code for my battle system but it wont work I got the Verb Attack but when I try to Attack it does nothing and says nothing.Whats wrong can someone please coreect my code?
ID:263513
Mar 10 2007, 7:57 am
|
|