Clearing choices

Hmm, doesn't seem to be as much activity here as I'd hope, but I'll keep plugging away. 🙂

Anyway, is there a way to clear away a list of options without having the player click on one? I want to have it so that there is an image map in the background and players can click on other things in the screen to get a little interaction when I present a menu of choices.

I suppose I could brute-force this by using the image map to do the choice options as well, but I'm just wondering if there's any way to clear away the choices within the system as it is now. I haven't seen it if there is, but I might just be missing something obvious.
If you use an image map, the game will proceed as normal unless you put an idle. Choices stop game progression though.
I'm not sure that really addresses my issue. (Unless I'm misunderstanding.) The thing I'm trying to do is list choices, but also have an image map in the background. When you click a hotspot, I'd like it to get rid of the choice options and jump to a new label, so then I can bring you back to the list of choices when it's done. At the moment that doesn't seem to work - the choices stay there and the next label doesn't work right. The choices don't work any more either.
I'm not sure that really addresses my issue. (Unless I'm misunderstanding.) The thing I'm trying to do is list choices, but also have an image map in the background. When you click a hotspot, I'd like it to get rid of the choice options and jump to a new label, so then I can bring you back to the list of choices when it's done. At the moment that doesn't seem to work - the choices stay there and the next label doesn't work right. The choices don't work any more either.

Action Game UI example uses an imagemap for the message box and choices work with it as normal. How are you handling imagemaps and choices at the same time?
I've got a "show image map" command, then three "add choice" commands and a "show choices" command. The image map works in the background for hover states on the hotspots (on the image map), but if I try to make clicking on those hotspots result in a "jump to label" it breaks, so I'm looking for a better way to do it.

The only way I can see is to not use "show choices" and "add choices" at all, and just use the image map for everything, but that makes it kind of hard to do conversation trees.

To be specific about why I'm trying to do this, I've got kind of an investigation story and I want the player to be able to examine things in the background (etc.) while considering choices, or to break with the sequence of the conversation sometimes.
Try making the imagemap a common event with parallel tied to it and see if it works. Show Choices in games don't progress the plot unless you pick a choice for good reason from a technical perspective.

If that doesn't work then I have a suggestion:

Don't let the choices show up unless the player is ready. Simply put, design the area as if it's an investigation room and let the player click on an option that says "I'm ready to proceed" or something. And if it's very necessary to break up the sequence, then add an option for the player to investigate further or to gather their thoughts as a choice.

It's why most games (that I played and know of including detective ones) usually put choices at the end when everything has been seen or the player decided to move forward with the next story beat.
Hi 🙂

Anyway, is there a way to clear away a list of options without having the player click on one? I want to have it so that there is an image map in the background and players can click on other things in the screen to get a little interaction when I present a menu of choices.

There is no command to clear the choices directly because it has not been designed for that purpose. But you can do that with a Script command:

Code:
GameManager.tempFields.choices = [];
SceneManager.scene.choiceWindow.dispose();

Tell me if that helps you out.
Kentou, the script solution worked well, thanks. 🙂 I've put it in a common event so I can reuse it later.

Archeia, I'll have to take a bit more of a look at common events to see what potential they have. I'm still green enough that I don't really know - I can see they would be useful shortcuts, at least.

The reason I don't want to force the player to encounter all the interactive stuff before the choice, though, is that I specifically want to have unexpected and semi-hidden interactions available in the game for observant players to find. I like the player to have the ability to interrupt the apparent linear paths of gameplay wherever possible, so they have a bit more ownership in what they're doing and they stay on their toes. 🙂

The image map now works and I can remove then bring back the choice boxes, but I do now seem to be getting an additional problem. I assumed it was somehow connected to my last problem, but now I don't know.

The choices just don't seem to be working any more. When I click on a button they don't seem to jump to jump to a label at all. They just clear out the choices and then do nothing. I will note that they worked before, even when I had an (unclickable) image map in the background and I don't think I changed all that much to break it. Now, even if I make the image map unlickable the choices don't work any more for some reason.

I'm attaching a couple of screenshots in case I'm doing something obviously dumb and easily fixable.

