Jump to content

Reinforcements, conditionals and AI changing in FE8


Vennobennu
 Share

Recommended Posts

For anybody using my notes to make their own reinforcement events, I've found that I misunderstood the importance of this code:

label66:
_0x1927
_SETCONDITION2 0x0 0xC 0x0
_0x1922
_SETCONDITION 0x0 0xC 0x0
CALL label39
ENIF 0x0
ENDA

It does often prove necessary to have this before the rest of the reinforcement event for generic reinforcements, especially when the map is already populated with units...but not always. See the first post for some context on this code. In fact this is simply a difficulty check; the related event only occurs if you're on hard mode.

Soon I hope to have an update on counting with events, but that's subject to real life pressures.

Edited by Vennobennu
Link to comment
Share on other sites

Hello class! Today we're going to learn about.....counting!!!

What's 0x401 plus 0x100?

I have found out how the game stores and increments some variables. With it, you can create an event that is triggered when at least X number of conditions are met, or to create events that repeat for a certain number of turns independent of the specific turn number. Right now I only understand how to work incrementing by one and conditionals, but I think that many things could be done with this system.

Here's an example from Chapter 14Eph, Father and Son:

TURN 0xD label21 [1,255] 0x0


_0x0F21 0x200 //0x200; not relevant to counter?
_0x1927 //this might just be normal loading stuff
_SETCONDITION2 0x0 0xC 0x0//Or related to the camera
_0x1922
_SETCONDITION 0x0 0xC 0x0
//Relevant stuff:
_0x0F21 0x401 //Format is X0Y; X is number to store in memeory; Y is memory slot to use?
ENIF 0x0
_0x0221 0xD//Sets Event ID 0xD as unused
_0x0228 0x7
ENDA


_SETVAL 0x2 0x88C6584
CALL label30
_0x0F23 0x1 //If doesn't match 0F21 parameter, won't work. Adds to counter/subtracts from variable stored?
_0x0221 0xD //Sets this event as unused.
_0x0F20 0x1 //Parameter must match Y set with _0x0F21. Loads value of counter?
_SETCONDITION2 0x0 0xC 0x0//If variable X a value, proceed; otherwise, skip to ENIF 0x0.
_0x0229 0xD //Sets Event ID as used.
ENIF 0x0
_0x0228 0x7
ENDA

Edited by Vennobennu
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...