Gabrepasta

Veteran
Veteran
Joined
Dec 1, 2013
Messages
35
Reaction score
0
First Language
German
Primarily Uses
RMMV
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,158
Reaction score
8,015
First Language
German
Primarily Uses
RMMV
several possibilities, and you don't give enough information to even guess which one.
1) Please give a screenshot of your plugin manager so that we can see which other plugins you have in which order.
2) Please open your projects rpg_core.js file with a text editor and tell us the version number at the end of the title line.
3) please give a screenshot of the skill where the damage formula didn't work
4) have you loaded a saved file or started a new game when testing the values? please test with a new game.
 

Gabrepasta

Veteran
Veteran
Joined
Dec 1, 2013
Messages
35
Reaction score
0
First Language
German
Primarily Uses
RMMV
several possibilities, and you don't give enough information to even guess which one.
1) Please give a screenshot of your plugin manager so that we can see which other plugins you have in which order.
2) Please open your projects rpg_core.js file with a text editor and tell us the version number at the end of the title line.
3) please give a screenshot of the skill where the damage formula didn't work
4) have you loaded a saved file or started a new game when testing the values? please test with a new game.


1) EIN = ON; AUS = OFF
Plug-in Manager.png

2) rpg_core.js v1.6.1

3) HP-Schaden = Health-Damage; Normal Attacke = normal attack
SchwungSkill.png

4) Yes, I have tested everything in a New Game, Battle Test and both variants once again in a project that only had the Custom Stats Plug-in active. Same results on every attempt.
 

Latest Threads

Latest Posts

Latest Profile Posts

I've just finished organizing music files from a music Humble Bundle I purchased a while ago (putting in specific themed playlists, deleting from playlists, deciding which games they'll be used for. etc.). I'm feeling pretty confident that the sound design for my games will be up to high standards. Sound design seems to be relatively under-discussed as a topic in game development imo.
So I just got back from SeaWorld and I'm back to working on my game. I'm stuck on Shadowstar, mainly due to needing two more princesses... I have all the canon and toy princesses, plus Sunset Shimmer just for kicks. I decided not to include Cadence since this isn't in that era. But... I'm going to have to design two OCs now.
I'm completely missing on this site :kaodes: How's everybody doing lately?
3dlm3XK.jpg
I'm looking at/working through a simple game tutorial. Town, dungeon, boss; town, dungeon, boss; etc. (Thanks, Yanfly!) I'm itching to make something complex but experience (and past disappointment!) tell me to go slow and learn.

Rome certainly wasn't built in a day. 〜( ̄▽ ̄〜)
SF_People1_2 added!
index.php

Forum statistics

Threads
109,187
Messages
1,042,843
Members
141,679
Latest member
loowa
Top