Hi, I'm able to increase a Popup's value using Variable:Set/Increase by Value, but am unable to decrease it when I input a negative number.
I tried this in an ActionList asset, then in a scene's Cutscene (both actionlists were otherwise empty). Tested on a component popup and global popup. Also tried setting through an Int Parameter of -1 instead of a directly input Statement.
I saw at the bottom of this thread that a decrease is the expected behavior
https://www.adventurecreator.org/forum/discussion/9522/how-to-obtain-this-type-of-menu
I would appreciate having a second pair of eyes on this, thanks. Using 1.74.5
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Thanks for the report - I'll attempt a recreation.
Could you share the exact values you're testing with - specifically, how many potential values the PopUp has, and how much you're decreasing it by?
Thanks - recreated.
I'll issue a more robust fix in the next release, but for now you should be able to remedy it by opening AC's ActionVarSet script and replacing:
with:
Can confirm this patch works for now. Thanks for being so responsive!