ID:161758
Apr 3 2008, 11:25 am
|
|
I remember back when I first came to byond and attempted to make a game in the text-based area. I asked on here about placing mobs and objs in rooms via Zilal's tutorial number 3. And after about hour of searching. I can't seem to find it, so does anyone mind refreshing my memory?
|
In response to Foomer
|
|
Foomer wrote:
Lundex wrote: area/forest_sanctuary You might also try giving areas a params list (see params2list and list2params) of object types that you want created in that area when the game starts up, like this: area It also depends on how your text-based game is arranged in the first place. I prefer to make text-based games that still use turf maps, so placing objects is pretty easy. Well, I remember using Move() and locate() to place them.. |
In response to Lundex
|
|
Yeah. For example, O.Move(usr.loc) drops object O into usr's room's contents. O.Move(usr) drops object O into usr's inventory. Think of locate() as a search function.
|
In response to Foomer
|
|
You can just set contents at compile-time (it is possible), you don't need to parse a text var or anything.
area/palace |
In response to Kaioken
|
|
Heh, this works perfectly...
|
Although there are probably better ways to do this (I never really looked into it), you can directly hard code them in like this:
You might also try giving areas a params list (see params2list and list2params) of object types that you want created in that area when the game starts up, like this:
It also depends on how your text-based game is arranged in the first place. I prefer to make text-based games that still use turf maps, so placing objects is pretty easy.