Forum rules - please read before posting.

Variable - Run Sequence - Integer value seems to start at -1

Hi Chris,

I've been using the power of the Variable>Run sequence action to solve a problem a few people have mentioned over the years. This allows me to reveal a hidden dialog option, ONLY after all the other dialog options have been exhausted by the player, by effectively counting how many times we send them back to the conversation option list.

This works fine in testing, but I'm confused as to why i seem to need one less (# of possible values) than i expected?

If i set the # of possible values to 2 - the FIRST **and ** SECOND run through this action both output on the option 0 wire.
The THIRD run through this action then outputs to the Option 1 wire?

I would have expected each run through this action to output on a sequential option number, thus needing 3 possible values not 2?

Perhaps I've misunderstood how this action works?
Any guidance would be appreciated.

Comments

  • I cannot reproduce such behaviour. Are you using the latest release?

    Can you share a screenshot of the ActionList involved, stripped down to the minimum needed for the issue to occur?

  • Thanks Chris, I'll sort a stripped down example this evening and repost.

  • edited December 2025

    Hi Chris, did it on my lunchbreak -
    My summary is, it's working fine, and I must have had a late night brain fart on the whole thing! Sorry!

    Now I've seen it with fresh eyes, with a stripped down version, this method works perfectly to exhaust all options, (removing the one they just selected).

    For other users wanting to understand this method, I'll quickly explain:(see image)

    The first pass through the green action increments by one, sending the user back to the remaning ONE option in the conversation. (i auto-disable when clicked the options as they are selected using the checkbox on the component, and have option 3 disabled at the start)

    The second pass through the green action increments by one, then reveals the hidden third option, before sending the user back a final time.

    I was getting confused with the flow i think.
    There's an image here, showing the setup:

    I do think a simple way to do this, without auto-disabling the options would be helpful, that just checks the user has selected all options, before revealing the hidden one.
    Maybe a check box on an option for (only show after all other options have been clicked) for example.

    As always thanks for the help, sorry about the brain fart! :)https://drive.google.com/file/d/1v7xsNVK7EIBkh4RMkiGGhibWem_55W4g/view?usp=sharing

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.