struct SCENE_ENCOUNTER_RULE
A scene's encounter zones (SceneEncounterRules, encounter_rules.s; rows of encounter_zones.c), ended by scene -1.
Declared in field_engine_internal.h.
Fields
| Name | Description | |
|---|---|---|
Sint16 | sceneId | -1 ends the table |
Sint16 | entrance | -1 for any entrance |
Sint16 | flags : 15 | -1, or a flag that turns the rule off once set |
Sint16 | firstZoneOnGround : 1 | the first zone is for ground 0, not 1 |
Sint16 | firstZone | first of up to 7 consecutive zones; 0 for none on any ground |
Description
A scene's encounter zones (SceneEncounterRules, encounter_rules.s; rows of
encounter_zones.c), ended by scene -1.
struct SCENE_ENCOUNTER_RULE
Referenced by fdEncounterSelectMapZones() and SceneEncounterRules.
Definition at line 57 of file field_engine_internal.h.
Fields in detail
sceneId
Sint16 sceneId
-1 ends the table
entrance
Sint16 entrance
-1 for any entrance
flags
Sint16 flags : 15
-1, or a flag that turns the rule off once set
firstZoneOnGround
Sint16 firstZoneOnGround : 1
the first zone is for ground 0, not 1
firstZone
Sint16 firstZone
first of up to 7 consecutive zones; 0 for none on any ground