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,134
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,495
Reaction score
14,823
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.

CWxzUbZ.png


And here's my console.
elMlcTF.png


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

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,495
Reaction score
14,823
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!

6ye1Puf.png
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
704
Reaction score
224
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
32,888
Reaction score
8,240
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.
 

Latest Threads

Latest Profile Posts

Stop shutting the damn power down! Why always like this
Working on a slightly experimental horror game. It will be finished in approximately 88888888888 years.
Y'all will enjoy it though, I put lots of effort into making it stand out.

It's called Red Light and it's inspired by another obscure RPG Maker horror game, but I don't want to give too much away just yet.
Ohh man, Weapon animations plugin feels so mandatory. Seeing that same image regardless of the icon of the weapon....ugh :p
Ok so......Maaaaybe I've taken a ''little'' bit of inspiration from FF9 when it comes to battle hud xD

ff9.PNG

Just maybe....

Forum statistics

Threads
112,356
Messages
1,067,715
Members
146,004
Latest member
Faxify
Top