Building: A Basic Tutorial
-
@Creepy, after thinking about it I went ahead and put in some placeholders for those and will fill'em out. We'll just try to be as code-friendly as possible when we get there. X D
-
@Cobaltasaurus said:
@Creepy, after thinking about it I went ahead and put in some placeholders for those and will fill'em out. We'll just try to be as code-friendly as possible when we get there. X D
Perfecto!
-
@Creepy said:
You know what I always needed help with? Finding rooms. I know there are search commands and whatnot but sometimes the help files read like a foreign language as I have no coding background.
For example, if I want a list of all room dbrefs, what would I type, exactly?
@search type=room
The rest of these mostly want to find an object of a particular type and then do some check with it. So here are your <thing> + <do> searches:
EOBJECT - A combination of TYPE=OBJECT and EVAL=<restriction>. ETHING - An alias for OBJECTS. EROOM - A combination of TYPE=ROOM and EVAL=<restriction>. EEXIT - A combination of TYPE=EXIT and EVAL=<restriction>. EPLAYER - A combination of TYPE=PLAYER and EVAL=<restriction>. PARENT - Restricts to the parent designated by <restriction>. ZONE - Restricts to the zone designated by <restriction>.
If I want a list of all rooms with a certain parent, such as an outdoor parent, what would I type?
To get the outdoor parent's dbref (or find any object with a given name)@find Outdoor Parent
Then, if the Outdoor Parent's dbref is #25, for example:
@search parent=#25
How about a search for any rooms or exits without some attribute set? Say, desc or odrop? Then I could plow through to see what areas I haven't finished yet.
We'll use
eroom
andeexit
for these:@search eroom=not(get(##/desc)) @search eexit=not(get(##/odrop))
How can I use basic commands, such as @desc here, without being in the room? @desc dbref#=Text here?
You got it.
ETA: This may have been better as part of a more thorough tutorial. I have a different one lined up right now (part of which @Cobaltasaurus has now kindly already covered for me), but I'll keep this one in mind too.
-
...>.> I'm basically just going to requote you for now on the placeholder bits. : D I hope you don't mind.
-
@Glitch said:
@Creepy said:
You know what I always needed help with? Finding rooms. I know there are search commands and whatnot but sometimes the help files read like a foreign language as I have no coding background.
For example, if I want a list of all room dbrefs, what would I type, exactly?
@search type=room
The rest of these mostly want to find an object of a particular type and then do some check with it. So here are your <thing> + <do> searches:
EOBJECT - A combination of TYPE=OBJECT and EVAL=<restriction>. ETHING - An alias for OBJECTS. EROOM - A combination of TYPE=ROOM and EVAL=<restriction>. EEXIT - A combination of TYPE=EXIT and EVAL=<restriction>. EPLAYER - A combination of TYPE=PLAYER and EVAL=<restriction>. PARENT - Restricts to the parent designated by <restriction>. ZONE - Restricts to the zone designated by <restriction>.
If I want a list of all rooms with a certain parent, such as an outdoor parent, what would I type?
To get the outdoor parent's dbref (or find any object with a given name)@find Outdoor Parent
Then, if the Outdoor Parent's dbref is #25, for example:
@search parent=#25
How about a search for any rooms or exits without some attribute set? Say, desc or odrop? Then I could plow through to see what areas I haven't finished yet.
We'll use
eroom
andeexit
for these:@search eroom=not(get(##/desc)) @search eexit=not(get(##/odrop))
How can I use basic commands, such as @desc here, without being in the room? @desc dbref#=Text here?
You got it.
ETA: This may have been better as part of a more thorough tutorial. I have a different one lined up right now (part of which @Cobaltasaurus has now kindly already covered for me), but I'll keep this one in mind too.
That's awesome. Thanks!
-
How can I use basic commands, such as @desc here, without being in the room? @desc #dbref=Text here?
Presuming you are a player, you first need to find out the #dbref of the room you are wanting to change. If the room is @chowned to you, then you can do this with an @search of yourself - looking for the room name on your list of personally owned rooms.
With the #dbref you set the information the same way you set a room description while being inside the room, replacing <here> with the #dbref.
@desc #dbref=<What you would like this to look like.>
Exit descriptions and all exit information can be set the same way, replacing the exit alias or room alias with the #dbref.
-
So helpful. Thank you, Cobalt! I'm getting ready to have to deal with a whole grid, and there is definitely a trick or two here that should prove useful. Figuring out what rooms are parented to a parent is...very very helpful, and I actually didn't know that one because I fail. Thanks!
-
@Cobaltasaurus said:
How do I find a list of all rooms with a specific parent?
@Glitch said:
@find Outdoor Parent
Then, if the Outdoor Parent's dbref is #25, for example:
@search parent=#25
On MUX at least:
think children(#25)
-
@Sponge thinks of the children.
-
@Sponge I will add that tonight to that post!
-
Updated with Sponge's info, and added to the 'what else do exits need' part.
-
Updated with how to format a playerlist on the build parent. Will try and get the object and exit format lists done tomorrow or later this week.
-
@Cobaltasaurus
This guide is fantastic. I'm learning so much! Thank you! But any idea on when you'll have the time to update the placeholders that are currently empty? Or have you written a guide somewhere?
-
So it looks like the last two items are the object and exit lists of the room parent. Are there anything else I'm missing?
I can probably has those out in a little bit. This got pushed onto the back-burner, and then I stopped mushing so I kind of forgot about it. : [
But I'll fix it!
: ]
-
@Cobaltasaurus
Nope, that's all I got!
-
Okay those pieces are in. I'm not mushing right now, but if anyone has any questions, suggestions, or whatever I'd be glad to update this tutorial.
-
I had someone go through the guide for the room parent, and they let me know that things weren't working the way they should. I went through and fixed it! Turns out you want %! rather than %#. ^^;
-
Just remember all these search functions are relative to yourself. A wizard will return all objects in the database, a royal will return only non-wizard set objects and anything else will only return their own objects or those they pass the lock of (IE: can examine).
Edit: though for builders and keeping objects together I highly recommend the shared flag at least on penn. I do not know if mux has that flag.
-
Hi @Cobaltasaurus !
Out of curiosity, how do I delete rooms I have dug, or change their aliases? -
@nyctophiliac
@destroy, and I think you're looking for @name?