Skip to content

Tutorial: Enemy Editor

tolmar edited this page Feb 10, 2021 · 8 revisions

Enemy Placement at a Glance

If you've switched to Enemy Mode in the map editor, you'll notice a whole bunch of big squares on the map's grid with numbers on them, scattered all over the place. These are Map Enemy Groups. They contain groups of enemies and where they spawn on the map. Now here's something to keep in mind, Enemy Groups and Map Enemy Groups are completely different from each other, so don't get them mixed up. Map Enemy Groups contain Enemy groups and tells the game where they spawn on the map. Enemy Groups are what actually contain info about enemy arrangement in battles. Let's take a deeper look:

Map Enemy Groups

As mentioned before, Map Enemy Groups contain enemy groups and spawn them in the game. When you open map_enemy_groups.yml in your project, this is what the layout would be. (Example would be group 167.)

  167:
  Event Flag: 0x7e
  Sub-Group 1:
    0: {Enemy Group: 360, Probability: 3}
    1: {Enemy Group: 361, Probability: 5}
  Sub-Group 1 Rate: 64
  Sub-Group 2: {}
  Sub-Group 2 Rate: 0
  • Event Flag: Which flag to use to determine which sub-group to spawn. Usually used for turning off spawns in an area, but also used for things like changing what spawns in Onett.
  • Sub-Group 1: This sub-group is used when the flag is not set.
  • 0: and 1: are the set enemy groups that will be spawned. (I'm not too sure on how many enemy groups can be in a Map Enemy Group.)
  • Probability: sets the chance of the groups being spawned.
  • Sub-Group 2: This sub-group is used when the flag is set. The rest is the same. (The rest below is unknown to me. For now, it's best we don't mess with them yet.)

Enemy Groups

Enemy groups (as I mentioned previously) are what actually contain set enemies. They're located in the enemy_groups.yml file.

360:
  Background 1: 286
  Background 2: 0
  Enemies:
  - {Amount: 1, Enemy: 67}
  - {Amount: 1, Enemy: 68}
  Fear event flag: 0
  Fear mode: run away if flag is unset
  Letterbox Size: 1
  • Background 1: and Background 2: are what sets the background behind the enemy(ies)
  • Amount: is what sets how many set number of enemies are in battle.
  • Enemy: is what the enemy will be in battle.
  • Fear event flag: sets what level the enemy will run away from the party. (Party's level - 0 turns the flag off completely.)
  • Fear mode is when the enemy will run away from the party whether the party is a high enough level or not.
  • Letterbox Size: controls how big the letterbox is. A value of 3 makes the letterbox just barely overlap with the top of the name cards. 0 disables it.

Unused entries in map_enemy_groups.yml

Completely unused:

  • 9 (Unused Winters invasion plate)
  • 31 (Unused Insane Cultist plate)
  • 38 (Unused New Age Retro Hippie plate)
  • 52 (Unused and empty)
  • 149 (Unused and empty)
  • 195
  • 196 (Unused and empty)

On map but empty: (Should remove the original plates before using)

  • 131 - Two of them under Dept. Store Spook
  • 151 - Many plates near bathroom on first floor of Dungeon Man
  • 158 - Many plates on third floor of Dungeon Man
  • 159 - Many plates on top floor of Dungeon Man, near exit holes
  • 194 - Two of them in a Fourside tunnel

Other: (Should remove the original plate before using)

  • 97 - A Giant Step plate that's only used in an invalid spot off to the side of Titanic Ant's room
Clone this wiki locally