ID:172677
 
ALright...Im trying to make a list of super forms for a ...Yes, Dont hurt me... Dragon Ball Z game. I have my level up code. I need to know how to make it so it adds the superform to a list. Then that list is able to be acessed by a transform verb. Then after you have transformed, click a revert verbthat will put u back to your original icon. I know how to make the verbs but for everything else i need help. If you need my code in any part, tell me.
this won't be able to be dropped in..but the idea you're looking for is this:
mob/var/list
superforms = list()

then to use it just do...

superforms += newTechnique
superforms -= lostTechnique

where lostTechnique and newTechnique are variables or strings
In response to Jerico2day
umm...I tried that but can't figure out how to impliment it!!
here is my levelup proc currently:
        LevelUp(mob/M)
if(src.exp >= src.expNeeded)
src <<"You Leveled Up!!"
src.level++
src.maxUHP+=rand(1,10)
src.UHP=src.maxUHP
src.expNeeded *= 1.25
src.exp = 0
src.strength+=1
src.defense+=1
if(src.level==2)
flick("trans",src)
src.icon_state="ssj"
if(src.level==3)
flick("ssj2trans",src)
src.icon_state="ssj2"
if(src.level==4)
flick("ssj3trans",src)
src.icon_state="ssj3"
if(src.level==5)
flick("ssj4trans",src)
src.icon_state="ssj4"
if(src.level==6)
flick("ssj5trans",src)
src.icon_state="ssj5"
if(src.level==7)
flick("ssj6trans",src)
src.icon_state="ssj6"
if(src.level==8)
flick("ssj7trans",src)
src.icon_state="ssj7"
if(src.level==9)
flick("ssj8trans",src)
src.icon_state="ssj8"
if(src.level==10)
flick("ssj9trans",src)
src.icon_state="ssj9"
if(src.level==11)
flick("ssj10trans",src)
src.icon_state="ssj10"
if(src.level==12)
flick("revert",src)
flick("norm-ssjholytrans",src)
src.icon_state="ssjholy"
if(src.level==13)
flick("revert",src)
flick("norm-ssjmopartrans",src)
src.icon_state="ssjmopar"


as of now, when you hit that level, you automatically transform. I cant figure out how to modify this without redoing the whole thing.
In response to Tabu34
Did you actually expect something else to happen?