RMMZ Using script to call a Conditional Branch

Tentacurls

Villager
Member
Joined
Feb 26, 2014
Messages
19
Reaction score
3
First Language
English
Primarily Uses
RMMZ
The core reasoning for wanting to use script is to include more keyboard inputs than the limited selection the editor has. As someone with 0 programming knowledge, I took a look at the .js file for Common Events & tried to replicate that event via the script function.
Screenshot_1.png

Is it not possible to recreate the programming like that?
The "q" is already recorded to the q keystroke and have verified that the game does recognize it via Cae_KeyboardInputs's plugin.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
what you have there is no code, because the common events are json files, not js (javascript) files.
what your script attempt has is data structures without any command.

what you want can be done, it just requires an entirely different approach.
Best way would probably be to use the conditional branch script condition with a script command that checks the keyboard input itself.
 

Tentacurls

Villager
Member
Joined
Feb 26, 2014
Messages
19
Reaction score
3
First Language
English
Primarily Uses
RMMZ
Ahhh thank you very much! That makes sense.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top