Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

math doesn't work in a datamap

$
0
0
I kept getting errors trying to do a simple <= and $var - $var.
the error message was it was expecting a string and wouldn't add them.

when i took the $var out of a datamap and made them unique independent variables the error went away.

wondering if anyone else encountered this issue?


code:
(set: $tick's battrack to $tick's roomtrack) and
(if: (30 <= ($tick's roomtrack - $tick's battrack)) is true)[true]
produces an error about booleans and strings

code:
(set: $roomtrack to 30)(set: $battrack to 0)
(if: (30 <= ($roomtrack - $battrack)) is true)[true]
produces [True]

Viewing all articles
Browse latest Browse all 1844

Trending Articles