Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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,106 03-29-2022, 11:55 PM
Last Post: DerVVulfman
   Dynamic Maps Expanded DerVVulfman 11 11,530 07-06-2021, 04:31 PM
Last Post: Melana
   BIG MAPS DerVVulfman 28 24,367 12-08-2020, 04:34 AM
Last Post: DerVVulfman
   KItemDesc XP & VX Zilsel Version kyonides 4 6,640 12-01-2019, 06:11 AM
Last Post: kyonides
   H-Mode7 maps in RMVX Ace MGC 5 39,675 12-29-2018, 05:04 PM
Last Post: Kamillo
   CTB - A Final Fantasy X-like Battle System, Version 3.2 Charlie Fleed 572 654,345 05-19-2016, 05:38 PM
Last Post: Starmage
   Isometric Maps: MiniMap DVV Patch DerVVulfman 0 4,870 06-26-2014, 03:27 AM
Last Post: DerVVulfman
   The Lycan ABS Isometric Maps Patch DerVVulfman 1 6,114 06-25-2014, 03:54 AM
Last Post: DerVVulfman
   GubiD's Isometric Maps Package DerVVulfman 1 5,965 06-25-2014, 03:31 AM
Last Post: DerVVulfman
   Equipment Upgrade System by Charlie Fleed, Version 1.2 Charlie Fleed 145 186,259 04-11-2014, 01:19 AM
Last Post: Gardesion



Users browsing this thread: