For some reason, I cannot for the life of me get link variables to set consistently. I'm sure it's just some little thing I'm doing wrong.
I can get it to work on a blank project, but even when I copy and paste, I cannot get the exact same code to work in my real game.
Here's the code. I copy and pasted it into my game and changed value to 10.
[[link text|passage name][$var = 10]]
In Testing.tws works. The macro <<print $var>> prints 10. I copy and pasted the code into my Abaddon game without making any changes and it prints 0.
Attached are the two files.
It's frustrating, but I know it's just some little glitch in what I'm doing.
Thanks for helping me out!
Comments
EDIT: I also tried starting a new story in 1.4 and copying all the passages over to it to no avail.
EDIT x2: So, as further testing, I tried my Testing.tws and everything worked with the link variables as expected. Then, I copy and pasted all my passages from Abaddon, rebuilt, played and it no longer worked . . . What the heck?! XD Same passage (Start) with no changes, none of the Abaddon passages were even accessible. They were just tacked in there.
I tried [[Test][$foo = 10 $goo = 20]] and [[Test][$foo = 10][$goo = 20]] and [[Test][$foo = 10 and $goo = 20]], but none of those worked.
L! I love you man! Thanks so very much!
I wrote the module from scratch since I'm such a cool expert coder. Well, HarmlessTrouble helped a wee little amount on the Google Group.
Thanks again!
*Big hairy bearded man smooches*