Skip to Content
The Alchemy Project

struct SCENE_ENCOUNTER_RULE

A row of the scenes' encounter rules (SceneEncounterRules): a scene and entrance and, while a flag is clear, the encounter zones of its two kinds of ground.

Declared in field_engine_internal.h.

Fields

NameDescription
Sint16scene
Sint16entrance-1 for any
Sint16flags-1 for none; the rule applies while the flag is clear
Uint8groundZoneordinary ground
Uint8secondZoneMAP_METATILE_SECOND_ZONE metatiles

Description

A row of the scenes' encounter rules (SceneEncounterRules): a scene and entrance and, while a flag is clear, the encounter zones of its two kinds of ground.

struct SCENE_ENCOUNTER_RULE

Referenced by fdEncounterSelectMapZones() and SceneEncounterRules.

Definition at line 83 of file field_engine_internal.h.

Fields in detail

scene

Sint16 scene

entrance

Sint16 entrance

-1 for any

flags

Sint16 flags

-1 for none; the rule applies while the flag is clear

groundZone

Uint8 groundZone

ordinary ground

secondZone

Uint8 secondZone

MAP_METATILE_SECOND_ZONE metatiles