Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

If Statements Breaking Choice Dialog Box

A topic by riggy2k3 created 41 days ago Views: 41 Replies: 6
Viewing posts 1 to 3

Hey Hakuen Studio!

This is an incredibly robust plugin, so thanks for your work on it. It works great, except for one scenario I'm dealing with.

So I have a Common Event for reading book items that reads like this... :

  • If Variable = 1,
    { Text: TITLE OF BOOK }
  • If Variable = 2
    { Text: TITLE OF BOOK }
  • Plugin Command: EliMZ_ChoiceManager, Setup By Template
    Template Id = reading
  • Show Choices: Read Book, Don't Read

As of now, the textbox displays the title before closing to a new textbox with just the choices showing up. Is there a way to connect the Text to the Choices through the If statements?

Thanks for your help!

Developer

Hi there!

Can you show me the screenshot of the event? It is better to see the event this way. So I can have a better idea on how to advise you.

(2 edits)

Sure! Here's what it looks like: 


The goal is to have the entire message show up together but it unfortunately seperates them. It works fine without the alignment.

Developer

The Show Text command must be right before the Show Choices so, the Choices can be shown together with the text. On this case, the show text must be between the Comment command and the Show Choices

Unfortunately that didn't work. Here's what I'm doing now:

Developer(+1)

Yeah, this will not work. The show text is still not right before the show choices. It need to be something like that:

Even without my plugin, you need to do that to keep the message window and the choice window opened simultaneously. You can put the plugin command somewhere above those two.

The thing here is, that instead of using the show text command inside the "if book being read = 12" statements, you can apply that text to a variable, and then show that variable on the show text command:

Ah, that makes sense to me! I'm not too keen on scripting.

I'll give it a shot and report back. Thanks a ton for the suggestion and the help!