SpiritLouis

Villager
Member
Joined
Jan 2, 2022
Messages
17
Reaction score
4
First Language
english
Primarily Uses
RMMZ
I downloaded the plugin here.

Does someone know if it's possibile to distinguish which picture is clicked during an event? I mean, given this..

1675721545197.png

Picture 1 and 2 are linked to the same common Event with ID=1. When The common event runs, it has no idea of which picture gets clicked, and executes fully.

I'd like something like
"if picture 1 gets clicked do this"
"if picture 2 gets clicked do that"

Do i absolutely need to write a different event for each picture? could become very nasty if the choices are a lot...

And/or do i need javascript? I have no idea of how to use it unfortunately

Thank you.
 

JohnDoeNews

AFK TTYL
Regular
Joined
Apr 25, 2017
Messages
2,264
Reaction score
1,781
First Language
Dutch
Primarily Uses
RMMV
Well... I see both pictures trigger common event 1...

What if picture 1 triggers common event 1 and picture 2 triggers common event 2?

If that common event is a large event, and the pictures only make it run slightly different, you can do this:

picture 1 triggers common event 1
picture 2 triggers common event 2

Common event 1 set var X to 1
then runs common event 3

Common event 2 set var X to 2
then runs common event 3

Now event 3 is the main common event, and you can use a condition "var X = 1 or else" to see if it is picture 1 or picture two that is clicked.

Hope that solved your problem.
 

SpiritLouis

Villager
Member
Joined
Jan 2, 2022
Messages
17
Reaction score
4
First Language
english
Primarily Uses
RMMZ
Well... I see both pictures trigger common event 1...

What if picture 1 triggers common event 1 and picture 2 triggers common event 2?
Thank you for your reply, but No. As i said, I would be forced to write N common events, one for every choice. And they're gonna be something like 100+. I would like to write all in the same common event, if possible.

Also... If i may say.. what would be the need of common event 3? If i am in common event 1, i perfectly know picture 1 is clicked, and i could do what i need to do
 

GmOcean

Regular
Regular
Joined
Nov 29, 2020
Messages
195
Reaction score
161
First Language
English
Primarily Uses
RMMZ
Perhaps their Picture Choices plugin would better fit your needs. It unfortunately requires you to give the player a 'choice window' type thing, but you can visually display it as pictures. Other than that it acts like a normal choice window. Meaning you can assign a value to the same variable, and then use the event command to call a common event. Then they'll all use the same common event, same variable, etc...
 

SpiritLouis

Villager
Member
Joined
Jan 2, 2022
Messages
17
Reaction score
4
First Language
english
Primarily Uses
RMMZ
Perhaps their Picture Choices plugin would better fit your needs. It unfortunately requires you to give the player a 'choice window' type thing, but you can visually display it as pictures. Other than that it acts like a normal choice window. Meaning you can assign a value to the same variable, and then use the event command to call a common event. Then they'll all use the same common event, same variable, etc...

In the end it's what i wanted to do, a choice system menu. Yes, seems better and.. poor me, i have to pay it again. Thank you for showing it to me.

By the way.. there's no way to make more than 6 choices in mz, am i right?
 

GmOcean

Regular
Regular
Joined
Nov 29, 2020
Messages
195
Reaction score
161
First Language
English
Primarily Uses
RMMZ
There is. I believe with VisuStella, if you put 1 Choice Command in the event menu, followed immediately by another Choice Command, it'll extend it. Extended Choices.
It is part of their Message Core plugin, so this one is free.
 

JohnDoeNews

AFK TTYL
Regular
Joined
Apr 25, 2017
Messages
2,264
Reaction score
1,781
First Language
Dutch
Primarily Uses
RMMV
Thank you for your reply, but No. As i said, I would be forced to write N common events, one for every choice. And they're gonna be something like 100+. I would like to write all in the same common event, if possible.
You're gonna have 100+ pictures on the screen at once? Oh... Well, good luck with that. :p

Also... If i may say.. what would be the need of common event 3? If i am in common event 1, i perfectly know picture 1 is clicked, and i could do what i need to do
Common event 1 and 2 would only be used to identify the picture clicked. The whole event would run in common event 3.
 

Latest Threads

Latest Posts

Latest Profile Posts

Time for the next chance for y'all to affect my advent calendar! Where should Day 7's sprite come from: land, sea, or demon realm? :rwink:
Throné's final boss is weird. He is a guy holding a baby while fighting off attackers. I think his name was Santos. I might be thinking of someone else.
I think I've just about finished fighting the fight with the tileset I was most intimidated by for game jam. No pictures yet, the map isn't presentable, but I think the tileset will work! I'm very relieved XD
Twitch! At it again with more gamedev for a couple hours, followed by some Valheim with my friend. Feel free to drop by~
these 80+ gb updates on several years old games are the absolute worst. I just want to play for an hour or so before bed to unwind. Sorry, gotta spend that time downloading an update. Then my mods will be broken so I'll have to start over or wait for those to be updated to. Is a complete game within three years of the pay to be a beta tester period really to much to ask?

Forum statistics

Threads
136,781
Messages
1,269,868
Members
180,522
Latest member
Reniawan
Top