Skip to Content
The Alchemy Project

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

NameDescription
Sint16sceneId-1 ends the table
Sint16entrance-1 for any entrance
Sint16flags : 15-1, or a flag that turns the rule off once set
Sint16firstZoneOnGround : 1the first zone is for ground 0, not 1
Sint16firstZonefirst 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