Skip to Content
The Alchemy Project

struct WORLD_MAP_ENCOUNTER_RULE

The World Map's encounter zone for an encounter region and battle environment. More…

Declared in world_map_encounter_rules.h.

Fields

NameDescription
Sint16regionThe World Map metatile's encounter region (WORLD_MAP_ENCOUNTER_REGION); -1 ends the table.
Sint16environmentThe battle environment (BATTLE_ENVIRONMENT), which also picks the battle background (fdBattleBackgroundSelectForEnvironment), or -1 for any.
Sint16flags-1, or a flag that turns the rule off once set.
Sint16zoneA row of encounter_zones.c.

Description

The World Map's encounter zone for an encounter region and battle environment. Read by fdEncounterResolveWorldMapZoneAndBackdrop, first match first.

struct WORLD_MAP_ENCOUNTER_RULE

Referenced by fdEncounterResolveWorldMapZoneAndBackdrop() and WorldMapEncounterRules.

Definition at line 12 of file world_map_encounter_rules.h.

Fields in detail

region

Sint16 region

The World Map metatile's encounter region (WORLD_MAP_ENCOUNTER_REGION); -1 ends the table.

environment

Sint16 environment

The battle environment (BATTLE_ENVIRONMENT), which also picks the battle background (fdBattleBackgroundSelectForEnvironment), or -1 for any.

flags

Sint16 flags

-1, or a flag that turns the rule off once set.

zone

Sint16 zone

A row of encounter_zones.c.