This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:define [2021/01/14 22:13] – Sanian | 4rpl:commands:define [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== Description ===== | ===== Description ===== | ||
- | Input variables must start with a $ sign and be placed | + | Input variables must start with a $ sign and be placed |
- | Input variables | + | Input variables |
- | === Examples === | + | Input variables are created at the same time as the unit itself (even if the game is paused and the script hasn't executed once) and assigned either the default value **VAL** (which may be overwritten if the initParams of a CreateUnit call specify it), or a value specified in the editor through the Script Settings. |
+ | |||
+ | |||
+ | ===== Examples | ||
<code 4rpl> | <code 4rpl> | ||
+ | # input vars go at the top of a script, before the actual code | ||
$amt: | $amt: | ||
$text:" | $text:" |