Hello,
This may be a bit of a strange one, though I think it could be useful in certain situations. I have downloaded and am experimenting with Yanfly's Spawn Event script. This works great, except for certain entries in the spawned Event's Pages. Any command entered into the Event's Pages via the editor that uses 'This Event' to set the target will cause problems.
For example, I have an Event of a confused and startled girl that is summoned, and will go through a 'panic' move route. This Event is Event #2 on the map it resides within. Spawning the Event will cause a copy of the Event, with a new ID, to appear on the map. Interacting with the spawned Event will then cause Event #2 ON THIS MAP to animate!
So, given the new ID of the spawned Event, I'd attempt to (pseucode):
for each of the Event's Pages inspect each element. If it's a command that can potentially refer to an Event ID If the Event ID referred to is the ID number of the Event on its original map Replace the ID value with the new ID of the spawned event end if end ifend for In my example given above, I'd replace all Event ID references that = 2 to the new ID.
So how would I iterate across an Event's Pages, and for each Page iterate across each command?
This may be a bit of a strange one, though I think it could be useful in certain situations. I have downloaded and am experimenting with Yanfly's Spawn Event script. This works great, except for certain entries in the spawned Event's Pages. Any command entered into the Event's Pages via the editor that uses 'This Event' to set the target will cause problems.
For example, I have an Event of a confused and startled girl that is summoned, and will go through a 'panic' move route. This Event is Event #2 on the map it resides within. Spawning the Event will cause a copy of the Event, with a new ID, to appear on the map. Interacting with the spawned Event will then cause Event #2 ON THIS MAP to animate!
So, given the new ID of the spawned Event, I'd attempt to (pseucode):
for each of the Event's Pages inspect each element. If it's a command that can potentially refer to an Event ID If the Event ID referred to is the ID number of the Event on its original map Replace the ID value with the new ID of the spawned event end if end ifend for In my example given above, I'd replace all Event ID references that = 2 to the new ID.
So how would I iterate across an Event's Pages, and for each Page iterate across each command?