Javascript in Note without plugin

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

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,035
Reaction score
13,672
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
31,238
Reaction score
7,617
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.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I made some sideview closets for MV!
You can find them in my MV resource thread.
People1.png & SF_People1.png added!!!!

Adventurer:
"Why your body looks like a bird?"

Stranger:
"Because I'm harpy"

Adventurer:
"Clap along if you feel like a room without a roof"

*Both dancing to Pharrell Williams song*
Stream will be live shortly with a make-up session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
105,507
Messages
1,014,272
Members
137,177
Latest member
tranphong
Top