Clear separate choice options in an choice handler?

Have an idea how we can improve the engine or this forum? Share it here!
Post Reply
LinkingPixels
Posts: 12
Joined: 19 May 2020 08:48

Clear separate choice options in an choice handler?

Post 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")

Elringus
admin
Posts: 525
Joined: 11 May 2020 18:03

Re: Clear separate choice options in an choice handler?

Post 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.

LinkingPixels
Posts: 12
Joined: 19 May 2020 08:48

Re: Clear separate choice options in an choice handler?

Post 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

Elringus
admin
Posts: 525
Joined: 11 May 2020 18:03

Re: Clear separate choice options in an choice handler?

Post 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).

Post Reply