Difference between revisions of "MUCK Reference Guide/Building and Object Creation"

From TwistedMUCK
Jump to: navigation, search
Line 5: Line 5:
 
==Room Building and Describing==
 
==Room Building and Describing==
  
<code>  
+
<div style="width:45%;"><code>  
 
  @dig [roomname]
 
  @dig [roomname]
 
  @open [exit name];[alt name1];[alt name 2]=[room dbref]
 
  @open [exit name];[alt name1];[alt name 2]=[room dbref]
 
  @desc [room dbref]=[room description]
 
  @desc [room dbref]=[room description]
</code>
+
</code></div>
 
   
 
   
To open a new room, simply use the command: @dig [roomname]
+
To open a new room, simply use the command: <code class="muck">@dig [roomname]</code>
 
   
 
   
 
Upon opening your new room you will be presented with a dbref number (i.e. #666).  
 
Upon opening your new room you will be presented with a dbref number (i.e. #666).  
 
   
 
   
To open an exit to your new room, the command is: @open [exit name displayed];[alternate exit name1];[alt exit 2]=[dbref number of room] (i.e. @open (O)ut;O;o=#666)
+
To open an exit to your new room, the command is: <code class="muck">@open [exit name displayed];[alternate exit name1];[alt exit 2]=[dbref number of room]</code> (i.e. @open (O)ut;O;o=#666)
 
   
 
   
To set the room's description simpy use the command: @desc [here or dbref]=[description]
+
To set the room's description simpy use the command: <code class="muck">@desc [here or dbref]=[description]</code>
 
   
 
   
 
----
 
----
Line 23: Line 23:
 
==Item Creation==
 
==Item Creation==
 
   
 
   
<code>
+
<div style="width:45%;"><code>
 
  @create [object name]
 
  @create [object name]
 
  @desc [object dbref]=[object description]
 
  @desc [object dbref]=[object description]
</code>
+
</code></div>
 
   
 
   
For more help, look up the help files for @link, @unlink, and flags...
+
For more help, look up the help files for <code class="muck">@link</code>, <code class="muck">@unlink</code>, and <code class="muck">flags</code>...
  
 
----
 
----
Line 34: Line 34:
 
==Puppets==
 
==Puppets==
 
   
 
   
<code>
+
<div style="width:45%;"><code>
 
  @create [puppet]
 
  @create [puppet]
 
  @set [puppet]=Z
 
  @set [puppet]=Z
Line 42: Line 42:
 
  @link [control action]=$null
 
  @link [control action]=$null
 
  @succ [control action]={force:[puppet's dbref],{&arg}}
 
  @succ [control action]={force:[puppet's dbref],{&arg}}
</code>
+
</code></div>
  
 
==NPC Waitress Program==
 
==NPC Waitress Program==

Revision as of 15:02, 12 October 2014

Welcome to the beginers guide to building! Everything you could ever need right here as a handy refrence guide!!!

You need to have a builder's bit to build on Twisted. Please speak to a member of staff for more information.

Room Building and Describing

@dig [roomname]
@open [exit name];[alt name1];[alt name 2]=[room dbref]
@desc [room dbref]=[room description]

To open a new room, simply use the command: @dig [roomname]

Upon opening your new room you will be presented with a dbref number (i.e. #666).

To open an exit to your new room, the command is: @open [exit name displayed];[alternate exit name1];[alt exit 2]=[dbref number of room] (i.e. @open (O)ut;O;o=#666)

To set the room's description simpy use the command: @desc [here or dbref]=[description]


Item Creation

@create [object name]
@desc [object dbref]=[object description]

For more help, look up the help files for @link, @unlink, and flags...


Puppets

@create [puppet]
@set [puppet]=Z
@set [puppet]=X
@flock [puppet]=me
@action [control action]=me
@link [control action]=$null
@succ [control action]={force:[puppet's dbref],{&arg}}

NPC Waitress Program

Here's how to add an npc waitress, or at the very least a custom message that displays after someone triggers an action.

First, open an exit and link it to null. Remember that this exit won't show in the room your in so you may wish to add the trigger to the room description. In this instance we'll assume the desc includes something about summoning the (W)aitress.

@open W;w=$null
@suc W={otell:{name:me} summons the waitress and politely asks for a cup of water. Glaring coldly she turns her nose to {name:me} and storms off to the kitchen
complaing to herself. After what feels like an eternity she shoves the door open and marches over to the table slaming a glass of water violently down - but not
hard enough to break it. As she goes back to what she was doing she can clearly be heard muttering{lit:,} "I don't get paid enough for this..."}

All the text has to be between the brackets and after the otell:. The part that reads {name:me} displays the name of the person who triggered the text. It's totally optional. {lit:,} is the most important. A comma will break the code and display an error message. {lit:,} is the work around for it as it will display a comma anyways without any problems. So if you get an error, you might want to check for commas first.


Using lsedit for Descriptions

You can use lsedit for a room description and save everything to a text document by setting the desc to {list:name} where name is the title of the file your linking it to. If you don't understand what this means, don't worry about it. It's not that important.

Personal tools