Global Skills - KageDesu/Alpha-ABS-Z GitHub Wiki

⚠️ Information actual for version 0.8.7 and above

You can execute ABS skills via script calls or Script Actions.

Rules

For executing ABS skill you need three main arguments:

  • OWNER_ID For calculate damage formula ABS skill should have some refrerence Battler for using main stats (hp, atk, def, ...)
    By this argument you determine whose characteristics will be used to calculate the formula
    0 - Player's Actor, X - Enemy ID (from database)
  • TEAM_ID By this argument you can determine on whose side will the skill be.
    Examples:

-1 - skill will damage all (player, party, enemies)
0 - skill will damage enemies 1 - skill will damage Player and Party

So, if character != this argument, skill will damage this character (if you not specify friendlyEffect:1)

  • SKILL_ID Skill ID from database, should be ABS Skill

Script Calls

⚠️ Works only on Scene Map and if ABS system is Active

uAPI.executeAASkillOnMap(OWNER_ID, TEAM_ID, SKILL_ID, X, Y) - execute ABS skill on map in point X, Y

all arguments is Extended Values

Example:

uAPI.executeAASkillOnMap(0, -1, 300, 10, 20); // Execute skill (id 300) against all (-1) in point [10, 20]. Reference battler is Player's Actor (0)
uAPI.executeAASkillOnMap(10, 1, 10, 4, 5); // Skill (id 10) agains player (1) in point [4, 5]. Reference battler is Database Enemy (id 10)

uAPI.executeAASkillOnChar(OWNER_ID, TEAM_ID, SKILL_ID, CHAR_ID) - execute ABS skill direct on Character

Where: CHAR_ID - if 0 = on Player, X = on Event (ID = X) all arguments is Extended Values

Example:

uAPI.executeAASkillOnChar(0, -1, 144, 6); // Execute skill (id 144) against all (-1) direct on Event (id 6). Reference battler is Player's Actor (0)

uAPI.executeAASkillOnMapProjFromPoint(OWNER_ID, TEAM_ID, SKILL_ID, X, Y, DIRECTION) - execute projectile ABS skill from point X,Y on map in direction

X, Y - Map Point X, Y Where: DIRECTION - 2 (down), 4 (left), 6 (right), 8 (up)

Example:

uAPI.executeAASkillOnMapProjFromPoint(0, -1, 144, 10, 10, 8); // Execute skill (id 144) against all (-1) from map point (10, 10) in up direction (8). Reference battler is Player's Actor (0)

uAPI.executeAASkillOnMapProjFromPoint(OWNER_ID, TEAM_ID, SKILL_ID, X, Y, X2, Y2) - same as above, but execute projectile from X,Y to X2,Y2

X2, Y2 - Target map Point X, Y

uAPI.executeAASkillOnMapProjFromChar(OWNER_ID, TEAM_ID, CHAR_ID) - execute projectile ABS skill from event CHAR_ID in HIS DIRECTION

uAPI.executeAASkillOnMapProjFromChar(OWNER_ID, TEAM_ID, CHAR_ID, X, Y) - execute projectile ABS skill from event CHAR_ID to X, Y position

Script Actions

See es_OWNER_TEAM_SKILL in Script Actions Table

⚠️ **GitHub.com Fallback** ⚠️