Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: Bobstah's custom stats not working for damage formula
- Original author: Gabrepasta
- Original date: December 2, 2018
- Source thread: https://forums.rpgmakerweb.com/threads/bobstahs-custom-stats-not-working-for-damage-formula.102856/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
I am using Bobstah's Custom Stats plug-in, but the added custom stats do not work in the damage formula, making the skills they are included in do 0 damage. I will describe how I set up the custom stats on the example of srf and fst. In the Actor note tag I added: And in the weapon tag I added:
Archived First Post
I am using Bobstah's Custom Stats plug-in, but the added custom stats do not work in the damage formula, making the skills they are included in do 0 damage.
I will describe how I set up the custom stats on the example of srf and fst.
In the Actor note tag I added:
<CustomStat: srf=0>
<CustomStat: fst=0>
And in the weapon tag I added:
<CustomStat: srf+5>
(I am also using JahwsUF's Satus Menu Core to shows these stats in the status menu. Note that when the weapon is equipped, the stat will she shown to be 5, like it's supposed to)
In the enemy note tag I added:
<CustomStat: fst=3>
The damage formula of the skill used to attack that enemy is:
a.atk - b.def - (b.fst / a.srf)
And obviously the damage is shown to be 0.
However, that also is true if I just put in a.srf as the damage formula.
On the page regarding the plug-in Bobstah wrote "After setting a custom stat to an actor/enemy, you reference it in damage formulas or other code just like any other stat.", so it should work that way.
So, what is wrong here? Where did I mess up or is there a mistake in the scrip?
My own abilities concerning Java Script are close to not existence, so I really can't figure that our myself.
I will describe how I set up the custom stats on the example of srf and fst.
In the Actor note tag I added:
<CustomStat: srf=0>
<CustomStat: fst=0>
And in the weapon tag I added:
<CustomStat: srf+5>
(I am also using JahwsUF's Satus Menu Core to shows these stats in the status menu. Note that when the weapon is equipped, the stat will she shown to be 5, like it's supposed to)
In the enemy note tag I added:
<CustomStat: fst=3>
The damage formula of the skill used to attack that enemy is:
a.atk - b.def - (b.fst / a.srf)
And obviously the damage is shown to be 0.
However, that also is true if I just put in a.srf as the damage formula.
On the page regarding the plug-in Bobstah wrote "After setting a custom stat to an actor/enemy, you reference it in damage formulas or other code just like any other stat.", so it should work that way.
So, what is wrong here? Where did I mess up or is there a mistake in the scrip?
My own abilities concerning Java Script are close to not existence, so I really can't figure that our myself.
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...