User functions

From ADRIFT 5 Manual Wiki
Revision as of 12:30, 23 June 2013 by Saabie (Talk | contribs) (Created page with "File:IconWarning.jpg 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 t...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

File:IconWarning.jpg 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.

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 FunctionsMain PageUser Functions >>>