Clear separate choice options in an choice handler?

Posted: 11 Jun 2020 08:19
by LinkingPixels

(default ui) A command not to remove all the choice options in a certain choice handler but only one of the choices?

You have 2 seconds to pick the respond cat![skipInput]
@choice "Cats" goto:.PickedChoice
@choice "Dogs" goto:.PickedChoice
@wait 2
(Clear the @choice "Cat")


Re: Clear separate choice options in an choice handler?

Posted: 11 Jun 2020 09:54
by Elringus

Moved the topic to suggestions, as this is currently not possible out of the box.

Can you share a use case for this? Currently it feels a bit weird to remove one choice option.


Re: Clear separate choice options in an choice handler?

Posted: 11 Jun 2020 12:51
by LinkingPixels

An example from a game I'm making:

Questions

Main character: Hmm what should I talk about. . .o( )o[skipInput]

@choice "What made you study here?" goto:.Made
@choice "You come from Sweden right?" goto:.Sweden
@choice "What's your favorite season?" goto:.Season
@stop

Made

@set AskScore=AskScore+1
(TEXT)
@goto .Time if:"AskScore = 3"
@goto .Questions

Sweden

@set AskScore=AskScore+1
(TEXT)
@goto .Time if:"AskScore = 3"
@goto .Questions

Season

@set AskScore=AskScore+1
(TEXT)
@goto .Time if:"AskScore = 3"
@goto .Questions

Time

Friend: Oh, it's time to get back to the classroom.

After the player choosed three options the story progress. Would be nice if you can hide/clear the choice options one after one as the player choosed the questions :D


Re: Clear separate choice options in an choice handler?

Posted: 11 Jun 2020 13:40
by Elringus

Ah, for this you can actually use conditional execution, eg:

Code: Select all

@choice "What made you study here?" if:!Picked1 set:Picked1=true goto:.Made
@choice "You come from Sweden right?" if:!Picked2 set:Picked2=true goto:.Sweden
@choice "What's your favorite season?" if:!Picked3 set:Picked3=true goto:.Season

A command to remove a choice option from handler won't actually work in this situation (or rather it could work, but it'll be something clunky, like first you add the options and them remove them based on some condition).