Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

SugarCube 2.18 Problem with temp variables and for

SugarCube 2.18 Twine 2.1.3
I am making things like this:
$$time =
<<for _time = 0; _time <= $MAX_TIME; _time++>>
	<<if _time != $time>>
	[[_time->Debug][$time = _time]]
for testing game. And problem is in _time->Debug][$time = _time. How you can see $time = _time, but instead of numbers there are undefined in $time. I understand why, but I need numbers. If _time = 1 then _time->Debug][$time = 1. How I can convert variable in constant? I tried $time = "_time" and $time = `_time` but it doesn't work.
Thank you.


Sign In or Register to comment.