Can I make an event and copy it in such a way that out of all of these copies only the event with either the lowest or highest event ID successfully executes? I've tried making a custom variable and custom switch, but I think I'm missing something in how events work. For example, I want a recruitable party member to spawn and I have 6 points for him to spawn at how do I make sure only the first or last event actually spawns him? (First or last doesn't matter, whichever is easier to make happen is fine.)
Possible to duplicate events but only run one?
RPG Maker VXAce SupportI think you need to clarify your request. There are some parts either missing or described in a more complex way than neccessary.
For example, if you want to spawn a event representing a possible party member at a random position, why copy it? you could just use the set location command to move the event to the position randomly selected.
For example, if you want to spawn a event representing a possible party member at a random position, why copy it? you could just use the set location command to move the event to the position randomly selected.
Sorry, I guess the background would help. Parts of my map are randomly generated, essentially at least 1 of 4 areas will appear on the map but possibly all 4 and not are individually guaranteed. So I don't think I can set a random location because it's possible the party member ends up on a part of the map that isn't accessible. It doesn't really matter which area the party member ends up on though.
What about randoming a number between 1 and 6 then moving the event to one of six places depending on what was picked?
I would duplicate events but have them activate based upon a variable that you have the system call up depending on the situation. You could fairly easily plot the numbers used by the system with variables and a minor equation. Perhaps something like "choose random number 1 - 6, set variable equal to that number, remove numbers of inaccessible locations. Now, set the events to only appear if the number is of a specific value, making sure each event has a different value, so only one will run, and the others will stay "dormant" forever.
I did something similar a while back, but I didn't have the issue of "my map generates randomly, so some locations are blocked off". Perhaps there could be some branching events that change the equation so that it removes some variables? Such as... if a location is "blocked off", make the equation take that into account and if it drew that number, it randomly picks another number instead.
I'm not sure how compatible such a thing would be with your work, but maybe it's an idea to help you out?
I did something similar a while back, but I didn't have the issue of "my map generates randomly, so some locations are blocked off". Perhaps there could be some branching events that change the equation so that it removes some variables? Such as... if a location is "blocked off", make the equation take that into account and if it drew that number, it randomly picks another number instead.
I'm not sure how compatible such a thing would be with your work, but maybe it's an idea to help you out?
You still haven't given a reason for copying the events - do you want the player to be able to join an actor multiple times?
If the actor can stand only on one position at one time, then you need only one event for the actor - no need to make dummy events at other positions.
If you want to place that actor without knowing what part of a map is active, then use region IDs to indicate allowed positions on each random map part (for example like http://himeworks.wordpress.com/2013/04/26/random-event-positions/)
All events are always active with one page. That is build into the engine and can never be changed.
The key is to make some events active on empty pages to give the illusion they aren't there - but to do that you need different conditions on those pages.
Copying an event will by definition have all copies the same pages and conditions - so it's impossible to give them different active status unless you change their page/condition structure after the copying.
If the actor can stand only on one position at one time, then you need only one event for the actor - no need to make dummy events at other positions.
If you want to place that actor without knowing what part of a map is active, then use region IDs to indicate allowed positions on each random map part (for example like http://himeworks.wordpress.com/2013/04/26/random-event-positions/)
All events are always active with one page. That is build into the engine and can never be changed.
The key is to make some events active on empty pages to give the illusion they aren't there - but to do that you need different conditions on those pages.
Copying an event will by definition have all copies the same pages and conditions - so it's impossible to give them different active status unless you change their page/condition structure after the copying.
Actually an event can have no active pages: when no page conditions are met.
Similarly, an event can have multiple active pages as well, as demonstrated in Event Parallel Pages which allows you to run multiple event pages concurrently.
Similarly, an event can have multiple active pages as well, as demonstrated in Event Parallel Pages which allows you to run multiple event pages concurrently.
Original thread: https://forums.rpgmakerweb.com/threads/possible-to-duplicate-events-but-only-run-one.15159/