mob
forbidden
verb
superclone()
var/input = input("How much Chakra do you want to put in?", "Chakra Input") as num
if((input >= 100000)&&(input<=usr.chakra))
usr<<"<b>You put all the chakra you can into the move</b>"
usr.chakra -= 100000
usr.clones = 100
if(input>=usr.chakra)
usr<<"<b>You do not have this much chakra to put into this move</b>"
return
if (input <<1000)
usr.chakra -= input
usr.cloness = 1
if (input <= 0)
usr<< "<b>You have put no chakra into this move</b>"
return
else
usr.chakra -= input
usr.clones = round(input/1000)
overlays += 'smoke.dmi'
spawn(8)
overlays -= 'smoke.dmi'
for(clones,clones<1,clones--)
var/mob/clone/M
M = new/mob/clones()
M.maxhealth = usr.maxhealth/10
M.health = M.maxhealth
M.stamina = usr.maxstamina
M.maxstamina = usr.maxstamina
M.maxchakra = usr.maxchakra
M.chakra = M.maxchakra/2
M.name = usr.name
M.icon = usr.icon
usr.random = rand(-5,5)
usr.random2 = rand(-5,5)
M.loc = locate(usr.x+random, usr.y+random2, usr.z)
Problem description:
I know the clone should be produced as I have a single clone verb but the for loop doesnt run, I tried to use a while loop but they never seemed to like me. The for loops skips completely but the smoke is added before. Can someone help me find why the loop doesn't run at all please
Ramini
Your if() statement is incorrect. it should be if(input < 1000). The << operator is for outputting something, or bitshifting.
~X