Forum rules - please read before posting.

How to add two variables?

I have two global variables A and B.
I need to add A plus B in Actionlist editor, but there is no such functionality.

I do not understand programming С#, so I can only use the Actionlist editor.
Please help!

Comments

  • this variables are integer

  • Use the Variable: Set Action, setting the Method to Formula.

    You can then use variable tokens to refer to Variables A and B by ID number, i.e.:

    [var:X] + [var:Y]
    

    Where "X" is the ID number of Variable A, and "Y" is the ID number of Variable B.

    For more on tokens, see the Manual's "Text tokens" chapter.

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.