Skip to main content

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

RPG in a Box

Bring your stories and ideas to life! · By Justin Arnold

A question regarding arrays and Displaying Choices.

A topic by Start From Cero created Sep 19, 2022 Views: 308 Replies: 1
Viewing posts 1 to 2

I'm currently trying to set up a script for Displaying two Choices (Yes & No). I have the array set up, but getting it linked up to other scripts for displaying messages or other choices is proving difficult. I can get it working to some degree with one tree path with a direct link all the way through multiple scripts. However, when attempting to branch off, either by using Bauxite Code directly or Evaluate Condition, Assign Value, etc. it basically breaks the chain. The choices will show up on screen, the scripting is registered as working, but if you try to make a choice it will either only allow one or none to go through.

Any help with this will be a life saver. 

(+1)

Apologies for the issues! I will probably need to see the exact script in order to further troubleshoot it. Based on the scenario, though, it sounds like you may be able to just use a dialogue since you're wanting it to branch out. Dialogues also allow you to insert scripts into them, so if there's any special logic needed you can use a script node. It mostly depends on how much scripting vs. dialogue is involved, in regards to which method is best.