Antera

Villager
Member
Joined
Jan 15, 2017
Messages
38
Reaction score
5
First Language
EN & FR
Primarily Uses
What do I miss ? I'm looking for the right syntax to use simple javascript in note for one hour and I find only how to make plugins ...

I tried quotes, <$gameVar...> etc.

Many thanks !!!!

rrrrrrrrr.png
 

Sarlecc

Veteran
Veteran
Joined
Sep 16, 2012
Messages
453
Reaction score
211
First Language
English
Primarily Uses
RMMV
If there are no plugins using a note box then the note box does nothing.
Instead you can use the script box command under advanced inside an event to run simple javascript.
 

Antera

Villager
Member
Joined
Jan 15, 2017
Messages
38
Reaction score
5
First Language
EN & FR
Primarily Uses
If there are no plugins using a note box then the note box does nothing.
Instead you can use the script box command under advanced inside an event to run simple javascript.
Yeah thanks, this calls an event already, and I need to set up a variable in this note box before calling the event

is there anything like :

<code>
$gameVariables.setValue(20,7);
</code>
or

<script: $gameVariables.setValue(20,7);>

??
 

Sarlecc

Veteran
Veteran
Joined
Sep 16, 2012
Messages
453
Reaction score
211
First Language
English
Primarily Uses
RMMV
Few questions that can help:
1. Under which tab is this particular note box?
2. Are you using this an item or skill to call a common event? If you are and you are using a constant value for the variable each time you call the common event, why not just change the value at the start of the event?
 
Last edited:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,102
Reaction score
15,523
First Language
English
Primarily Uses
RMMV
As already said, no.

Note boxes are note boxes - they're for making notes in the database. They do nothing. They are for your own reference purposes only.

The thing that makes them do stuff in the game is that plugins MAKE them do stuff. If you want to be able to put that code into a note box and have it executed, then you have to have a plugin that will make it happen.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,277
Reaction score
8,729
First Language
German
Primarily Uses
RMMV
@Antera if you only want to set data in the notebox, then search the help for the meta function, that is the default way for reading notetags.You need a script box in the common event to read data from the notebox however.

However, NOTHING in default can process data in the notebox. If you want to execute eval functions on anything in the notebox, then you need a plugin for executing that eval, it cannot be done by default engine.
 

Latest Threads

Latest Posts

Latest Profile Posts

Climbing to the top #mapping
1638160732198.png
I've started the first steps of the final few maps that I need to make for B:ms. I haven't been able to say that in a really, really long time. It'd probably be a good idea to blog about this or something.
Question for the Mods: What am I supposed to do when I can't make a synopsis 350 words long? (for project recruitment thread) @Shaz @mlogan
The game is meant to be more on the simple side in order to be achievable so I'm a bit stuck...
Had a nice visit with our family. Dad grilled some burgers and mom made baked beans and fudge. We also watched Foul Play. Chevy Chase and Goldie Hawn make an awesome duo. I am surprised how much of the movie I forgot LOL. How did everyone else's holidays go?

Forum statistics

Threads
117,041
Messages
1,104,048
Members
152,976
Latest member
BeastBanks
Top