Bobstah's custom stats not working for damage formula

Discussion in 'Javascript/Plugin Support' started by Gabrepasta, Dec 3, 2018.

  1. Gabrepasta

    Gabrepasta Veteran Veteran

    Messages:
    30
    Likes Received:
    0
    Location:
    Germany
    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.
     
    #1
  2. Andar

    Andar Veteran Veteran

    Messages:
    28,439
    Likes Received:
    6,488
    Location:
    Germany
    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.
     
    #2
  3. Gabrepasta

    Gabrepasta Veteran Veteran

    Messages:
    30
    Likes Received:
    0
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV

    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.
     
    #3
  4. Gabrepasta

    Gabrepasta Veteran Veteran

    Messages:
    30
    Likes Received:
    0
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Bump
     
    #4
  5. Gabrepasta

    Gabrepasta Veteran Veteran

    Messages:
    30
    Likes Received:
    0
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Bump
     
    #5

Share This Page