Postponed attack or summon

Hi all! I use VX Ace's default  turn by turn battle system. I want to make abilities/items that wait some turns before excecuting. 

For example, i want to throw a tomatos at the ennemy, making no immediate effet else than a red splash animation (if possible). But in 3 turns.. a wild animal surge from the forest to attack the targetted ennemy (cause it's like blood). 

I have 2 major problemes making this: 


1) How to wait turns.. in turn by turn battles? (I want to keep the turn by turn system). 


As you know, the agility (speed) of characters and ennemies only decide who will triggers fisrt and last. But can't make one slow ablitity take more than a turn (like FF2 meteo did for example). I want to keep it that way an just add a "wait 3 turns".. 


2) If i use a common event(even if i can't figure how it could wait some turns).. the target will be radmomized unless it it affect all ennemies. 


Extra: if i can make the "wild animal" appear in the battle, like in a summon or pet i would be great too.. I saw Vlue made a script called "Pets and Summons" but it uses characters and that poses the probleme of "what if the party is already full" and limited graphics of heros in battle. 


Thanks for your precious help! 😀


Here's how my battles and Characters looks:

Capture d'écran 2016-09-07 14.25.24.png
there are several ways to do this, each having different advantages and disadvantages.


1) there are several scripts that could be used depending on the wanted effect. For example, Tsukihime has a script for follow-up states. You could define a state that will be followed by another state with that script. Just make a "wait state" that does nothing and lasts for several turns, followed by a "poison" state or whatever.


2) you can use troop events conditioned on variables and switches - the skill activates a switch, and the troop events detect that switch, count the number of turns it is on and do a force action after that.


3) there are a number of scriptsfor "charging" skills (wait before usable) or "cooldown" (wait before usable again)


Doing this by pure eventing is also possible, but it would require a lot of tricky logic - so I suggest you start looking into the script possibilities.


If you have no experience using scripts, I suggest you start with the tutorial "how to use a script" in my signature, it will introduce you to the basics of script use, link you to the master script list and provide some bughunting tips for script problems.
Thanks Andar, 


Is it Tsukihime's progressive states you're talking about in your first suggestion? Here:


http://himeworks.wordpress.com/2013/03/29/progressive-states/


Or here: http://himeworks.com/2013/03/progressive-states/
yes, it is - but you got an old link to a no longer current blog (and one that requires logging in as private access now).


search for the script here:


http://himeworks.com/
Fine! And for the new state to inflict direct damage (as result of being attacked by a wild animal) is there any way to do it? The only option i found in "states" to inflict damage is to add a negative "HP regenaration" like poison do and is based on the target's max hp. I would prefer to do more static damage (not based on the target's max hp). And i would like to add an animation at the moment of the damage. If there is a way to trigger an ability or force an action from a state it would be great!

 
No, for direct damage effects you'll need something else. You can try to make that with other scripts (I think Tsukihime also had an effect manager that might handle that), but I would really suggest doing that with a force action (and a special skill) in a troop event that uses variables to count the turns.
For the moment, a poison of 45% that last for 1 to 3 turns and  Tsukihime's progressive states script makes the battle playable, but relly on reading battles messages for the player to understand what is happening. And those messages defile at the speed of light 😮 ! That's why i will try your other suggestions soon or later!


I found a script to slow down battle message speed. Setting it to 40 is limit between too slow and too fast to be readable:

class Window_BattleLog < Window_Selectable 
#--------------------------------------------------------------------------
# * Get Message Speed
#--------------------------------------------------------------------------
def message_speed
return 40
end
end

Original thread: https://forums.rpgmakerweb.com/threads/postponed-attack-or-summon.67987/