- Joined
- May 11, 2019
- Messages
- 12
- Reaction score
- 3
- First Language
- English
- Primarily Uses
- RMMV
I've been replaying It's Our Revolution by Wood Penguin, and I really like the idea of having party members leave when defeated, and you having to go find the place you first recruited them to have them join you again.
Unfortunately, I have no experience with Javascript beyond the stuff I've found on the RMMV Script Calls sheet. What I was thinking of potentially doing was this:
1. When Actors get Knocked Out in a battle, have their IDs added to a variable as an Array.
2. After a battle is complete, put that array into $gameParty.removeActor().
I just don't know how to put that code together.
I also need to make Actors show up back at their original position for recruitment again. I was planning on using Common Events like so:
If: Script: $gameActors.actor(7).isDead()
Script: var key [5, 27, A]
$gameSelfSwitches.setValue(key, false)
And then repeating that for every possible Actor. Is there a more succinct way of writing this, or is this the best way to set this up without needing to make a Plugin Request?
Unfortunately, I have no experience with Javascript beyond the stuff I've found on the RMMV Script Calls sheet. What I was thinking of potentially doing was this:
1. When Actors get Knocked Out in a battle, have their IDs added to a variable as an Array.
2. After a battle is complete, put that array into $gameParty.removeActor().
I just don't know how to put that code together.
I also need to make Actors show up back at their original position for recruitment again. I was planning on using Common Events like so:
If: Script: $gameActors.actor(7).isDead()
Script: var key [5, 27, A]
$gameSelfSwitches.setValue(key, false)
And then repeating that for every possible Actor. Is there a more succinct way of writing this, or is this the best way to set this up without needing to make a Plugin Request?

