Ekuipment's Skill Damage ACE
#1
Ekuipment's Skill Damage ACE
Intended for Custom Damage Formulae

by Kyonides

Introduction

This scriptlet allows you to alter your item's or skill's damage formula in some interesting way, by setting a custom note in the equipment's notebox, and a target statistic that will serve as some item or skill damage modifier.

NOTES:

If the target battler is an enemy, it has to include a given note tag in its notebox or else it will return 0. The note tag could be anything like <has weapon> or <wields sickle> or anything else.
You can pass either a :symbol representing a stat OR a number as the second parameter.

Instructions
  • First you'd have to include this scriptlet in your script editor as a brand new script.
  • Then read the embedded comments in my script. They're right there for a darn good reason! Shocked
  • Finally, you can use the new script call in your damage formulae at will. Winking

Here I'll leave the same example I included in those comments.

Code:
b.atk - b.equip_skill_dmg("<weakened>", :atk)
b.matk - b.equip_skill_dmg("<test>", :mdef, 25)

Here I gotta admit that the first example would always return 0 as your the skill damage for an obvious reason, he, he. Laughing
You may have noticed Look Up that it does not include a third argument like the second example does. What it means is that it gets the default value (100%) instead. Winking

The Script

Code:
# * Ekuipment's Skill Damage ACE
#   - Intended for Custom Damage Formulae
#   Scripter : Kyonides
#   v0.5.0 - 2025-03-14

# This scriptlet allows you to alter your item's or skill's damage formula in
# some interesting way, by setting a custom note in the equipment's notebox
# and a target statistic that will serve as some item or skill damage modifier.

# If the target battler is an enemy, it has to include a given note tag in
# its notebox or else it will return 0. The note tag could be anything like
# <has weapon> or <wields sickle> or anything else.

# * About the Damage Formula Box * #
# a represents an attacker, while b stands for a defender.

# * Damage Formula * #
# b.atk - b.equip_skill_dmg(note, stat)
# b.atk - b.equip_skill_dmg(note, stat, some %)
# - Usage Examples:
# b.atk - b.equip_skill_dmg("<weakened>", :atk)
# b.atk - b.equip_skill_dmg("<weakened>", :matk, 25)

# * Script Calls * #
# - Non-Damage-Formula Use Cases:
# $game_actors[1].equip_skill_dmg("note", :atk)
# $game_party.members[0].equip_skill_dmg("note", :matk, 50)

class Game_Actor
  def equip_skill_dmg(equip_note, stat, percent=100)
    result = equips.compact.any? {|e| e.note[equip_note] }
    result ? send(stat) * percent / 100 : 0
  end
end

class Game_Enemy
  def equip_skill_dmg(equip_note, stat, percent=100)
    @note[equip_note] ? send(stat) * percent / 100 : 0
  end
end

Terms & Conditions

Free for use in ANY VX ACE game. Gamer
Just include my nickname in the credits.
That's it! Tongue sticking out
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply
#2
Script Update!

After reviewing the early versions of this script I noticed that it was a good idea to let the game developer to not just pick a given note in the skill's or item's notebox but also a stat AND a specific percentage of that stat as skill damage.

This allows the skill's or item's damage formula to be quite skill-specific instead of totally equipment-focused so to say.

Keep in mind that VX ACE threats items and skills pretty much the same way, even if they're different Ruby Ruby objects. Shocked
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
   Skill Roulette VX + ACE kyonides 0 381 10-04-2024, 06:43 AM
Last Post: kyonides
   Skill Item Kost ACE kyonides 0 1,395 01-03-2024, 12:07 AM
Last Post: kyonides
   Skill Success Fix Taylor 0 5,583 03-23-2015, 12:15 PM
Last Post: Taylor
   Yanfly Damage Popup Helladen 0 5,751 04-25-2013, 03:50 PM
Last Post: Helladen
   Vampyr's SBABS DVV Addon #1: HUD Item Counter & Skill Delay Bar DerVVulfman 1 7,155 06-19-2012, 03:15 AM
Last Post: DerVVulfman
   Victor Engine - Damage Limit Victor Sant 0 5,855 01-04-2012, 09:14 AM
Last Post: Victor Sant
   Victor Engine - Damage Popup Victor Sant 0 5,886 12-21-2011, 07:56 AM
Last Post: Victor Sant
   Custom Skill Algorithms Lowell 0 5,195 12-07-2008, 05:45 PM
Last Post: Lowell
   Skill Delay VX DerVVulfman 0 5,225 03-06-2008, 04:29 AM
Last Post: DerVVulfman
   Damage Pop VX DerVVulfman 0 5,731 03-06-2008, 04:21 AM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)