ID:163722
 
i have a complete and good transformation code but how would i make it race determined
for example
if your(this race)and u click transform u dont go into the correct transformation
you might want to look up variables in some very simplistic programming tutorial. Its kind of a building block to all of programming but you know, whatever..

once you figure out what a variable is, define one called race.

switch(usr.race)
if("Namek")
//SUPER NAMEK LUL
if("Saiyajin")
//etc..
if() & else if() else() //look them up 
In response to Masterdan
Masterdan wrote:
you might want to look up variables in some very simplistic programming tutorial. Its kind of a building block to all of programming but you know, whatever..

once you figure out what a variable is, define one called race.

switch(usr.race)
if("Namek")
//SUPER NAMEK LUL
if("Saiyajin")
//etc..

i have all this but i get undefined var
In response to Kreamz
you don't have a var set up for something can't tell with what you gave so look up var in dreamseeker hit F1 then search type var
In response to Kreamz
Kreamz wrote:
Masterdan wrote:
you might want to look up variables in some very simplistic programming tutorial. Its kind of a building block to all of programming but you know, whatever..

once you figure out what a variable is, define one called race.

switch(usr.race)
if("Namek")
//SUPER NAMEK LUL
if("Saiyajin")
//etc..

i have all this but i get undefined var


mob
var
race

<.<....
to me it just seems easier to make it like this

mob/ZFighter
var
HP as num // list all other variables that ALL Z fighters have in common


mob/ZFighter/Saiyan
var Tail=0// if the user has a tail, set t his equal to one
/*then for each race add variables that only that race has, or in this case transformation verbs. Only saiyans would be able to access the super saiyan verb.. but every ZFighter would have HP and any other variable you assigned to the Z fighter mob type.*/



make any sense?