Any ideas how to avoid a check if you want to use a comparisons (especially > or < )to drive line choices. For example if I have a variable X which periodically increases or decreases (and is unbounded) and I want a line to play only when X > 6, is there a way to do this while avoiding using a check (and thus avoiding paying the associated performance costs checks impose)?
Where X is unbound and only takes on a few discrete values (say 1, 2 or 3), it's easy enough to do
line:"[line*X*]"
line1:"blah"
line2:"blah, blah"
line3:"blah, blah"
or whatever. But if X is unbounded and can take on any value then this strategy will not work.
(My current work-around is to tightly constrain the possible values of X but this is limiting and requires greater precision in creating the dialogue).
Where X is unbound and only takes on a few discrete values (say 1, 2 or 3), it's easy enough to do
line:"[line*X*]"
line1:"blah"
line2:"blah, blah"
line3:"blah, blah"
or whatever. But if X is unbounded and can take on any value then this strategy will not work.
(My current work-around is to tightly constrain the possible values of X but this is limiting and requires greater precision in creating the dialogue).