ID:166555
 
Please help!


mob/proc/Demon_Trans()
var/trans_time = src.upkeep / 1.5

if(src.upkeep == 5)
trans_time = 5

if(src.doing)
return
else
if(!src.form_1)
if(src.powerlevel_max >= 800000)
src.safe = 1
src.doing = 1
src.icon_state = "enrage"
src.frozen = 1
sleep(trans_time)

src.powerlevel = src.powerlevel_max
src.ki = src.ki_max
src.strength = src.strength_max
src.defence = src.defence_max
src.critical = src.critical_max
src.dodge = src.dodge_max
src.reflect = src.reflect_max
src.block = src.block_max

src.powerlevel *= 8.5
src.ki *= 7
src.strength *= 4
src.defence *= 1.3

src.block += 2
src.dodge += 2
src.critical += 5
src.reflect += 5
src.counter += 2

src.speed = 3.8

view(6) << "[src.name]'s Skin color changes to a bright red and purple armor goes onto him!"
src.icon_state = ""
src.icon = 'Demon - Form 2.dmi'

src.form_1 = 1
src.frozen = 0
src.doing = 0
src.safe = 0
src.FORM1_EXP()
return
else
if(!src.form_2)
if(src.powerlevel_max >= 6000000)
src.safe = 1
src.doing = 1
src.icon_state = "enrage"
src.frozen = 1
sleep(trans_time)

src.powerlevel = src.powerlevel_max
src.ki = src.ki_max
src.strength = src.strength_max
src.defence = src.defence_max
src.critical = src.critical_max
src.dodge = src.dodge_max
src.reflect = src.reflect_max
src.block = src.block_max

src.powerlevel = src.powerlevel_max
src.powerlevel *= 12.5
src.ki *= 10
src.strength *= 8
src.defence *= 2.5

src.block += 4
src.dodge += 4
src.critical += 7
src.reflect += 7
src.counter += 4

src.speed = 3

view(6) << "[src.name] yells out as their skin color and armor turns into a deep purple!"
src.icon_state = ""
src.icon = 'Demon - Form 3.dmi'

src.form_2 = 1
src.frozen = 0
src.doing = 0
src.safe = 0
return
else
if(!src.form_3)
if(src.powerlevel_max >= 20000000)
src.safe = 1
src.doing = 1
src.icon_state = "enrage"
src.frozen = 1
sleep(trans_time)

src.powerlevel = src.powerlevel_max
src.ki = src.ki_max
src.strength = src.strength_max
src.defence = src.defence_max
src.critical = src.critical_max
src.dodge = src.dodge_max
src.reflect = src.reflect_max
src.block = src.block_max

src.powerlevel = src.powerlevel_max
src.powerlevel *= 18
src.ki *= 15
src.strength *= 9.5
src.defence *= 3.5

src.block += 6
src.dodge += 6
src.critical += 10
src.reflect += 10
src.counter += 6

src.speed = 2.5

src.overlays += small_red_elec

view(6) << "[src.name]'s armor becomes red and blue and their skin goes into a bright red!"
src.icon_state = ""
src.icon = 'Demon - Form 4.dmi'

src.form_3 = 1
src.frozen = 0
src.doing = 0
src.safe = 0
return

if(!src.form_4)
if(src.powerlevel_max >= 100000000
src.safe = 1
src.doing = 1
src.icon_state = "enrage"
src.frozen = 1
sleep(trans_time)

src.powerlevel = src.powerlevel_max
src.ki = src.ki_max
src.strength = src.strength_max
src.defence = src.defence_max
src.critical = src.critical_max
src.dodge = src.dodge_max
src.reflect = src.reflect_max
src.block = src.block_max

src.powerlevel *= 25
src.ki *= 16
src.strength *= 16
src.defence *= 15

src.block += 12
src.dodge += 12
src.critical += 18
src.reflect += 18
src.counter += 12

src.speed = 20

src.overlays += big_red_elec

view(6) << "[src.name]'s power heavily increases as they fuse with Dabura to create the ultimate demon!")
src.icon_state = ""
src.icon = 'Demon - Form 5.dmi'

src.form_4 = 1
src.frozen = 0
src.doing = 0
src.safe = 0
return




PROBLEM
=================================










3.0 Commands\3.4 Transformation Commands\3.49.1 Demon\Demon Transformation.dm:137:error: src: missing comma ',' or right-paren ')'
3.0 Commands\3.4 Transformation Commands\3.49.1 Demon\Demon Transformation.dm:167:error: ): expected }
3.0 Commands\3.4 Transformation Commands\3.49.1 Demon\Demon Transformation.dm:93:error: location of top-most unmatched {
3.0 Commands\3.4 Transformation Commands\3.49.1 Demon\Demon Transformation.dm:167:error: ): expected }
3.0 Commands\3.4 Transformation Commands\3.49.1 Demon\Demon Transformation.dm:92:error: location of top-most unmatched {
post this on Code problems
In response to Dazz513 (#1)
ok