RPG Maker MV - Cooking System - Minor Syntax Error

YellowIris

Villager
Member
Joined
May 17, 2014
Messages
7
Reaction score
0
First Language
French
Primarily Uses
RMMV
Hi Everyone!

I know the title of my question topic might sound very complicated, but I swear I have but only one question. 
(Bear with me as English is not my first language so explaining it could be a little weird for me.)

I'm trying to make a solid cooking system for my game (which is going pretty well thus far.) I've actually made some pretty
well accomplished one's in the past of VX ACE. Anyway!

My whole question here is, I can't seem to figure out what's happened with the whole: input.trigger? :)RIGHT) script call.
What I mean by this, is that previously on Ace when a script call was done in a conditional branch, you could type in the above script call in order to show cursor movement from right to left. 

(I was using graphics in order to make this work) A graphics menu that basically would show the idea of a highlighted cursor moving right or left, based on the conditional branch. 

My problem now though is, I know that the syntax for MV is different, so it causes an error because input.trigger? :)key) is not the right command anymore. Would anyone know what the correct command is now?

Also let me know if this makes sense! :)  
!
Thanks for reading, and helping out! I appreciate it
 
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,666
First Language
German
Primarily Uses
RMMV
I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.
 

Sarkilas

Villager
Member
Joined
Jun 8, 2014
Messages
16
Reaction score
7
First Language
Norwegian
The equivalents are:

if(Input.isTriggered('right')){ } // equal to Input.trigger?() in Aceif(Input.isPressed('right')){ } // equal to Input.pressed?() in AceThe key strings that are available are mapped within Input.keyMapper in the file rpg_core.js

This mapper is meant to allow you to expand available keys.
 

YellowIris

Villager
Member
Joined
May 17, 2014
Messages
7
Reaction score
0
First Language
French
Primarily Uses
RMMV
The equivalents are:

if(Input.isTriggered('right')){ } // equal to Input.trigger?() in Aceif(Input.isPressed('right')){ } // equal to Input.pressed?() in AceThe key strings that are available are mapped within Input.keyMapper in the file rpg_core.js

This mapper is meant to allow you to expand available keys.
Awesome! Thank you, I was so close, but I actually made a minor alphabetical mistake. 

Thanks again :D . Super helpful.
 

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,847
Messages
1,016,968
Members
137,561
Latest member
JaCrispy85
Top