screen1.jpg
screen2.jpg
That is exactly why I didn't recommend it because it's a technical headache.

The reason I don't want to force the player to encounter all the interactive stuff before the choice, though, is that I specifically want to have unexpected and semi-hidden interactions available in the game for observant players to find. I like the player to have the ability to interrupt the apparent linear paths of gameplay wherever possible, so they have a bit more ownership in what they're doing and they stay on their toes

You misunderstood my suggestion. I meant to say always add a choice to investigate and then go back later so it won't be such a headache to resume to the plot from a technical perspective.
That is exactly why I didn't recommend it because it's a technical headache.
Well, yeah, but like I say the choices were working with an image map in the background before and they're not working now, so there's probably a solvable issue here.

You misunderstood my suggestion. I meant to say always add a choice to investigate and then go back later so it won't be such a headache to resume to the plot from a technical perspective.
That still seems like it would call attention to the fact there's stuff to look at, which is not really what I want to do. I figure if the image map only pops up in the back of choices (rather than a stream of messages) it's not so bad, although I'd actually really like to figure out a way to have hotspots showing up in the middle of messages too. 🙂 Maybe that would be fine for stuff that's supposed to interrupt the plot.
If you absolutely have to you'll have to organize your scene layout.

Basically you have to do the following:
1. Create Image Map.
2. Add a label BEFORE show choices. I call this reset.
3. In each imagemap labels, add a jump to label to reset.

This in turn will make show choices and imagemap commands to still work.
Here is how it looks like in action:


Here are my event commands (you can copy paste these lines of code directly to VNM's scene content editor.) Don't use press raw. Instead use Raw Paste Data at the very end of the page or manually highlight all the code.

Here are the image files attached
Spoiler
1.png 2.png
Great, thanks, that was exactly what I was after. 🙂 It makes a little more sense with my UI layout. The key was just having to move the labels around a little bit, as you spotted. I admit I'm not really clear on why it needs to be in that order, but I don't really need to know and I should be able to do it that way whenever I want to make a scene like that. Much appreciated!
Great, thanks, that was exactly what I was after. 🙂 It makes a little more sense with my UI layout. The key was just having to move the labels around a little bit, as you spotted. I admit I'm not really clear on why it needs to be in that order, but I don't really need to know and I should be able to do it that way whenever I want to make a scene like that. Much appreciated!

Try transforming your scene to a flow chart. It might make more sense over there 👋
I mean, I still feel like there's something a bit odd going on with this problem. I've got two examples of this approach and in the first one I have to put the reset label after the image map, but before adding the choices for it to work. This means you can't trigger the image map hotspots again after that first time, though. In the second instance I've got it set to reset before the image map is created and it works just fine. I'm not really sure how that works; I don't see what's different between the two instances but in on case it works fine and in the other there's an issue.

It's not a big drama right now because I can make do with the scenes as they're currently working, but I feel like something subtle is messed up somewhere and that's causing the inconsistency.
I mean, I still feel like there's something a bit odd going on with this problem. I've got two examples of this approach and in the first one I have to put the reset label after the image map, but before adding the choices for it to work. This means you can't trigger the image map hotspots again after that first time, though.

In the solution example that is how it's laid out and it works fine. Are you sure it's not just your event commands?

In your example event command image there is no jump label that loops you back. It's why it's recommend that you try to flowchart your commands to see where the hole in the logic is.
That part is not supposed to loop back. The problem wasn't missing a jump to label command - I've got the function working fine in one place and not in another. Actually, it's not the looping that seems to be the problem; it's the choices not working with the image map in one specific case.

The thing that I'm specifically finding is that it works if I have the reset label below the show image map command, but if I move it up above the show image map command then the choices break, even though I can't see why they would. This doesn't happen on the second instance I do it.

I've now found something that seems to fix that issue. I was previously using the default number for each image map. I've changed the difficult one to number "2" and all references to erasing it to 2 as well. I don't think there was another image map left over un-erased from earlier or anything, but this seems to help VNM understand what I'm trying to do.

Original thread: https://forums.rpgmakerweb.com/threads/clearing-choices.88240/