RPG Maker VX Ace already has the concept of the preemptive strike for combat where you get a chance to do a full round of actions before the regular fighting starts.
I would like to have one of my characters join the group with the unique ability that, when he's in the group, some battles start with the enemy "walking into a trap" and taking damage before any turns happen.
Needed:
* At the start of combat, all enemies take damage
* Only happens when a particular character is in the group
* Happens randomly (percentage chance)
* A message tells the player that it is happening
Desired, but okay if not included:
* Some enemies are immune (i.e. bosses)
* Animation occurs
* Displays the specific amount of damage taken by each enemy
* Damage is based on the particular character's stats or level
Optional:
* Could be tied to preemptive attack if that is easier (though I'd want to adjust the rate if so)
* Could be a class/actor skill (though it would need to be unusable from the skills list)
Thanks in advance to anybody that helps with this!
Randomly start battle with enemies taking damage
● ARCHIVED · READ-ONLY
-
-
All this can be done with eventing alone, no need for scripts.
Go to the troop page of the database, any troop event that is set to be executed on Turn 0 will be executed before combat happens.
You can then use evented conditions and control variable commands to check if the actor is in the party, check the random chance and so on.
However, I suggest using one of the troop event scripts that copies the events from troop 1 automatically to all troops ingame, because otherwise you would have to place those events manually into every troop in your game. There are two or three of those scripts on the master script list.