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

Multiple properties stored in a variable

$
0
0
<<set $Woodensword to ["Wooden Sword",10]>>
Like an array, i know i can store more than one piece of information and i know printing this variable will in fact show "Wooden Sword 10". But i was wonder if could specifically call up the number part, like.
<<set $TestE to 25>> <<print $TestE>>
<<set $TestE to $TestE - $Woodensword>>
$TestE
and that would subtract the 10 from 25 but I don't think that is how it works. I toyed with object class variables in java script but I don't quite know how they work either.
Any suggestions would be great.

Viewing all articles
Browse latest Browse all 1844

Trending Articles