var/new_mob = input("Which mob?") in list ("Mob1","Mob2")
new/mob/new_mob
Any help is appreciated.
-Rcet
ID:149729
Feb 27 2002, 6:28 am
|
|
How would I create mobs with a var? Example:
var/new_mob = input("Which mob?") in list ("Mob1","Mob2") Any help is appreciated. -Rcet |
In response to Lummox JR
|
|
You could also do it this way:
mob/verb/Create_mob() |
I think I see what you're trying to do here. You want to create a /mob/Mob1 or /mob/Mob2 based on the results of input. Fortunately, this is doable.
DM recognizes strings for the new() syntax as well as type paths.
Lummox JR