[ASK] RPG Maker still on battle processing while either me or the enemy are dead

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Use one of the scripts call inside a conditional branch.


Enemy check:


$gameTroop.aliveMembers().length > 0






Ally check:


$gameParty.aliveMembers().length > 0






Here's an example code. In this case scenario, I want the skill to happen 6x. It should not happen when enemy dies. Therefore it should like this:


◆If:Repeat ≥ 6
  ◆Control Switches:#0001 戦闘行動強制スイッチ = OFF
  ◆
:Else
  ◆If:Script:$gameParty.aliveMembers().length > 0
    ◆Force Action:ハロルド, スパーク, Last Target
    ◆Control Variables:#0001 Repeat += 1
    ◆
  :Else
    ◆
  :End
  ◆
:End
 
Last edited by a moderator:

kelz95

Villager
Member
Joined
Oct 26, 2016
Messages
5
Reaction score
0
First Language
Indonesia
Primarily Uses
Use one of the scripts call inside a conditional branch.


Enemy check:



$gameTroop.aliveMembers().length > 0






Ally check:



$gameParty.aliveMembers().length > 0






Here's an example code. In this case scenario, I want the skill to happen 6x. It should not happen when enemy dies. Therefore it should like this:


◆If:Repeat ≥ 6
  ◆Control Switches:#0001 戦闘行動強制スイッチ = OFF
  ◆
:Else
  ◆If:Script:$gameParty.aliveMembers().length > 0
    ◆Force Action:ハロルド, スパーク, Last Target
    ◆Control Variables:#0001 Repeat += 1
    ◆
  :Else
    ◆
  :End
  ◆
:End
Thanks, i'll try it :D


UPDATE :  i'm already try it, but still can't do the force victory scene / game over scene.. :(
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top