ID:906546
 
Keywords: never, stop, stops, unending
(See the best response by GreatFisher.)
Code:
mob
proc
BijuuLostControlNew()
lulwut
if(src.indemon||src.BLC)
var/negro
for(var/mob/M in oview(5))
if(M.client)
negro=M
walk_towards(src,negro,0)
for(var/mob/P in oview(1))
var/damage=src.tai*1.2
view(src)<<"<font color=red><b>[src] lashes out in rage, hitting [P] for [damage]"
P.health-=damage
sleep(15)
spawn(300)
if(negro in oview(src))
..()
else
goto lulwut
else
return
Problem description: the problem is it never stoped evern when indemon and BLC are both zero, the person has to telog to get it to stop
Best response
Err this is very sloppy coding but hey, I'll give helping you a go. First using negro as a variable name is a little odd but that's up to you. Now The way your going about this is very disjointed, using goto is generally frowned upon because there are other ways to reproduce the same effect that are just better. I would suggest using while(), I'm gonna go ahead and show you. I would also implement a piece of mob/bump() specific for this situation.
mob
var
demonatk = 0
proc
BijuuLostControlNew()
while(src.indemon || src.BLC)
var/mob/Target
for(var/mob/m in oview(5))
if(m.client)
Target = m
break
while(Target)
if(src.indemon || src.BLC)
step_towards(src, Target, 0)
sleep(1)
else break

Bump(mob/m)
if(src.indemon || src.BLC)
if(!src.demonatk)
src.demonatk = 1
var/damage=src.tai*1.2
view(src)<<"<font color=red><b>[src] lashes out in rage, hitting [P] for [damage]"
P.health-=damage
sleep(15)
src.demonatk = 0


ohh....I see thanks.
It still doesn't stop
then either indemon or BLC isn't being set to 0.
their both being set to zero
i checked
In response to Joejoe13
Perhaps you're endlessly calling BijuuLostControlNew()? Show us how you call it.
mob
proc
Kyuubi4()
set category = "Ninjutsu"
set name = "Kyuubi Form 4"
if(usr.chakra <= 2500)
usr << output("Not enough chakra(4000000)!","chat")
return
if(!usr.inkyuubi4)
view(usr)<<"<B><font color = red>[usr]: GET OUT OF ME!"
view(usr)<<"<B><font color = red>[usr]'s Skin melts off as his blood and chakra mix and cover his body, Four Dark Tails are formed!"
usr.chakra -= 2500
usr.overlays-='kyuubi.dmi'
usr.overlays-='kyuubi2.dmi'
usr.overlays-='kyuubi3.dmi'
usr.overlays+='kyuubi4.dmi'
usr.nin = usr.nin*1.8
usr.inkyuubi4=1
usr.indemon = 1
usr.inspecialstate = 1
usr.kyuubiuses += 1
usr.verbs += new /mob/demon/verb/KyuubiRevert()
usr.verbs += new /mob/demon/verb/ChakraBeam()
usr.verbs -= new /mob/Demon/verb/DKyuubi4()
usr.verbs += new /mob/Demon/verb/DKyuubi5()
OMFGSKINBURNS
sleep(30)
usr.health -= 2000
//BijuuLostControlNew()
//usr.BLC = 1
if(usr.health <= 0)
usr.Death(usr)
usr.BLC = 0
return
goto OMFGSKINBURNS
else if(usr.inkyuubi4)
usr<<"Your already in kyuubi form 4."
revert makes indemon and BLC = 0, also the bijuulostcontrol is liek that temp