Hey guys , here is a few questions , could be hard to answer tho ...
1 . I'm trying to do a zoom in when it's a critical hit , can we know it before the movement to the enemy ?
Because right now , the way I know is to apply the condition after the "show damage" . But I want to
set my zoom in before the action . Like in Suikoden games.
2. Can we force a monster or an actor to change position in the battle ? I mean when a monster dies in the front row , the
one in back move forward to take his spot ? I need to implement a line with the new coordinate and move to that position.
3. Last one , I want my battle sequences faster , less wait . I mean I want to start my next action after the one before
is completely finished .
Thx 🙂
1. Honestly I have no idea when ACE determines if a hit will be a critical hit. It seems that it determines this at the actual hit (aka :target_damage), by what you have explained. So, your going to need to rework it. This may be a little more labor intensive than you want, and this all hinges on whether or not Theo's :force_critical will work even if a skill has "no" set as its critical hit possibility. So, test it to make sure it can.
- Set all skills' "critical:" box to "No". This will prevent random critical hits done by the system.
- Create an action called "Calculate_Crit" In the scripting database. Here, you will do two things. First, you're going to use [:script, <insert the random number scriptline here(I can't remember exactly what it is, but google should yield it, or you could always go into the "rgssx Q's that don't deserve their own threads" and someone should know there), and set it equal to a variable>], for example let's just say it is a random number out of 10.
- Second, if the Var, which is any number out of 10, equals 1, then you will activate force critical hit and zoom in the camera.
[:if, "$game_variables(1) = 1",
[
[:force_critical, true],
[<zooming function goes here>],
],
],
- Now, for every attack or skill action you make, before [:target_damage], insert [:forced, Calculate_Crit], and after the [:target_damage], always reset zoom and insert [:force_critical, false],
I know it's labor intensive, but from what you've said about the behavior of the engine calculating critical hits, this is the easiest work around I can think of.
Also, if your testing proves that Theo can't force a crit if it is set to "No" on a skill, then you can still accomplish what you want, you'd just have to use the var check to determine whether or not to do [:target_damage], or [:target_damage, 2.0]. If you don't understand what I mean then I'll explain it if it comes to it.
2. You'd probably need another script for that, since Theo doesn't determine where the monsters are located, you do in the database editor.
3. I don't think you can do that with Theo's script alone, either. You'd probably need a new script.