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:
push | automatically carries players and mobs out of the room |
fire | the room is on fire, and periodically inflicts damage |
regen | the room increases regeneration rates of its occupants |
climb | you can climb vertically through this room |
portal | there's an active 'gate' spell here |
sandstorm | a sandstorm here makes everybody harder to hit in melee |
flammable | fire spells cast here ignite the room, damaging everyone |
no gate | you cannot cast 'gate' spells into or out of this room |
force field | an exit is blocked by a force field |
tunnel | the room is a narrow tunnel; people can't pass each other |
absorb magic | spells cannot be cast here |
freezing | the room is very cold, and periodically inflicts damage |
dock | ships arrive here |
anti regen | the room decreases regeneration rates of its occupants |
drain mana | you lose mana if you hang around here |
wild magic | spells do random things here |
acid rain | acid rains down here, and periodically inflicts damage |
brambles | there's a 'brambles' spell active here |
fog | there's a 'fog' spell active here |
hermetic ward | there's a 'hermetic ward' spell active here |
scrybite | there's a 'scrybite' spell active here |
canopied arbor | there's a 'canopied arbor' spell active here |
boat speed up | if this room is a boat, it is magically accelerated
due to a strong wind |
quiet | speech is muffled in this room |
nohunt | the hunt command and related commands cannot find paths
passing through this room |
lazertag | the "fire" command works here |
greased | there's a 'grease' spell active here |