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, or -1 for any.
Sint16flags-1, or a flag the rule needs set.
Sint16zoneA row of EncounterZones.

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(), WorldMapEncounterRules and WorldMapShipEncounterRules.

Definition at line 11 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, or -1 for any.

flags

Sint16 flags

-1, or a flag the rule needs set.

zone

Sint16 zone

A row of EncounterZones.