Difference between revisions of "User functions"
From ADRIFT 5 Manual Wiki
(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...") |
m (typos) |
||
Line 1: | Line 1: | ||
− | [[File:IconWarning. | + | [[File:IconWarning.png]] 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. | 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. | ||
Line 15: | Line 15: | ||
− | <TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[General Functions|<<< General Functions]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Main Page]]</TD><TD ALIGN=CENTER>[[ | + | <TABLE ALIGN=CENTER BORDER=1 WIDTH="50%"><TD WIDTH="33%" ALIGN=CENTER>[[General Functions|<<< General Functions]]</TD><TD WIDTH="34%" ALIGN=CENTER>[[Main Page]]</TD><TD ALIGN=CENTER>[[Expressions|Expressions >>>]]</TD></TABLE> |
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 12:32, 23 June 2013
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 >>> |