ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

ALR and variables

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Postby phkb » Sat May 15, 2010 4:22 am

When using variable references in ALR replacement text, the variables are not being replaced. For instance, create a task, command "do something", which outputs "[this is a test]". Create an integer variable called "var1", set its value to 1.
Create an ALR for "[this is a test]" and replace it with "[sample output %var1%]"
Create another ALR replacement for "[sample output 1]" and replace it with "Final output 1"
When this is run, I get the following:

>do something
[sample output %var1%]


In v4 the variable would be replaced and the result would be "Final output 1"
My IF-related stuff can be found here
User avatar
phkb
 
Posts: 376
Joined: Thu Jan 06, 2005 3:27 am
Location: Sydney, Australia

Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 4 guests