- Aug 14, 2012
- Reaction score
- First Language
- Primarily Uses
Sorry for lack of clarity.How do you accomplish this? Where do you put the Html code? In the message box or in events?
This tag would go in with the rest of the tags that you use to define battler events on the map.
In short, it goes:
in the event
as a comment type event command
on its own line.
Similarly to how you would define other JABS-related battler characteristics, such as sight or movespeed.
You can refer to the code in the engine for the inner workings, but the gist of it is:How to use plugin commands / script calls for executing attacks for this plugin (either the standard attacks or the projectile attacks)?
$jabsEngine.forceMapAction(JABS_BATTLER, SKILL_ID); // where JABS_BATTLER is the reference to the battler you want to execute the skill. // where SKILL_ID is the skill id of the skill to be executed. // example: const player = $jabsEngine.getPlayer1(); $jabsEngine.forceMapAction(player, 25); // will force the player to execute the skill with the id of 25.
Just keep in mind that in contrast to what galv's map projectiles does where it just arbitrarily fires off some projectile in a 360 degree direction, this .forceMapAction() command will simply force the battler to execute the skill wherever they are standing. Extending the example, if you ran that snippet in a script command (not plugin command!), and skill 25 was just a fireball that went straight, it would cause the player to shoot a fireball straight ahead of wherever they are standing.
Additionally, if you want an event to fire off projectiles, it MUST have a battler associated with it since all skills have formulas that potentially work off the battler's stats, it is required.