ID:145008
 
What I'm trying to do is,is to make a specific mob type have it's own verbs.For example:
mob
Attacker
verb
Attack()

Then the host of the server could choose if the world will be attackers or defenders.When he choooses Attackers,then the world's mob type will have to become /mob/Attacker.I've tried:
switch(input("What will the world be?","World"))in list("Attackers","Defenders")
if("Attacker")
world.mob = /mob/Attacker
if("Defender")
world.mob = /mob/Defender

The problem is,when the host sets the mob type,the players dont get that mob type's verbs.

Metamorphman wrote:
switch(input(...))in list("Attackers","Defenders")
if("Attacker") ...
if("Defender") ...


Your list contains words with 's' on the end, and your switch statement does not.

[Edit: Also, thanks for catching that other error, Mysame.]
In response to IainPeregrine
Also, you're closing the input proc before the <code>in</code>. That's just messed.