obj
yakon1
verb
Transform()
set category = "Fighting"
set name = "Transform/Revert"
if(usr.race == "Yakoon"||usr.race == "yakon")
switch(input("Which form do you wish to Transform/Revert?","Transform",text) in list("Yakon Form 2 (Max)","Revert","Cancel"))
if("Yakon Form 2 (Max)")
if(usr.state == "Normal")
if(usr.maxpowerlevel >= 2500000)
view(6) << "<font color = Yellow>-[usr.name]<font color = white> begins to transform!-"
usr.maxpowerlevel*=3
usr.MaxKi*=3
usr.def*=3
usr.str*=3
usr.overlays+='elec purple.dmi'
usr.state = "Yakon Form 2 (Max)"
else
usr << "<i>You still are too weak...."
else
usr << "<b>You must Revert frist."
if("Revert")
if(usr.state == "Normal")
usr << "You are reverted already."
else
view(6) << "<font color = Yellow>-[usr.name]<font color = white> begins to revert from [usr.state]-"
usr.icon = 'Yakon.dmi'
usr.underlays -= new /obj/aura_upper/
usr.underlays-='ssj aura Ultra SSJ Aura.dmi'
usr.overlays-='elec purple.dmi'
usr.overlays-='elec purple.dmi'
usr.overlays-='elec purple.dmi'
if(usr.state == "Yakon Form 2 (Max)")
usr.maxpowerlevel/=3
usr.MaxKi/=3
usr.def/=3
usr.str/=3
usr.underlays -= new /obj/aura_upper/
usr.underlays-='ssj aura Ultra SSJ Aura.dmi'
usr.overlays-='elec purple.dmi'
usr.overlays-='elec purple.dmi'
usr.overlays-='elec purple.dmi'
usr.state = "Normal"
if(usr.powerlevel >= usr.maxpowerlevel)
usr.powerlevel = usr.maxpowerlevel
Problem description:
The Problem is as soon as i go Yakon form 2 and i log out in that form and wh i log in back i can go to yakon form 2 again.
I want to so when i log out in form 2 i can log in again i have to revert to go to form 2 again. Do you understand ?
I might suggest making a mob variable that remembers what form you were in last(like when you transform, do...
Form = FORMNAME
)
then on login make the verb that makes you tranform but put the variable where the formname would have been...
understand??
(I did this with my music files, worked like a charm :D)