Can I do this simpler/cleaner/more efficiently.-Waiting for a question answer before script continues

This one is sorta a logic question rather than true code..

When a choice that could lead to a bad end in the game happens normally a players stats will be compared against a wide array of outcomes, that's all good and fine, but some of the bad ends are harder to get than others and would like to give a curious player a chance to see them.

So I’d like to essentially give the player a chance to willingly fail

Wrote a very simple function that gives each stat a negative Int and set it to fire after a yes or no question about giving up. Makes it much simpler to add to every scene than thirty or forty lines of code

I’d like the normal scene script to run after just using the possibly modified stats, but when using the script naturally it just goes on while waiting for a response to the “Ask” question, I tried also using Menu with the cannot be ignored option selected.)

I’ve solved this by adding a Wait(for keypress) right after the yes or no question, but it feels cumbersome for the player,

Is there some way to force a menu/question answer in mid script without using the wait for keypress option?


Oh, some of this looks familiar, essentially I have the modify stats part as a function but didn't think to make a second to lead into it to escape the menu problem.

is the "def" in the code designed to create a function on the fly? normally I just manually create functions before hand, have never done it in code, also Pass i can't find documented here.

I'll take a look at this and get my head around things.. thank you very much for your assistance


is the "def" in the code designed to create a function on the fly? normally I just manually create functions before hand, have never done it in code, also Pass i can't find documented here.

This isn't Quest code. It looks like Python; though I'm not sure why Nicole chose to respond in a different language.

Although the post seems to contain invisible links to completely unrelated sites; so I guess Nicole is probably just a spambot, reposting somebody's response to a similar question on a forum for a different engine.


I thought something like that might be the case, but never thought this place was big enough to attract spambots.. I shall improve my vigilance in the future


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums