[RMVX Ace] Custom/Individual "Attack" Formulas

Started by AJNR95, May 27, 2012, 10:14:30 pm

Previous topic - Next topic

AJNR95

Script Type:
Battle System Add-On, Add-On


Scripts in use:

Scripts marked with ** are scripts within the project, but not in use and not edited into the game


Script Description:
I would like the script to function with states and weapons that enable a specific damage
formula that overwrite the "Attack" Skill that is used as the game's "Attack" action.
Two examples would be:


A Mage equips a Wand that inflicts Magical Damage.
The ID, Weapon Type, or Element can correspond with the script to change the battler's damage formula.
This can cause the Mage's damage output formula change from this to that:
Default Formula(a.atk * 2) - (b.def * 0.5) --> New Formula(a.mat * 2) - (b.mdf * 0.5)

A Rogue casts a state to deal damage based on Agilty and ignore 20% of Enemy's Armor
This can cause the Rogue's damage output formula change from this to that:
Default Formula(a.atk * 2) - (b.def * 0.5) --> New Formula(a.agi * 2) - (b.def * 0.3)

Now, I can image that the script would require an id to recognize, and then process it into the entered damage formula.
Let's say the Mage's Wand ID is 037. So I'm guessing it would look like this.


CUSTOM_DAMAGE ={
# Weapon ID => ["Damage Formula"],
37 => ["(a.mat * 2) - (b.mdf * 0.5)"],
}




I don't comprehend the RGSS3 Script as much as the RGSS and RGSS2 Scripts, but I know enough to edit user friendly sections.
However, I don't know the method of creating this script, it is fine to be able to process it via Skill's ID, State's ID, Element's ID, Weapon's ID
and/or Weapon Type's ID. I know that each will have their own section if more than one is valid for use.



If my request is inaccurate or not understandable, tell me so I can fix that.
Thank you.
Spoiler: ShowHide


by Blizz: Spoilered, because image is 2.6 MB.
by AJNR95: Unspoilered, because fuck you - ¡Viva la Revolución!
by Blizz: Spoilered again, and Banned.