room_affect

Settable:
no
Arguments:
room, string
Return Value:
integer array

Just like magical effects are stored on people and mobs in the "affect" structure, magical effects on rooms are stored in "room_affects". Various random information is stored in this form: the effects of a few spells (brambles, scrybite, and hermetic ward, for example), whether the room is a dock, and some natural effects like if the room is on fire or very cold.

The room_affect function returns a list of integers that describes the first room affect of a given type in the room, or null if there is no room affect present of the specified type. (There generally shouldn't be more than one room affect of the same type in the room.) The integers are, in order:

1value 0
2value 1
3value 2
4value 3
5duration in ticks; -1 = permanent
6caster level

The "value" entries vary in meaning depending on the specific affect. See the in-game immhelp file for exact meanings of those for each room_affect.

The types of room affect, specified in the second argument, are:
pushautomatically carries players and mobs out of the room
firethe room is on fire, and periodically inflicts damage
regenthe room increases regeneration rates of its occupants
climbyou can climb vertically through this room
portalthere's an active 'gate' spell here
sandstorma sandstorm here makes everybody harder to hit in melee
flammablefire spells cast here ignite the room, damaging everyone
no gateyou cannot cast 'gate' spells into or out of this room
force fieldan exit is blocked by a force field
tunnelthe room is a narrow tunnel; people can't pass each other
absorb magicspells cannot be cast here
freezingthe room is very cold, and periodically inflicts damage
dockships arrive here
anti regenthe room decreases regeneration rates of its occupants
drain manayou lose mana if you hang around here
wild magicspells do random things here
acid rainacid rains down here, and periodically inflicts damage
bramblesthere's a 'brambles' spell active here
fogthere's a 'fog' spell active here
hermetic wardthere's a 'hermetic ward' spell active here
scrybitethere's a 'scrybite' spell active here
canopied arborthere's a 'canopied arbor' spell active here
boat speed upif this room is a boat, it is magically accelerated due to a strong wind
quietspeech is muffled in this room
nohuntthe hunt command and related commands cannot find paths passing through this room
lazertagthe "fire" command works here
greasedthere's a 'grease' spell active here