Forum rules - please read before posting.

Variable > Set doesnt work as intended for local variables?

edited February 5 in Technical Q&A

Hi all. I've encountered a strange behavior when working with local AC variables. Setting a local variable inside a cutscene sets my first Global variable to 0. Local variable "Dialogue012" is being used to choose random responses by the player. A hotspot interation runs a cutscene that uses

Variable > Set,
Source: Local,
Variable: Dialogue012,
New Value is: Entered Here,
Method: Set As Random,
Statement: = 0 to 2,
after running Continue.

Then I use a few Variable > Check actions to determine which line to play.

What ends up happening is my Global variable for TimeOfDay (index 0) gets set to zero on the first action and sets the scene to night.
Is this a known issue? It would seem that local AC variables cannot be set in action lists or cutscenes with this type of defect?

Comments

  • edited February 6

    Is this to say that removing the Variable: Set Action causes the Global variable's value to remain constant?

    There should be no such indirect link between variable. What's your AC version, and what are the properties of the Global Varaible? I cannot reproduce such behaviour.

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.