User functions
From ADRIFT 5 Manual Wiki
User Defined Functions are not currently available, but this is a feature coming to ADRIFT soon.
These are functions which you create yourself using a task. References used in the task become parameters in the function call, and its completion message or restriction text is returned as the result of the function.
As well as providing a way to perform complex formatting, and even run actions, in the middle of a block of text, user functions will in future be used to provide many of the messages which are currently output directly by the ADRIFT runner. This will not only allow you to change messages in ways that can't be done with a simple text override, it will allow ADRIFT games to be written in other languages.
Contents
Creating a User Function with a Task
Using a user function in an expression
Using a user function in text
Re-writing ADRIFT messages in a different language
<<< General Functions | Main Page | Expressions >>> |