ID:149022
 
When I click the transform verb, it flicks to the right proc, but afterwards, the stats are the same, and it hasn't changed to the superform icon. Here is the code:

mob/saiyan/Goku
verb/SSJ()
set category = "Forms"
flick('SSJGokuTransform.dmi',usr)
if(usr.ssj == 1)
if(usr.maxPL>=100000)
usr.ssj += 1
usr.maxPL *= 10
usr.maxHP *= 5
usr.icon = 'SSJGoku.dmi'
return 1
else
return 0
I assume the maxPL var is more than or equal to 100000? :P

If the stats are zero, then obviously the *= operation will have no effect.

Also, please do not double post.
What is the ssj var initialized to? If it's set to anything other than 1, the if check comparing it to 1 will fail. Does something change it to 1 before that happens? (Even if the comparison to one is true, the ssj var is added to so it will never be 1 again.)
mob/saiyan/Goku
verb/SSJ()
set category = "Forms"
flick('SSJGokuTransform.dmi',usr)
if(usr.ssj == 1)
if(usr.maxPL>=100000)
usr.ssj += 1
usr.maxPL *= 10
usr.maxHP *= 5
usr.icon = 'SSJGoku.dmi'
return 1
else
return 0

2 things

1) it cant flick a icon only a icon state.
2) if he is going ssj for the first time he wouldn't have 1 ssj he would have it at 0.
try summin like:

mob/saiyan/Goku
verb/SSJ()
set category = "Forms"
if(usr.Maxpl >= 100000)
if(usr.ssj == 0)
flick("ssj",src)
usr.maxPL *= 10
usr.maxHP *= 5
usr.icon = 'SSJGoku.dmi'
else
if(usr.ssj == 1)
flick("ssj",src)
usr.maxPL *= 10
usr.maxHP *= 5
usr.icon = 'SSJGoku.dmi'
else
..()

i think that should work