Map Encounters - KageDesu/Alpha-ABS-Z GitHub Wiki

⚠️ Information actual for version 0.8.5 and above

EncountersMz2

You can spawn enemies using default RPG Maker Map Encounters

2022-10-10_22-04-39

⚡ You should have Spawn Map, see Enemy Spaning for more information.

⚡ Alpha ABS Z Demo project have map with example of implementing and control Map Encounters

Prepare Map for activate ABS Encounters

Add next lines to Map Note section:

<AAENC>
animation:X
radius:Y
absOnly:Z
</AAENC>

Where:

  • animation - animation played when enemy spawned, X - animation ID from database or 0 (no any animation)
  • radius - the radius in which enemies will appear around the player on map if region is not specified
  • absOnly - 1 disable Encounters when ABS system is disabled. 0 - if ABS system is disabled encounters still will work but as usual (call default battle scene instead)

Add Encounters Troops

⚠️ Troop number - is a enemy event ID on Spawn Map. For example: if you select troop #6, ABS event with ID 6 from spawn map will be spawned

If you set Range to Entire Map, enemies will be spawned anywhere on map (around the player within radius parameter)

If you set Range to Specify By Region ID, enemies will spawned only on this region, and encounter steps will be counted for this troop only when the player on same region.

⚠️ The enemy may not be spawned if the point on the map is not valid (some obstacle, player, event, etc.), but the Encounter counter will be reseted

Ways to control Map Encounters

  • You can Disable or Enable Encounter on map with Event Command - Change Encounter (3 page, System settings tab) 2022-10-10_22-15-09

  • You can use Party Abilities - Encounter Half, Encounter None (Traits, Other tab)

  • You can get spawned enemies count (by map encounters) - uAPI.getSpawnedByEncountersCount()


⚠️ **GitHub.com Fallback** ⚠️