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

kwanzaabot

Veteran
Veteran
Joined
Apr 6, 2012
Messages
72
Reaction score
14
First Language
English
Primarily Uses
EDIT: no longer necessary
 
Last edited:

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
<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.
 

kwanzaabot

Veteran
Veteran
Joined
Apr 6, 2012
Messages
72
Reaction score
14
First Language
English
Primarily Uses
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.



And here's my console.


(And yes, Shaz, I copy-pasted the code direct from the game.)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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?
 

kwanzaabot

Veteran
Veteran
Joined
Apr 6, 2012
Messages
72
Reaction score
14
First Language
English
Primarily Uses
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!

 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
696
Reaction score
215
First Language
Vietnamese
Primarily Uses
RMMV
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.
 

kwanzaabot

Veteran
Veteran
Joined
Apr 6, 2012
Messages
72
Reaction score
14
First Language
English
Primarily Uses
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?
 

kwanzaabot

Veteran
Veteran
Joined
Apr 6, 2012
Messages
72
Reaction score
14
First Language
English
Primarily Uses
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! :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top