Eli Choice Manager - Attach pictures, common events, switches, and change several choice settings!

Hey again, I downloaded 5.1.1 but I'm still having an issue with the delay. I have it set to 0 but there is still a delay there.
Hi there!

I can't seem to reproduce that error on my side. I remember that I manage it on the old version.
This error is also happening to you on the sample project?
If you go there, and update the sample project with the new plugin, it stills has a delay when test it?
Hi there!

I can't seem to reproduce that error on my side. I remember that I manage it on the old version.
This error is also happening to you on the sample project?
If you go there, and update the sample project with the new plugin, it stills has a delay when test it?
I checked your sample project and you're right, it seems to be working fine. It must be a compatibility issue with my plugins. When I set the delay to 999, it works as intended, but if it is set to 0 there is still always a small delay.
I checked your sample project and you're right, it seems to be working fine. It must be a compatibility issue with my plugins. When I set the delay to 999, it works as intended, but if it is set to 0 there is still always a small delay.
Can you try changing the plugin order? Or show a screenshot of your plugin manager?
Can you try changing the plugin order? Or show a screenshot of your plugin manager?
Screenshot (234).png
Screenshot (235).png
Screenshot (236).png

I've tried switching stuff around but haven't had any luck
@cokes1999 Gosh... are a lot of plugins.
My guess is that maybe some of these plugins can cause the compatibility issue:

Yep Message Core
Yep Ext Msg Pack 1 & 2
ChoiceAlign

So try disabling them and see if the plugin will work. If not, keep Eli Book where it is, and put the Choice Manager at the bottom of your plugin list.

Let's see if it will work. Otherwise, I will have to ask you give me a sample project replicating the error, so I can take a look at it and find the issue.
@cokes1999 Gosh... are a lot of plugins.
My guess is that maybe some of these plugins can cause the compatibility issue:

Yep Message Core
Yep Ext Msg Pack 1 & 2
ChoiceAlign

So try disabling them and see if the plugin will work. If not, keep Eli Book where it is, and put the Choice Manager at the bottom of your plugin list.

Let's see if it will work. Otherwise, I will have to ask you give me a sample project replicating the error, so I can take a look at it and find the issue.
It appears that Shiko_HorizontalChoices was causing the delay. However, for some reason getting rid of this plguin means that choicealign and your choice manager are no longer compatible.

When Shiko_HorizontalChoices, choicealign and eli choice manager are all on, the choice box is aligned... but with a delay

