Hi guys, i have a question. How i can get the number of actors who has the same level?
Example: I have 3 actors in my party. 1st = Lv. 3; 2nd = Lv. 3; 3rd = Lv. 1. I want to set variable 1 by the number of actors who has Lv. 3 so the result would be 2 cause i have 2 Lv. 3 actors.
So, does anyone know how to do this?
Thank you.
Counting Same Items
● ARCHIVED · READ-ONLY
-
-
I have no idea how to do it via event. But it can be done easily with script call
Code:$game_variables[10] = $game_party.members.select {|m| m.level == 3}.size -
I thought of a way to pull this off by pure eventing, with the help of a common event checking each char's lv, combined with a variable counter, but why do you want a variable to do this anyway?Hi guys, i have a question. How i can get the number of actors who has the same level?
Example: I have 3 actors in my party. 1st = Lv. 3; 2nd = Lv. 3; 3rd = Lv. 1. I want to set variable 1 by the number of actors who has Lv. 3 so the result would be 2 cause i have 2 Lv. 3 actors.
So, does anyone know how to do this?
Thank you.
What do you need it for, can't you just get Himes custom page condition script, and have 3 char lv page conditions or do you have to have all three tied into a single variable for what you need to do?