It looks like you're new here. If you want to get involved, click one of these buttons!
<<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>> $TestEand 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.
Comments
Figured it out, who knew the solution was so simple.
Since you posted this thread to the Help! with 2.0 category, I'm going to assume you're using some version of SugarCube, since it's the only story format available for Twine 2 with that syntax—though that still leaves its version unknown.
I'm going to assume you're asking about how to pick a random name for the firstname property. You may do so with the either() function: Or with the <Array>.random() function:
Yeah thanks that definitely answered my Question, and yeah I should be posting versions. (I did that for the first two threads I made and forgot on this one, my bad),