mob/proc/Demon_Trans()
if(src.doing == 1)
return
else
if(src.form_1 == 0)
if(src.powerlevel_max >= 100000)
src.underlays -= src.aura
src.aura = 0
src.safe = 1
src.doing = 1
src.icon_state = "sbomb"
src.frozen = 1
sleep(10)
src.powerlevel *= 100
src.ki *= 15
src.strength *= 3
src.defence *= 3
src.speed *= 2.5
view(6) << "<font color = #800080>[src.name]'s power surges as he changes into his Second Form!"
src.icon_state = ""
src.icon = 'Demon - form 2.dmi'
new/obj/techs/Overlays/Crater_Small(src.loc)
src.transformed = 1
src.form_1 = 1
src.frozen = 0
src.doing = 0
src.safe = 0
src.aura = 1
src.underlays += src.aura
spawn() src.Changling_Upkeep()
return
else
if(src.form_2 == 0)
if(src.powerlevel_max >= 300000)
src.underlays -= src.aura
src.aura = 0
src.safe = 1
src.doing = 1
src.icon_state = "sbomb"
src.frozen = 1
sleep(10)
src.powerlevel = src.powerlevel_max
src.powerlevel *= 20
src.ki *= 20
src.strength *= 7
src.defence *= 5
src.speed *= 6
view(6) << "<font color = #800080>[src.name]'s power surges as he changes into his Third Form!"
src.icon_state = ""
src.icon = 'Demon - form 3.dmi'
src.transformed = 1
src.form_2 = 1
src.frozen = 0
src.doing = 0
src.safe = 0
src.aura = 1
src.underlays += src.aura
return
else
if(src.form_3 == 0)
if(src.powerlevel_max >= 500000)
src.underlays -= src.aura
src.aura = 0
src.safe = 1
src.doing = 1
src.icon_state = "sbomb"
src.frozen = 1
sleep(10)
src.powerlevel *= 26
src.ki *= 26
src.strength *= 10
src.defence *= 8
src.speed *= 9
view(6) << "<font color = #800080>[src.name]'s power surges as he changes into his Forth Form!"
src.icon_state = ""
src.icon = 'Demon - form 4.dmi'
src.transformed = 1
src.form_3 = 1
src.frozen = 0
src.doing = 0
src.safe = 0
src.aura = 1
src.underlays += src.aura
return
else
if(src.form_4 == 0)
if(src.powerlevel_max >= 1000000)
src.underlays -= src.aura
src.aura = 0
src.safe = 1
src.doing = 1
src.icon_state = "sbomb"
src.frozen = 1
sleep(10)
src.powerlevel *= 32
src.ki *= 32
src.strength *= 13
src.defence *= 12
src.speed *= 13
view(6) << "<font color = #800080>[src.name]'s power surges as he changes into his Forth Form (100% Power)!"
src.icon_state = ""
src.icon = 'Demon - form 5.dmi'
src.transformed = 1
src.form_4 = 1
src.frozen = 0
src.doing = 0
src.safe = 0
src.aura = 1
src.underlays += src.aura
return
Problem description:i keep getting this error
Commands\Transform\Demon Trans.dm:3:error: proc definition not allowed inside another proc