Variables in Story Script


#1

Hi guys, I’m writing my first story and was wondering if I could create variables that don’t come from characters.
I wanted to create something like:

var popularity = 0

and increment/decrement based on what the user chooses or events that happen. I know you can do that with characters - e.g. CHARACTER_NAME -1.
I’ve searched the forums but haven’t been able to find anything about this.
Does anyone know how to do it or if it’s possible?

Thanks guys!

@Ryan @Liz


#2

Just create a character named POPULARITY and add points to that.


#3

I was thinking of that, but it’s a bit hacky in that I have to make the character speak in order to increment/decrement their score


#4

You don’t need to make them speak. Just use: @CHARACTER +#


#5

Thanks! Do I have to position the character off screen if I do that?


#6

Nope! :wink:


#7

Amazing, thanks Dara!