-
Notifications
You must be signed in to change notification settings - Fork 0
/
TUTORIAL
106 lines (73 loc) · 1.89 KB
/
TUTORIAL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Simple tutorial for starting builders.
== [ CREATING ROOMS ] ==
> edig north The Fun Room
(edig <exit> <short description/title>)
OR, you can also do it the hard way:
> addroom
Will output a new room IDs. Remember it.
> addlink <origin> <destination> <direction>
Do it for the other way around if you want a two-way exit.
Example:
> addroom
Your new room has id #23
> addlink 1 23 north
> addlink 23 1 south
You can now move between room #1 and room #23 by going north/south.
= ROOM MANAGEMENT EXAMPLES =
> listrooms
Room #1 - short desc: First Room
Room #2 - short desc: Second Room
> delroom 2
Room #2 has been destroyed.
> listexits
ID FROM TO
#1 #1 #2
#2 #2 #1
(Exit ID, FROM ROOM #, TO ROOM #)
> listlinks
Room #1 - north
Room #2 - south
> dellink 1 1
(dellink RoomID ExitID)
The link between Room #1 and Exit #1 by north has been destroyed.
> setshort This is the first room.
Short description changed.
> setlong You are in a dark room, likely to be eaten by a grue.
Long description changed.
== [ PLAYER MANAGEMENT ] ==
> locate
NAME LOC IP
Foo 1 192.168.0.2
Bar 3 127.0.0.1
LOC is the room # where the player is.
== [ OBJECT MANAGEMENT ] ==
> additem sword
Item sword is created.
> itemdesc sword This is a big sword.
Description set on sword.
> listitems
ID NAME DESC
1 sword This is a big sword
> clone sword
sword has been cloned.
(It's now in your inventory)
> delitem 1
sword and all its instances have been destroyed.
> listinst
ID SubID Parent Is_Owned Is_In
1 1 1 5 0
(Instance ID, Sub ID, Object ID, Player ID, Room ID)
> dest 1
Instance #1 has been destroyed.
=== [ NPC MANAGEMENT ] ===
> addnpc guard
NPC guard created.
> npcdesc guard A mean guard.
Description set on guard.
> listnpcs
ID #1 - Name: guard - Desc: A mean guard.
> clonenpc guard
guard cloned.
(Is now in your current room.)
> delnpc 1
NPC #1 has been destroyed.