ID:175881
 
        Frieza
powerlevel = 800000
maxpowerlevel = 800000
dead = 0
icon = 'changling.dmi'
icon_state = ""
ko = 0
safe = 0
npp = 0
ssj = 0
strength = 50
race = "Frieza (NPC)"
state = "First"
if(powerlevel < 50000)
powerlevel = 1200000
flick("form2",Frieza)
icon = 'ChangeForm2.dmi'

I can't get this to work it gives this message:
mobs.dm:2279:error:powerlevel:duplicate definition
mobs.dm:2279:error:50000:duplicate definition
mobs.dm:2279:error:< :instruction not allowed here
mobs.dm:2279:error::empty type name (indentation error?)
mobs.dm:2281:error:"form2":duplicate definition
mobs.dm:2281:error:Frieza:duplicate definition
mobs.dm:2280:error::empty type name (indentation error?)
Short answer: Your if() block isn't inside a proc.

Lummox JR
In response to Lummox JR
K, I am trying to make friez to transform when His pl drops to 50,000 so If I can't use the if staement then how do I make him transform? Do I make a proc and assign it to him?
put src.powerlevel in the if
In response to Coolroman123
Can I have like an example?
I am thinking
proc/frieza1
if(powerlevel <= 50000)
powerlevel = 1200000
flick("form2",Frieza)
icon = 'ChangeForm2.dmi'

Then
        Frieza
powerlevel = 800000
maxpowerlevel = 800000
dead = 0
icon = 'changling.dmi'
icon_state = ""
ko = 0
safe = 0
npp = 0
ssj = 0
strength = 50
race = "Frieza (NPC)"
state = "First"
Frieza1
In response to Coolroman123
friexa one has to have a ()
In response to Coolroman123
Coolroman123 wrote:
Can I have like an example?
I am thinking
proc/frieza1
if(powerlevel <= 50000)
powerlevel = 1200000
flick("form2",Frieza)
icon = 'ChangeForm2.dmi'
Then
        Frieza
powerlevel = 800000
maxpowerlevel = 800000
dead = 0
icon = 'changling.dmi'
icon_state = ""
ko = 0
safe = 0
npp = 0
ssj = 0
strength = 50
race = "Frieza (NPC)"
state = "First"
Frieza1

Nope. That's not gonna work. You really need to look up in the Reference, or the Guide, how to define procs and use if(). The code in the first block is wrong on several levels, and it should be within the second.

Lummox JR
In response to Lummox JR
I now tried this and it still won't work
        Frieza
mob/proc/frieza1()
if(powerlevel <= 50000)
powerlevel = 1200000
icon = 'ChangeForm2.dmi'
powerlevel = 800000
maxpowerlevel = 800000
dead = 0
icon = 'changling.dmi'
icon_state = ""
ko = 0
safe = 0
npp = 0
ssj = 0
strength = 50
race = "Frieza (NPC)"
state = "First"
frieza1()
In response to Coolroman123
I know that two ppl have gotten it to work and it is in their games but I can't get it. I am frustrated.
In response to Coolroman123
Coolroman123 wrote:
I now tried this and it still won't work
Frieza
mob/proc/frieza1()

Since this is under mob/Frieza, the "mob" before proc is redundant. What you've just done is to define a proc for the sub-type /mob/Frieza/mob.

strength = 50
race = "Frieza (NPC)"
state = "First"
frieza1()

Just take out this last line; I have no idea what you're trying to do with it, but it ain't right. What it will manage to do, once you get the proc/frieza1() part working above, is override that proc so it does nothing.

Lummox JR
In response to Koolguy900095
Stop giving bad advice koolguy. So far everything youve said here is wrong. LommuxJR is trying to get this new person to think, while you are merely confusing him furthur.
In response to Lummox JR
I got the top working and took out the bottom line. And I am tring to change the mobs powerlevel and icon while flick a state when the mobs power level goes down to 50,000
In response to Lummox JR
It still doesn't do anything :(