Auto Populate Maps, Version 0.5
#6
With "APM_RESET_SELF_SWITCHES=true" the self-switches of the generated events will be reset upon their generation. However that happens only when the populate function is used, not when the other ones are (populate_area, populate_area_2, populate_area_3 and so on). If you are using only the other ones, you won't see any effect and the self-switches will keep their previous value.

Self-switches are a little tricky, because they are not stored within events, but instead there's a global array for them.
This can be good in a simple situation, as for example lets you do things with this script as controlling the number of monsters that are alive in a map, by keeping a self-switch set indicating that a monster is dead. That monster will be generated dead. This is under the assumption that the events will always take the same IDs, which correspond with the indexes in the self-switches array.
But, if for some reason the IDs/indexes of some events change, because the order in which they are generated changes or I don't know why, then their self-switches will get the values that before belonged to the events with the new indexes, causing a total mess.
Reply }


Messages In This Thread
RE: Auto Populate Maps - by Charlie Fleed - 11-21-2010, 09:45 AM
RE: Auto Populate Maps, Version 0.5 - by deValdr - 11-21-2010, 10:07 AM
Auto Populate Maps - by Charlie Fleed - 03-06-2009, 11:40 PM
Auto Populate Maps - by Charlie Fleed - 11-22-2009, 06:56 PM
Auto Populate Maps - by Alpha-Mad - 11-22-2009, 07:12 PM
Auto Populate Maps - by Nadim - 06-14-2010, 10:36 AM
Auto Populate Maps - by Charlie Fleed - 06-14-2010, 12:23 PM
Auto Populate Maps - by Nadim - 06-14-2010, 01:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   The Charlie Mini-Map / Dynamic Maps Patch DerVVulfman 2 4,900 03-29-2022, 11:55 PM
Last Post: DerVVulfman
   Dynamic Maps Expanded DerVVulfman 11 13,430 07-06-2021, 04:31 PM
Last Post: Mel
   BIG MAPS DerVVulfman 28 30,118 12-08-2020, 04:34 AM
Last Post: DerVVulfman
   KItemDesc XP Zilsel Version kyonides 4 7,719 12-01-2019, 06:11 AM
Last Post: kyonides
   CTB - A Final Fantasy X-like Battle System, Version 3.2 Charlie Fleed 572 755,430 05-19-2016, 05:38 PM
Last Post: Starmage
   Isometric Maps: MiniMap DVV Patch DerVVulfman 0 5,269 06-26-2014, 03:27 AM
Last Post: DerVVulfman
   The Lycan ABS Isometric Maps Patch DerVVulfman 1 6,712 06-25-2014, 03:54 AM
Last Post: DerVVulfman
   GubiD's Isometric Maps Package DerVVulfman 1 6,476 06-25-2014, 03:31 AM
Last Post: DerVVulfman
   Equipment Upgrade System by Charlie Fleed, Version 1.2 Charlie Fleed 145 211,027 04-11-2014, 01:19 AM
Last Post: Gardesion
   Individual Battle Commands by Charlie Fleed, Version 1.0 Charlie Fleed 3 11,330 01-25-2014, 12:15 PM
Last Post: Charlie Fleed



Users browsing this thread: 4 Guest(s)