ID:262645
 
Code:
mob
verb
Sharingan_1()
set category = "Doujutsu"
if (usr.Chakra >=100)
usr.overlays = 'sharingan.dmi'
usr << "SHARINGAN!!"
usr.Chakra = usr.Chakra -12
usr.taijutsu * 3
usr.ninjutsu * 5
usr.genjutsu * 4
sleep(100)
return
else
usr << "You are to exhausted!,Rest"


Problem description:For some reason im getting an error Statement has no effect? i thought thats how u multiply things? also for some reason the overlays arnt showing up help?

Try *= which is used for setting a variable. * itself is used in conditionals and other things of the sort.
In response to Nadrew
now i get some error Jutsu's.dm:405:error: missing left-hand argument to =.
Jutsu's.dm:405:error: missing left-hand argument to =.
In response to Kurosaki_Ichigo-San
Try this i hope it works.
mob
verb
Sharingan_1()
set category = "Doujutsu"
if(usr.Chakra >=100)
usr.overlays += 'sharingan.dmi'
usr << "SHARINGAN!!"
usr.Chakra -= 12 // this way is better
usr.taijutsu *= 3
usr.ninjutsu *= 5
usr.genjutsu *= 4
sleep(100) // this is not neccessory
return
else
usr << "You are to exhausted!,Rest"
You might want to round things when you multiply them. Ex:
usr.taijutsu=round(usr.taijutsu*3)
In response to Y2kEric
thx man!