YEP_BuffStatesCore... what's wrong with this notetag?

● ARCHIVED · READ-ONLY
Started by kwanzaabot 10 posts View original ↗
  1. EDIT: no longer necessary
  2. I don't see anything wrong with your code necessarily. So this could be two (or more) possibilities.

    1.)
    Does the "Improvised Weapons" menu box actually work?
    If you increase Variable #4 in the variables menu (press F9 during playtest to open variables menu), does it show correctly in the menu?

    2.)
    Does the "Custom Apply Effect" actually run? You can check it with some crude debugging.
    Code:
    <Custom Apply Effect> 
    console.log('Variable 4 is' + $gameVariables.value(4));
    $gameVariables.setValue(4, $gameVariables.value(4) + 10);
    console.log('Variable 4 is' + $gameVariables.value(4));
    </Custom Apply Effect>
    When the state is applied to the actor, open the console by pressing F8 and look at the results.
  3. kwanzaabot said:
    <Custom Apply Effect>
    $gameVariables.setValue(4, $gameVariables.value(4) + 10);
    </Custom Apply Effect>

    Did you retype that, or did you copy/paste? If you retyped it, could you please grab a screenshot showing the tag in the editor? Just in case there's a typo in the tag that you didn't redo when you typed it manually into the forum.
  4. Aloe Guvner said:
    I don't see anything wrong with your code necessarily. So this could be two (or more) possibilities.

    1.)
    Does the "Improvised Weapons" menu box actually work?
    If you increase Variable #4 in the variables menu (press F9 during playtest to open variables menu), does it show correctly in the menu?

    2.)
    Does the "Custom Apply Effect" actually run? You can check it with some crude debugging.
    Code:
    <Custom Apply Effect>
    console.log('Variable 4 is' + $gameVariables.value(4));
    $gameVariables.setValue(4, $gameVariables.value(4) + 10);
    console.log('Variable 4 is' + $gameVariables.value(4));
    </Custom Apply Effect>
    When the state is applied to the actor, open the console by pressing F8 and look at the results.

    The improvised weapon box works. When I increase the value with an event, it increases, and it's shown in the menu. When I do it through this notetag, nothing.

    CWxzUbZ.png

    And here's my console.
    elMlcTF.png

    (And yes, Shaz, I copy-pasted the code direct from the game.)
  5. If you added those console.log commands to the note tag, and the state has been applied to your actor, before taking that screenshot of the console log, then it means the contents of the note are not even being executed.

    Are your Yanfly plugins all in order?
  6. Shaz said:
    If you added those console.log commands to the note tag, and the state has been applied to your actor, before taking that screenshot of the console log, then it means the contents of the note are not even being executed.

    Yeah, that's what I've been saying all along! It makes so sense.

    Are your Yanfly plugins all in order?

    I certainly hope so!

    6ye1Puf.png
  7. I think the <Custom Apply Effect> will not work if you add your state to your actor by using Auto Passive State. That should be the reason why your variable is not changed.
  8. JamesRyan said:
    I think the <Custom Apply Effect> will not work if you add your state to your actor by using Auto Passive State. That should be the reason why your variable is not changed.

    Ah, I was afraid of that.

    Can anyone suggest a plugin that might be better suited to my needs?
  9. UPDATE: I discovered Frogboy's Talent Core plugin, so this thread isn't really necessary anymore. Thanks to everyone who tried to help me out! :)
  10. kwanzaabot said:
    I certainly hope so!
    then you hope wrong - your plugin order is completely wrong.
    Yanfly's plugins have to be placed into exactly the order in which they're listed on his website.