A question regarding input in battle (Is this scenario possible?)

Hello!

It seems I need your help once again! What I'm trying to achieve here is bypass the bug that I explained in this thread:

http://forums.rpgmakerweb.com/index.php?/topic/23247-ysa-atb-battle-symphony-escape-error/#entry221354

I want to ask if the following scenario is possible using scripting and if it is relatively easy to do.

If it is,please give me some pointers with how I can achieve it.

My system is YSA ATB + BATTLE SYMPHONY

<Every Actor has a skill called "Flee1" and a skill called "Flee2"

This skill thanks to Yanfly's Battle Commands does not show on the command window.

When you press a button during battle or two buttons at the same time (only possible when at least one hero's ATB bar is full)

The game 'forces' the hero whose command window was open when the button was pressed to use "Flee1"

A message pops up and says "The party tries to escape" (optional)

The game checks the heroes' ATB bars

The more heroes have their ATB bars full the better are the chances of a successful escape

If escape is successful,

Force the hero whose command window was open when the button was pressed,

to use skill "Flee2"  ---which has symphony tags that make the heroes run away--

end battle

If escape has failed, show message "There is no escape!"

battle resumes>

If it's possible and you have ideas with how I do it, please tell me.

I hope it isn't against the rules to make a new topic like that...

it will probably receive more attention this way!

If there is any problem,tell me.
basically anything is possible with scripting - it might just be a lot of programming work depending on what you want.


What you desribed above needs a number of different functions added by scripts.


For example you need a new input method to check for two buttons at the same time.


Then you need to access several data elements from other scripts like the ATB bar, and force-action different skills or effects.


Your main problem with this is that this all requires manipulation of other scripts - that is something that a lot of scripters can't do, because you need to be familiar with a script to be able to change it. And if you don't accidentally find a scripter who has used that script him/herself, and the original scripter has no time for requests, then the chances of getting this in a free request are low. It simply takes too much time to analyse a script written by someone else.
I see....It is harder than I thought...

I'll give it a go myself...just some (maybe noobish) questions:

start_flee_process if Input.trigger?🙂?)

1)Is this the correct way to make a button trigger something? how do i make it so the button is useless until at least one ATB bar is full?

is it like this:

start_flee_process if Input.trigger?🙂?) and if  party_total_atb >=25    #100 is if all actors have full atb (just an idea)

2)Do I have to store ATB information on a variable to be able to access it from another script?

3)Force actions...

Isn't there a script call that's equivalent of the event "Force Action" i can use?

I have the logic,I just can't figure out the language alone...

The only thing I can't even begin to figure out is how to make the actor whose command window is open do the skill...

One alternative I just thought:

What if I make a second actor command window,

when player pushes the button,

the first command window is disposed

and the new one comes up 

which has Escape (and maybe Defend and other secondary skills)

if the player presses it again,

the normal one come up again.

Would that be easier to do? (i know how to make windows)

Original thread: https://forums.rpgmakerweb.com/threads/a-question-regarding-input-in-battle-is-this-scenario-possible.23284/