On hover over choice - activate switch

sammc

Villager
Member
Joined
Apr 30, 2013
Messages
28
Reaction score
2
Primarily Uses
Hi,
I am currently using Galv Choice Pictures but I need a bit more functionality I'm not finding anywhere. Any suggestions on how to make a switch activate when you hover over each choice? Maybe a script call?

1. Choice A - Switch 123 activates
2. Choice B - Switch 456 activates
3 Choice C - Switch 789 activates

Thank you!
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,430
Reaction score
4,486
First Language
English
Primarily Uses
RMMV

I've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,419
Reaction score
673
First Language
Portuguese - Br
Primarily Uses
RMMV
Hi!
You can try to use a script call to access the index of each choice in a parallel event.
SceneManager._scene._messageWindow._choiceWindow._index
This should give you the index of the currently highlighted choice.
So you use a condition, if index === 1 activate switch X.

OBS: I do not sure if this is the right script call to get the index, I'm not on computer right now. Maybe it has some typo on it, I have to check tomorrow.

NOTE2: Also, I don't remember if choice1 = index1
Or choice1 = index0

You can try these in the console if you know how to use it ^^
 

Lanzy

Veteran
Veteran
Joined
Feb 29, 2020
Messages
72
Reaction score
22
First Language
English
Primarily Uses
RMMV
Choice 1 is definetly index = 0.
I checked the call script, it works, no typos :)
 

sammc

Villager
Member
Joined
Apr 30, 2013
Messages
28
Reaction score
2
Primarily Uses
I'm not sure how to use this info.
 

Lanzy

Veteran
Veteran
Joined
Feb 29, 2020
Messages
72
Reaction score
22
First Language
English
Primarily Uses
RMMV
I'm not sure how to use this info.
If you want to activate a switch under the condition of the choice window, then it should look something like this.

If this still doesn't help, then I need to see some screenshots of your choice window and the script behind it.
 

Attachments

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

Latest Threads

Latest Posts

Latest Profile Posts

I didn't think I'd spend the evening jamming out to the battle theme of a Hole Punch.
Welcome back to the dark era, where everything is in dark mode!
.
.
.
I'm not complaining! :o
Currently without internet due to storm damage and most of our state is devastated. No idea how long I'll be unable to log onto here, but I'll answer questions as soon as I can.
This is supposed to be pso2 photon blast inspired animation
I'm sure this question's been asked before, but I can't find an answer: is there any way to run the Steam version of RPGMaker *without* being logged into Steam? It's a frustrating extra step sometimes.

Forum statistics

Threads
100,716
Messages
978,723
Members
132,336
Latest member
shorp_
Top