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,417
Reaction score
4,479
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,418
Reaction score
669
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
70
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
70
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 Profile Posts

Working on Zelda-like tileset. Should be greatly refined. And tonight extra pave tiles, outward corners, abyss and water...
Is it possible to move posts from the in-progress project forum to completed games? I think I need to message a mod but a bit worried about bothering them
Bleeding Moons has its release date: September 3rd!
Do you stick with the RM default, or set a custom one?

Forum statistics

Threads
100,539
Messages
976,982
Members
132,081
Latest member
Kaezyelnatz
Top