- Joined
- Nov 11, 2020
- Messages
- 9
- Reaction score
- 0
- First Language
- ko
- Primarily Uses
- RMMZ
in battle event, I wrote a script.
var i;
var a=0;
for (i = 0; i < 8; i++) {
if ($gameTroop.members().mp == 0) { a=1; break; }
}
if (a==0) {'Action'}
If the first conditions are not met, the action should be executed with a=0. But it can't. I wonder why.
var i;
var a=0;
for (i = 0; i < 8; i++) {
if ($gameTroop.members().mp == 0) { a=1; break; }
}
if (a==0) {'Action'}
If the first conditions are not met, the action should be executed with a=0. But it can't. I wonder why.