INFO
castle - on your castle and its role
DESCRIPTION
The castle you have is just a 'facade'. If you look at the source, you
will find that it defines an 'enter' command, but won't move the
player anywhere.
You have to make a hall way or something like that first. Do this by
copying one of the standard files (se ed).
Now change the line in your castle.c that says
write("This is a close...");
into
this_player()->move_player("into castle", "players/peter/hall");
The function "move_player" in the player object will move the player
to your hall, tell other players around that he goes into the castle.
The function '->' (a short-cut for 'call_other') is very special. The
object 'this_player()' could be seen as a package or module with a lot
of functions. One of these functions is 'move_player' which is called
with the arguments "into castle" and "players/peter/hall". If you wish
to change the way to enter you castle into, say, east then you will
have to change the
add_action("enter", "enter")
into
add_action("enter", "east")
and the arguments to move_player into
"east" and "players/peter/hall" .
SEE ALSO
roomsHelp topics available:
| COPYRIGHT | README | banish | castle | door |
| ed | feelings | genders | general | hook |
| key | mapsystem | prices | properties | rooms |
| style/ | termcap | tourist_info | water_room_old |
You are guest number 240 since November 2019.
This file was last modified: June 2000.