Code:
mob/GM/verb/Spawn_Monsters()
set category="GM"
switch(input("What sort of monster do you wish to spawn?")in list("Evil Wizards","Troll"))
if("Evil Wizards")
new/obj/Monsters/Evil_Wizard(locate(usr.x,usr.y-1,usr.z))
new/obj/Monsters/Evil_Wizard(locate(usr.x,usr.y-1,usr.z))
new/obj/Monsters/Evil_Wizard(locate(usr.x,usr.y-1,usr.z))
new/obj/Monsters/Evil_Wizard(locate(usr.x,usr.y-1,usr.z))
new/obj/Monsters/Evil_Wizard(locate(usr.x,usr.y-1,usr.z))
if("Troll")
new/obj/Monsters/Troll(locate(usr.x,usr.y-1,usr.z))
new/obj/Monsters/Troll(locate(usr.x,usr.y-1,usr.z))
new/obj/Monsters/Troll(locate(usr.x,usr.y-1,usr.z))
new/obj/Monsters/Troll(locate(usr.x,usr.y-1,usr.z))
new/obj/Monsters/Troll(locate(usr.x,usr.y-1,usr.z))
Problem description:
basically i want to spawn 5 of each of these monsters when there chosen but every time that i do only 1 is spawn till i kill it then the next one spawns and so on.
can anyone help me by telling me how to spawn all 5 at once?