Oddly enough, when Shiko_HorizontalChoices is turned off but choicealign + eli choice manager are on, the delay is now gone but the choice box is no longer aligned (it's way off to the side)

When choicealign is the only one of these three that is on, there is no delay and the choice box is aligned, but obviously I need eli choice manager to be on.

I don't really need horizontal choices, so it's not a big deal to get rid of Shiko's plugin- but I need
to figure out how to have eli choice manager on while also having the choice box aligned to the
message box. I tried moving around the choicealign and eli choice manager around (after getting rid of shiko horizontal choices) but there was no order that had the box aligned.

I see in your project file that your choice box is aligned to the window. How did you achieve this?
It appears that Shiko_HorizontalChoices was causing the delay. However, for some reason getting rid of this plguin means that choicealign and your choice manager are no longer compatible.

When Shiko_HorizontalChoices, choicealign and eli choice manager are all on, the choice box is aligned... but with a delay

Oddly enough, when Shiko_HorizontalChoices is turned off but choicealign + eli choice manager are on, the delay is now gone but the choice box is no longer aligned (it's way off to the side)

When choicealign is the only one of these three that is on, there is no delay and the choice box is aligned, but obviously I need eli choice manager to be on.

I don't really need horizontal choices, so it's not a big deal to get rid of Shiko's plugin- but I need
to figure out how to have eli choice manager on while also having the choice box aligned to the
message box. I tried moving around the choicealign and eli choice manager around (after getting rid of shiko horizontal choices) but there was no order that had the box aligned.

I see in your project file that your choice box is aligned to the window. How did you achieve this?
Oh yes, so in your case, If you want to keep using my plugin, is best if you use my other plugins to complement.
  • ShikoHorizontalChoices - The Choice Manager already can do that if you set the number of columns to the same number of choices. If you have 6 choices, then put 6 columns. They will all be displayed horizontally.
  • ChoiceAlign - It can be achieved using the Eli Message Actions. Then you can either use escape codes to align the choices:
  • 1652130626692.png
  • or just the script call before the choice command is called:
  • 1652130465262.png
But, if when you say "align" you mean the whole window, and not just the text of the choices, you can do taking a look at this:
1652130745811.png

If you set the pos.inMessage = true the choice window will be positioned relative to the message window. So, to center on the message window, you will just need to set the alignX and alignY properties to "center".
Screenshot (261).png

I tried this above and below is the outcome. (not sure why it's aligned left when I put in right for pos.alignX and pos.alignY

Screenshot (262).png

What I'm actually looking for is what I had with the choice align plugin - which looks like this.

Screenshot (260).png


^ As you can see, it's aligned with the text box but above it.

I also just noticed another issue now... When I put a show choice command for Yes or No it allows me to scroll down for infinite Yes or No's until I get an error code on my playtest. Is this normal?

Screenshot (263).png

Edit: Forgot to hit the reply button @Eliaquim
@cokes1999
Screenshot (261).png

I tried this above and below is the outcome. (not sure why it's aligned left when I put in right for pos.alignX and pos.alignY
If you want to use "[4]", you need to keep all the script call:
pos.alignX = {1:"none", 2:"left", 3:"center", 4:"right"}[1]
So each number will represent an option.

Alternatively, you can just write the option you want:
pos.alignX = "right"

- that will happen if you set the pos.inMessage = true. The choice box will be relative to the message(inside the message window).

Screenshot (260).png


^ As you can see, it's aligned with the text box but above it.
Oh! Now I get what you really want. Unfortunately, it does not align that way. if you want it that way, you will need to calculate the position yourself. Luckily, is not hard to do, so I did it for you. Just copy and paste that into the script call:
Spoiler: Script call text
const pos = Eli.ChoiceManager.settings.position
const choice = SceneManager._scene._messageWindow._choiceWindow
const numberOfChoices = 2
pos.alignX = "right"
pos.alignY = "top"
pos.inMessage = true
pos.offsetY = -choice.fittingHeight(numberOfChoices)
1652135104366.png

What I'm doing is automatically putting the choice window position inside the message window, at the upper-right corner. Then I get the choice window height size with the function this.fittingHeight(lines) and replace the "lines" argument with the number of choices it has, which in this case is 2.
I get that value and set it as a negative offset Y.

So if you want to align to the left or to the center, you just need to get that script call and change the alignX to "left" or "center".
@cokes1999

If you want to use "[4]", you need to keep all the script call:
pos.alignX = {1:"none", 2:"left", 3:"center", 4:"right"}[1]
So each number will represent an option.

Alternatively, you can just write the option you want:
pos.alignX = "right"


- that will happen if you set the pos.inMessage = true. The choice box will be relative to the message(inside the message window).


Oh! Now I get what you really want. Unfortunately, it does not align that way. if you want it that way, you will need to calculate the position yourself. Luckily, is not hard to do, so I did it for you. Just copy and paste that into the script call:
Spoiler: Script call text
const pos = Eli.ChoiceManager.settings.position
const choice = SceneManager._scene._messageWindow._choiceWindow
const numberOfChoices = 2
pos.alignX = "right"
pos.alignY = "top"
pos.inMessage = true
pos.offsetY = -choice.fittingHeight(numberOfChoices)
View attachment 225681
What I'm doing is automatically putting the choice window position inside the message window, at the upper-right corner. Then I get the choice window height size with the function this.fittingHeight(lines) and replace the "lines" argument with the number of choices it has, which in this case is 2.
I get that value and set it as a negative offset Y.

So if you want to align to the left or to the center, you just need to get that script call and change the alignX to "left" or "center".
Thanks, it's in the correct position now with no delay. You really know your stuff.

Only 2 problems remain. The first one being major.

1. This is the major one. I only discovered this after disabling the two other problem plugins earlier. When putting a show choice command in my game I have infinite choices. For example, with Yes or No, what should happen is I only have two options, when I scroll down from No it should go back to Yes. What's happening with this plugin is I am able to infinitely scroll and see more Yes or No's (No being above Yes, back to Yes being above No) When I keep scrolling down for about 10 seconds I get a TypeError of Cannot read property 'switchID' of undefined. I included a screenshot of this error in the last reply. When Eli Choice Manager is off this does not occur.

2. Whenever a choice is selected the cursor goes back to the top choice for a second before the choice window disappears. It's not really that big of a deal, but it might look like you selected the wrong choice for a split second - I see that this isn't an issue in your project folder. This doesn't happen when Eli Choice Manager is turned off.

I can include a video of both if I am not explaining it properly.
Thanks, it's in the correct position now with no delay. You really know your stuff.

Only 2 problems remain. The first one being major.

1. This is the major one. I only discovered this after disabling the two other problem plugins earlier. When putting a show choice command in my game I have infinite choices. For example, with Yes or No, what should happen is I only have two options, when I scroll down from No it should go back to Yes. What's happening with this plugin is I am able to infinitely scroll and see more Yes or No's (No being above Yes, back to Yes being above No) When I keep scrolling down for about 10 seconds I get a TypeError of Cannot read property 'switchID' of undefined. I included a screenshot of this error in the last reply. When Eli Choice Manager is off this does not occur.

2. Whenever a choice is selected the cursor goes back to the top choice for a second before the choice window disappears. It's not really that big of a deal, but it might look like you selected the wrong choice for a split second - I see that this isn't an issue in your project folder. This doesn't happen when Eli Choice Manager is turned off.

I can include a video of both if I am not explaining it properly.
Hi again!
Glad we managed to adjust the position 🙂
Let's go find other solutions now!

I understand both issues 1 & 2, but unfortunately, I didn't manage to reproduce them here. So I believe that can be another compatibility problem.

So I have taken a look at your plugin list in your earlier post to try to find the possible one that can make this happen.
Since you already removed choiceAlign and Shiko_HorizontalChoices, the only ones I can see that can maybe be messing with it is:
  • Yep Message Core and the Message Core extensions.
  • Super Tools Engine
  • RS_ChoiceAlign
But it is just a guess... Try disabling them and see if the error persists. If yes, then you will have to make a boring test:
  1. Disable one plugin
  2. Test the game
  3. Does the problem persist?
  4. Repeat the process.
When the problem disappears, the last plugin you disabled is the one with the compatibility issue. Tell to me the name of the plugin(and a link if possible) so I can download it and take a look.
Hi again!
Glad we managed to adjust the position 🙂
Let's go find other solutions now!

I understand both issues 1 & 2, but unfortunately, I didn't manage to reproduce them here. So I believe that can be another compatibility problem.

So I have taken a look at your plugin list in your earlier post to try to find the possible one that can make this happen.
Since you already removed choiceAlign and Shiko_HorizontalChoices, the only ones I can see that can maybe be messing with it is:
  • Yep Message Core and the Message Core extensions.
  • Super Tools Engine
  • RS_ChoiceAlign
But it is just a guess... Try disabling them and see if the error persists. If yes, then you will have to make a boring test:
  1. Disable one plugin
  2. Test the game
  3. Does the problem persist?
  4. Repeat the process.
When the problem disappears, the last plugin you disabled is the one with the compatibility issue. Tell to me the name of the plugin(and a link if possible) so I can download it and take a look.
It appears that YEP ExtMsgPack 1 is causing the infinite choice issue and Ve_ArrowCursor is causing the top choice issue. They both work fine when Eli Choice Manager is disabled, so it appears to be a compatibility issue.
It appears that YEP ExtMsgPack 1 is causing the infinite choice issue and Ve_ArrowCursor is causing the top choice issue. They both work fine when Eli Choice Manager is disabled, so it appears to be a compatibility issue.
Ok then! I will take a look at it!

But before that, did you try to put only the Eli Choice Manager somewhere below that two plugins on your plugin manager to see if the problem is solved?
You can leave Eli Book in the same place.
Ok then! I will take a look at it!

But before that, did you try to put only the Eli Choice Manager somewhere below that two plugins on your plugin manager to see if the problem is solved?
You can leave Eli Book in the same place.
Good call, putting the Eli Choice Manager below ExtMesPack1 makes them compatible. As far as the arrow cursor plugin, no change.
Sorry I feel bad for constantly asking you questions but I have one more question about Horizontal Choices...

What I have here is a High Striker game where after you win, you get to select a prize from 6 choices.

Screenshot (264).png

This is what it looks like.

Screenshot (265).png


Now that I've removed Shiko's Horizontal Choices Plugin, I have to go up and down on my gamepad to select these prizes when I want to select them by moving left and right. How can I achieve this? I saw what you said about columns but I'm a little confused... I want to display them like this but move left and right to select.
@cokes1999 No need to be sorry! Keep asking anything you want ^^

So I will deal with the VE Cursor plugin compatibility!

About that:

1 - If you are using the Choice Manager Pro, you don't need to put that conditional branch with the script call on the first line.

2 - Since you have 5 pictures(5 choices), and you want them to be vertical, you need to have 5 columns too. this way, every choice will be side by side and you will be able to select them by pressing right or left. Because by default, the choice window has only 1 column. That is why every choice is created one below the other.

So, on the script block you put:
const initial = Eli.ChoiceManager.settings.initial
etc...

Add one more line with:
initial.cols = 5
@cokes1999 No need to be sorry! Keep asking anything you want ^^

So I will deal with the VE Cursor plugin compatibility!

About that:


1 - If you are using the Choice Manager Pro, you don't need to put that conditional branch with the script call on the first line.

2 - Since you have 5 pictures(5 choices), and you want them to be vertical, you need to have 5 columns too. this way, every choice will be side by side and you will be able to select them by pressing right or left. Because by default, the choice window has only 1 column. That is why every choice is created one below the other.

So, on the script block you put:
const initial = Eli.ChoiceManager.settings.initial
etc...

Add one more line with:
initial.cols = 5
Works perfect. Thanks 🙂
I have another question.

So I'm currently working on a balloon dart carnival mini-game. It's straightforward; you have six darts and two prizes among 30 balloons. I used four show choice commands which equal 30 different targets for the balloons. Anyways, I have two problems.

1. Is there any way to choose which choice you start at? When I start the mini-game, it always begins at the 25th balloon - a.k.a, the beginning of the last show choice command.

2. In my mini-game, you have up to 6 darts, so after selecting a balloon and it's the wrong one, you get to choose another one. After you choose, is there a way to stay in the same spot you just selected? Every time you choose, it goes back to the original balloon you start on. With 30 balloons, it's tedious to go through them again to find the one you are looking to hit.

I can include pictures but it's pretty long because of the switches and text. Basically what I did was show 30 pictures using the ChoicePic Plugin Command, then I did four show choice commands with 6 choices each.
I have another question.

So I'm currently working on a balloon dart carnival mini-game. It's straightforward; you have six darts and two prizes among 30 balloons. I used four show choice commands which equal 30 different targets for the balloons. Anyways, I have two problems.

1. Is there any way to choose which choice you start at? When I start the mini-game, it always begins at the 25th balloon - a.k.a, the beginning of the last show choice command.

2. In my mini-game, you have up to 6 darts, so after selecting a balloon and it's the wrong one, you get to choose another one. After you choose, is there a way to stay in the same spot you just selected? Every time you choose, it goes back to the original balloon you start on. With 30 balloons, it's tedious to go through them again to find the one you are looking to hit.

I can include pictures but it's pretty long because of the switches and text. Basically what I did was show 30 pictures using the ChoicePic Plugin Command, then I did four show choice commands with 6 choices each.
Hi there!

1 - Ys it is possible. When you create a choice list on the event command, you can see that is a option for you to choose the default choice:
1652479958237.png


The thing is, when you have more than one choice list, which is your case, the plugin will look for the last choice event command that does have a default choice set different than "none".

So let's say you have 12 choices and want the default choice to be the 7th.
The first choice event command needs to have the default setting set to "none"
The second choice event command needs to have the default choice set as "1".

Got it?

2 - Currently there is no way to do that by default. Will add it to the next update!
But maybe there is a workaround. First, you will need to set the variable ID that will hold the last choice index:
1652480447400.png

Then, right before the choice window event command, you use another script call:
JavaScript:
const index = $gameVariables.value(ID)
setTimeout(() => {
  if(index > -1){
    Eli.ChoiceManager.getChoiceWindow().select(index)
  }
}, 100)

Replace ID with the ID you set for the variable on the screenshot above.

This maybe will work! Here is an example:
1652481375505.png
Hi there!

1 - Ys it is possible. When you create a choice list on the event command, you can see that is a option for you to choose the default choice:
View attachment 226093

The thing is, when you have more than one choice list, which is your case, the plugin will look for the last choice event command that does have a default choice set different than "none".

So let's say you have 12 choices and want the default choice to be the 7th.
The first choice event command needs to have the default setting set to "none"
The second choice event command needs to have the default choice set as "1".

Got it?

2 - Currently there is no way to do that by default. I will add it to the next update!
But maybe there is a workaround. First, you will need to set the variable ID that will hold the last choice index:
View attachment 226094
Then, right before the choice window event command, you use another script call:
JavaScript:
const index = $gameVariables.value(ID)
setTimeout(() => {
  if(index > -1){
    Eli.ChoiceManager.getChoiceWindow().select(index)
  }
}, 100)

Replace ID with the ID you set for the variable on the screenshot above.

This maybe will work! Here is an example:
View attachment 226096
Both of these solutions worked! Thanks so much 🙂

One last thing. You have 30 balloons to select from, and initially, I wanted to have the selection be horizontal (side by side). Putting initial.cos = 30 does the trick for this. However, I realized that I would like the option to move around choices vertically and horizontally, as it is easier to get around the balloons. My issue is that each row has a different amount from the four rows of balloons that I have. Therefore, putting initial.cos = 8 or 7 does not work. Is there any way to set a number of columns for each choice command?

Original thread: https://forums.rpgmakerweb.com/threads/eli-choice-manager-attach-pictures-common-events-switches-and-change-several-choice-settings.143020/