ADRIFT Language Resource

From IFWiki

This article is a stub. You can help IFWiki by expanding it.
TODO: more work needed

The ADRIFT Language Resource is called ALR.

The ALR can be used to add a little more information to an object. For example, if you had an old fuel can you could use the ALR to indicate whether the can is full, empty or half full.

First open a text editor and type the following -

#Fuel can (any line starting with # is treated as a comment)
fuel0|empty
fuel1|half full of some kind of liquid
fuel2|full of some kind of liquid

Save the file as any name ending in .alr e.g. basic.alr

Now in the Adrift generator select File then select Import, a list should appear. Select Language Resource and the file basic.alr (or whatever you called it) and then select Open. It is now a good idea to save your adventure.

Create a variable called fuel-can which will be set to 0, 1 or 2.

Create an object called old fuel can and give it a description of -

The battered old fuel can appears fuel%fuel-can%.

So, examining the 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.