- 0
Sign in to follow this
Followers
0
[XP] Delete Element found in $game_party.actors
Asked by
Heretic86
-
Recently Browsing 0 members
No registered users viewing this page.
I am messing with a screwy custom battle script. Short and simple, elements of $game_party.actors are moved to a new array. I compare the new array with $game_party.actors to find changes in the party, such as a Battler being Added or Removed during combat. Im trying to use this:
@count_battlers.delete(watched_party - $game_party.actors)
"watched_party" is a copy of the array I am comparing to because $game_party.actors changes when Characters are Added or Removed, but this doesnt work. @count_battlers is another copied array of all Battlers and Enemies (used for Progress Bar Gauge thing). This part of my script is trying to handle Removed Battlers, Added Battlers is super simple, uses actors.push(actor).
More of a Ruby in general question. How do I get this to work?
Share this post
Link to post
Share on other sites