(Request) Script to force specific actions in battle.

● ARCHIVED · READ-ONLY
Started by tiagoms 5 posts View original ↗
  1. Hello
    I wonder if someone could produce a script to force the "Actor X" use "skill Y" in a "Actor Z".

    Thanks
  2. Why a script?


    Basically, that is the definition of the "force action" event command, so yes - theoretically this could be called from a script as well.


    But unless you need a very specific case, it's usually better to use that event command directly in either a troop event (in Battle) or in a map event (outside battle).
  3. Yes, the case is specific.

    the "Event" of RMVX Ace, does not support the above condition.
    He ofecere the following support:
    "Actor X" uses "Magic Y" on target in "last, random, position 1, 2 ....", but not in specific actor.

    And necessarily, should be in a pre-defined "actor".

    "Actor X" use skill "Y" in Actor "Z".
  4. "position 3" is the actor in position 3 of your party if the skill has the scope "ally".


    If you want a specific actor as the target, you'll just have to check it's position in the party and then target that position.


    And this would also be neccessary when using the scripted version of that command, because internally the engine only knows index and position, but not the names for actors.
  5. ok, I'll explain better = D

    The project, in which I am involved, has 32 actors.
    At the opening screen, there are 25 initial players, but only one can be chosen.

    During the game, the more players will be added in the party (always keeping the maximum number of 5).

    32 actors. 141 combinations of skills. in battle, 20 slots (5 for actors only; 15 for summoning pets only).

    The script does not call the name of the actor, but by its index.

    I do not understand much of the script commands, but it would be something like:
    "$ Force.Game_Actor (004). Use_skill (080). On_Game_Actor (020)"

    Would not it be possible?

    ---- EDIT ---

    or force the "Actor X", use the "Skill Y" in an actor who is in the "position 17". (because, for events, the RMVXA limits to position eight)
    $ Force.Game_Actor(005)use_Skill(155).Battle_position (17)

    But in this case, I need another command to identify the position of the actor ..