I'm looking for a script that causes a weapon to hurt the user when they attack with it. I intend to use it as the main drawback of a particularly powerful weapon in my game.
Recoil Damage on Weapons
RGSS3 Script RequestsI'm working on a "battle effects" script that would let you accomplish this with a few simple notetags on your weapon. I expect to be releasing it in a month or two. In the meantime, it's possible you could find a script that would let you do this if you search around, though I don't know of any offhand.
You could also set this up without a script as a feature of the "Normal Attack Skill" if you wanted, subtracting HP from "a" (the user) if the user has this weapon equipped (I think this would be written as "if a.equips[0] == $data_weapons[33]; a.hp -= a.atk * 3; end; (normal damage formula here)" but I'm not completely sure
You could also set this up without a script as a feature of the "Normal Attack Skill" if you wanted, subtracting HP from "a" (the user) if the user has this weapon equipped (I think this would be written as "if a.equips[0] == $data_weapons[33]; a.hp -= a.atk * 3; end; (normal damage formula here)" but I'm not completely sure
You could use my Skill/Item apply extension script to make the weapon run some rgss3 codes if an actor uses a skill while the weapon is equipped... Or it you only need it for attack skill, then I suggest just checking on the damage formula if the weapon is equipped...
Original thread: https://forums.rpgmakerweb.com/threads/recoil-damage-on-weapons.36497/