Vennobennu Posted October 8, 2013 Author Share Posted October 8, 2013 (edited) 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 January 1, 2014 by Vennobennu Quote Link to comment Share on other sites More sharing options...
Vennobennu Posted October 9, 2013 Author Share Posted October 9, 2013 (edited) 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 0x7ENDA_SETVAL 0x2 0x88C6584CALL 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 0x7ENDA Edited October 9, 2013 by Vennobennu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.