ID:142838
 
Code: else
if(usr.state == "Super Saiyan 3")
if(usr.powerlevel.max_value >= 8e+8 && usr.ssjfp)
view(10) << "* [usr.name] ascends to Super Saiyan 4! *"
view(10) << 'sounds/ssj_trans4.wav'
usr.icon_state = "ssj"
usr.lspecial = 1
usr.lightningrand2()
usr.lightning = 0
spawn(25)
usr.ssj3lightning()
sleep(22)
Quake_Effect_View(usr, 100, 2)
call(/RoundExplosion/proc/NDBlast)(usr.loc,1,2)
sleep(4)
call(/RoundExplosion/proc/NDBlast)(usr.loc,1,3)
sleep(4)
call(/RoundExplosion/proc/NDBlast)(usr.loc,1,4)
sleep(52)
view(10) << 'sounds/ssj_trans4.wav'
sleep(16)
bwipeeffect(usr.z)
flick("gonessj",usr)
usr.icon_state = ""
usr.overlays -= 'icons/hair_super_Saiyan_gohan.dmi'
usr.overlays -= 'icons/hair_super_Saiyan_trunks.dmi'
usr.overlays -= 'icons/hair_super_Saiyan_goku.dmi'
usr.overlays -= 'icons/hair_super_Saiyan_vegeta.dmi'
usr.overlays -= 'icons/hair_super_Saiyan_goten.dmi'
usr.overlays -= 'icons/hair_super_Saiyan_reccoom.dmi'
usr.overlays -= 'icons/hair_super_Saiyan_mohawk.dmi'
usr.overlays -= 'icons/hair_super_Saiyan_long.dmi'
usr.overlays -= 'icons/hair_super_Saiyan.dmi'
usr.overlays += 'icons/ssj4.dmi'
usr.overlays += 'icons/ssj4_goku_hair.dmi'
if(usr.tail )
var/obj/tail/A = new(null)
usr.overlays -= A
var/obj/ssjtail/B = new(null)
usr.overlays += B
if(usr.dead )
usr.overlays += /obj/halo
usr.powerlevel.value = usr.powerlevel.max_value * 9.0
usr.ki.value = usr.ki.max_value * 9.0
usr.state = "Super Saiyan 4"
if(!frssj3)
if(!usr.fused)
frssj3 = "Name: [usr.name], Key: [usr.key], Month: [getMonth(usr)], Year: [getYear(usr)]"
world << "[usr.name] has discovered the transformation: Super Saiyan 3"
usr.transforming = 0
else
usr << "You are too weak to ascend to this new level!"
usr.transforming = 0



Problem description:code\items\objs.dm:9892:error:else :'else' clause without preceding 'if' statement

i cant seem to fix this i have tried almost everything. someone help please.

For future reference, you should put your code inside the <dm> ... </dm> tags, especially since your code contains some unclosed HTML.

In this case your error seems fairly self-explanatory. The very first line of the snippet you posted is "else", and there's no if() to go with it. What is this an "else" to, exactly? Normally if/else works like so:

if(player.IsUgly())
monster.RunAway(player)
else
monster.Attack(player)


Your code has no if(), so else doesn't mean anything to the compiler. DM is confused because it doesn't know what you're trying to tell it to do.

Lummox JR