ID:176956
 
Hullo, I just need some help with putting mobs/obj into my TextMud. i am told the best way is through world/New() but unfortunately i do not know how to use this, so if someone could please give me an example i would be very grateful =) thank you
~RedI~
must not be so easy? hehe
In response to RedI
It's mind-numbingly easy. world/New() is called when the world is created. Thus, anything you do there will take place before anyone is in the game (unless if it's mind-numbingly processor intensive, or there is a sleep() or spawn() in there), so....

world
New()
var/obj/blah/O = new(locate("Room1"))
In response to Garthor
heh figured it was something that easy =P thnx for ur help so far but this gives me other problems when i use world/New()
1.this warning- variable defined but not used on the var/obj/blah/O = new(locate("Room1")) line
2.With the world/New() added it seems to cancel out other things?- i cannot see any of my rooms, i cannot move, any verb that uses view() ex.Say or Emote does not work... so do u know what's goin on here and how to fix it?? thnx
~RedI~
In response to RedI
1. Because you've defined the variable but haven't used it. You can also use <code> new /obj/whatever(wherever) </code> instead.
2. I have no idea what the problem could be with using world/New().
In response to Garthor
maybe you need to use the ..() command or whatever it is.