Heroform.reld

From OHRRPGCE-Wiki
Jump to navigation Jump to search

This lump stores information about hero positions in battle.

  • heroforms - the root node
    • form int - one node for each defined hero formation. The int is the formation record number
      • slot int - one node for each hero slot in the active party. The number is the slot number 0-3
        • stance int - value is always 0
          • x int - the x position of the bottom-centre of the hero. This is relative to the hero area, which is currently hardcoded, but will be defined by the battle screen slice collection later
          • y int - the y position of the bottom-centre of the hero. This is relative to the hero area, which is currently hardcoded, but will be defined by the battle screen slice collection later

The current format is very simple, but leaves room for future implementation of fancier features like Stances and stat bonuses, which can be added incrementally later according to other plans such as Plan for converting battle display to slices and Plan for battle formation improvements

Future Plan[edit]

  • heroforms - the root node
    • form int - one node for each defined hero formation. The int is the formation record number
      • slot int - one node for each hero slot in the active party. The number is the slot number 0-3 (this could be extended later for more heroes in battle)
        • stance int - one node for each stance for this slot.
          • x int - the x position of the bottom-centre of the hero. This is relative to the hero area, which is currently hardcoded, but will be defined by the battle screen slice collection later
          • y int - the y position of the bottom-centre of the hero. This is relative to the hero area, which is currently hardcoded, but will be defined by the battle screen slice collection later
          • bonus - contains stat bonus data for this stance
            • stat int - stat number
              • amount int - a positive or negative number to be added to the stat
              • percent float - a percentage by which the stat will be modified (stored as 1.0 = 100%)
          • flipped - if present and non-zero, the hero will start the battle facing right instead of left (after battle direction-changing is implemented)