Difference between revisions of "Manual:DIL Manual/UNIT ST ROOM"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| + | <span id="uroom"></span> | ||
| + | '''if the type is UNIT_ST_ROOM''' | ||
| + | Note: the descr fields of exits are available as standard extra | ||
| + | keywords, ie. 'north' ,'east',...,'down'. | ||
| + | Example: | ||
| + | ex := 'north' in self.extra; | ||
| + | 'exit_names'[] :stringlist (RW) | ||
| + | The names matching the exit name 'open grate' The index should | ||
| + | be one of NORTH EAST SOUTH WEST UP DOWN in values.h and/or vme.h | ||
| + | Example: | ||
| + | sl := self.exit_names[SOUTH]; | ||
| + | act("The $2t slides open as you press the button.", | ||
| + | A_ALWAYS, activator, sl.[0], null, TO_CHAR); | ||
| + | 'exit_info'[] :integer (RW) | ||
| + | Bits specifying the conditions of the exits, see EX_* in | ||
| + | values.h and/or vme.h The index should be one of NORTH EAST SOUTH WEST | ||
| + | UP DOWN in values.h and/or vme.h | ||
| + | 'exit_to'[] :unitptr (RO) | ||
| + | The unit, the direction exits to. The index should | ||
| + | be one of NORTH EAST SOUTH WEST UP DOWN in values.h and/or vme.h | ||
| + | You may not change the directions through DIL programs. | ||
| + | 'roomflags' :integer (RW) | ||
| + | Bits specifying properties of the room, see ROOM_FL_* in | ||
| + | values.h and/or vme.h | ||
| + | 'movement' :integer (RW) | ||
| + | The type of movement in the room, see SECT_* in values.h and/or vme.h | ||
<span id="uroom"></span> | <span id="uroom"></span> | ||
'''if the type is UNIT_ST_ROOM''' | '''if the type is UNIT_ST_ROOM''' | ||
Latest revision as of 22:34, 4 December 2025
if the type is UNIT_ST_ROOM
Note: the descr fields of exits are available as standard extra
keywords, ie. 'north' ,'east',...,'down'.
Example:
ex := 'north' in self.extra;
'exit_names'[] :stringlist (RW)
The names matching the exit name 'open grate' The index should
be one of NORTH EAST SOUTH WEST UP DOWN in values.h and/or vme.h
Example:
sl := self.exit_names[SOUTH];
act("The $2t slides open as you press the button.",
A_ALWAYS, activator, sl.[0], null, TO_CHAR);
'exit_info'[] :integer (RW)
Bits specifying the conditions of the exits, see EX_* in
values.h and/or vme.h The index should be one of NORTH EAST SOUTH WEST
UP DOWN in values.h and/or vme.h
'exit_to'[] :unitptr (RO)
The unit, the direction exits to. The index should
be one of NORTH EAST SOUTH WEST UP DOWN in values.h and/or vme.h
You may not change the directions through DIL programs.
'roomflags' :integer (RW)
Bits specifying properties of the room, see ROOM_FL_* in
values.h and/or vme.h
'movement' :integer (RW)
The type of movement in the room, see SECT_* in values.h and/or vme.h
if the type is UNIT_ST_ROOM
Note: the descr fields of exits are available as standard extra
keywords, ie. 'north' ,'east',...,'down'.
Example:
ex := 'north' in self.extra;
'exit_names'[] :stringlist (RW)
The names matching the exit name 'open grate' The index should
be one of NORTH EAST SOUTH WEST UP DOWN in values.h and/or vme.h
Example:
sl := self.exit_names[SOUTH];
act("The $2t slides open as you press the button.",
A_ALWAYS, activator, sl.[0], null, TO_CHAR);
'exit_info'[] :integer (RW)
Bits specifying the conditions of the exits, see EX_* in
values.h and/or vme.h The index should be one of NORTH EAST SOUTH WEST
UP DOWN in values.h and/or vme.h
'exit_to'[] :unitptr (RO)
The unit, the direction exits to. The index should
be one of NORTH EAST SOUTH WEST UP DOWN in values.h and/or vme.h
You may not change the directions through DIL programs.
'roomflags' :integer (RW)
Bits specifying properties of the room, see ROOM_FL_* in
values.h and/or vme.h
'movement' :integer (RW)
The type of movement in the room, see SECT_* in values.h and/or vme.h