How do variable attributes work?

I'm not sure if that's even the right question to ask. I'm very new to this. Basically, what I'm trying to make is the statement


@set x = 1
{if x=1:a}{if y=1:{@inc x}}{if x=2:b}

@set y = 1
{if y=1:c}{if x=1:{@inc y}}{if y=2:d}

Is something like possible? Can I adjust the value of an attribute based on whether or not the reader clicked a prior link?

You could use the seen command (if you are only doing this section once per game). It would work like this. I put some math-y things in there so you can run formulas.


@set x=1
@set y=1




{if seen second_passage:{@x=2}}



{if seen first_passage:{@y=2}}


Is this what you're looking for?

This topic is now closed. Topics are closed after 60 days of inactivity.