ADRIFT Language Resource
From IFWiki
TODO: more work needed
The ADRIFT Language Resource, or ALR, is a text document with the extension .alr that can be imported into the ADRIFT Generator. When imported, it replaces any instances of specified text that shows up while running a game with different specified text. The formatting of each line of an ALR is as follows:
text to be replaced|replacement text
The two text fields are seperated by a vertical line, and each word/phrase to be replaced must occupy a seperate line in the ALR file.
The ALR can be used to override default responses. For example:
You see no such thing.|Either you can't see that, or it's not important.
will replace any "You see no such thing." (the default response) that appears in the Runner with "Either you can't see that, or it's not important."
The ALR can also be used for more advanced techniques, such as substituting text for variables to give more dynamic description to objects. For example:
#Fuel can (any line starting with # is treated as a comment) [FUEL=0]|empty [FUEL=1]|half full of some kind of liquid [FUEL=2]|full of some kind of liquid
Using a variable 'fuel-can' and an object 'the old fuel can', description of the object could be written as follows:
The battered old fuel can appears to be [FUEL=%fuel-can%].
So, examining the old fuel can with the variable fuel-can set to 1 would result in -
The battered old fuel can appears to be half full of some kind of liquid.
The ALR is a valuable resource for writing advanced descriptions that would be otherwise impossible.
