ID:178402
 
How do you make a verb that enables the person to select his team/class? Commenting is highly appreciated.
mob/var/team //this keeps track of the team the player is on
mob/verb/choose_team()
team=input("what team you want?")in list("team1","team2") //this inputs the answer into the team var

You are probably thinking this example is not what you wanted. Well, I was thinking this does exactly what you said you wanted, since you were so vague that I did not know what you wanted help with.
Drafonis wrote:
How do you make a verb that enables the person to select his team/class? Commenting is highly appreciated.

<code> mob // Mobs only! verb // You can click on it in the 'Commands' box Select_Class() // Name of the verb switch(input("Choose a class ","","") in list("Infantry","Jump Trooper","Infiltrator","Hvy Weapons","Squad Leader","Field Medic","Combat Engineer")) // List of classes if("Infantry") src.class = 1 // What happens when you select a class if("Jump Trooper") src.class = 2 if("Infiltrator") src.class = 3 // the 'class' variable is to identify what class you are if("Hvy Weapons") src.class = 4 if("Squad Leader") src.class = 5 if("Field Medic") src.class = 6 if("Combat Engineer") src.class = 7 </code>

Hope that's what you were after. :)