Difference between revisions of "Template:VisuMZ Chain Battles Plugin Commands"

From Yanfly.moe Wiki
Jump to navigation Jump to search
(Chain Battle Plugin Commands)
Line 77: Line 77:
 
- Clears any stored Chain Battles, allowing the battle to end after
 
- Clears any stored Chain Battles, allowing the battle to end after
 
the current one.
 
the current one.
 +
</pre>
 +
 +
---
 +
 +
=== Next Victory Plugin Commands ===
 +
 +
---
 +
 +
[[File:ChainBattles_Update02_Command1.png]]
 +
 +
<pre>
 +
Next Victory: Queue Common Event
 +
- Queue a Common Event(s) to run next victory.
 +
- If multiple, Common Events run in queued order.
 +
- The Common Events will run before the next queued chain battle.
 +
 +
  Common Event ID(s):
 +
  - Select which Common Event(s) to run upon the next victory.
 +
  - If multiple, Common Events run in queued order.
 +
 +
  - If enemies revive in the middle of the Common Event queue, the queue is
 +
    paused and resumed after the enemies are defeated once again.
 +
    - For example:
 +
    - Common Events A, B, C, D, E are queued.
 +
    - Enemies are set to revive on Common Event B.
 +
    - When the player achieves battle victory, Common Events A and B run.
 +
    - The enemies will revive.
 +
    - The player has to defeat the enemies again.
 +
    - Once the enemies are defeated, Common Events C, D, and E then run.
 +
    - Afterwards, any chain battles will occur.
 +
</pre>
 +
 +
---
 +
 +
[[File:ChainBattles_Update02_Command2.png]]
 +
 +
<pre>
 +
Next Victory: Clear Common Event Queue
 +
- Clear queued Common Event(s) for next victory.
 
</pre>
 
</pre>
  
 
---
 
---

Revision as of 19:51, 16 February 2022

The following are Plugin Commands that come with this plugin. They can be accessed through the Plugin Command event command.

---

Chain Battle Plugin Commands

ChainBattles Preview1.png

---

ChainBattles Command1.png

Chain Battle: Queue Troop ID(s)
- Setup the next Troop ID as a part of a chain battle.
- If there are multiple, one will be randomly picked.

  Troop ID(s):
  - Select which Troop ID(s) to register as the next potential battle.

  Change Battleback?:
  - Change the battlebacks for this queued battle?

    Battleback 1:
    Battleback 2:
    - Filename used for the battleback image.
    - Leave empty if you don't wish to use one.

---

ChainBattles Command2.png

Chain Battle: Queue Encounter Pool
- Setup the next battle from the random encounter pool.
- If there are multiple, one will be randomly picked.

  Change Battleback?:
  - Change the battlebacks for this queued battle?

    Battleback 1:
    Battleback 2:
    - Filename used for the battleback image.
    - Leave empty if you don't wish to use one.

---

ChainBattles Command3.png

Chain Battle: Queue JavaScript ID
- Use JavaScript to determine which Troop ID to queue up for a chain battle.

  JS: Troop ID:
  - Use JavaScript code to determine what Troop ID to queue up for a
    chain battle.

  Change Battleback?:
  - Change the battlebacks for this queued battle?

    Battleback 1:
    Battleback 2:
    - Filename used for the battleback image.
    - Leave empty if you don't wish to use one.

---

ChainBattles Command4.png

Chain Battle: Clear Chains
- Clears any stored Chain Battles, allowing the battle to end after
the current one.

---

Next Victory Plugin Commands

---

ChainBattles Update02 Command1.png

Next Victory: Queue Common Event
- Queue a Common Event(s) to run next victory.
- If multiple, Common Events run in queued order.
- The Common Events will run before the next queued chain battle.

  Common Event ID(s):
  - Select which Common Event(s) to run upon the next victory.
  - If multiple, Common Events run in queued order.

  - If enemies revive in the middle of the Common Event queue, the queue is
    paused and resumed after the enemies are defeated once again.
    - For example:
    - Common Events A, B, C, D, E are queued.
    - Enemies are set to revive on Common Event B.
    - When the player achieves battle victory, Common Events A and B run.
    - The enemies will revive.
    - The player has to defeat the enemies again.
    - Once the enemies are defeated, Common Events C, D, and E then run.
    - Afterwards, any chain battles will occur.

---

ChainBattles Update02 Command2.png

Next Victory: Clear Common Event Queue
- Clear queued Common Event(s) for next victory.

---