Difference between revisions of "Template:Callback"
From GRFSpecs
Jump to navigationJump to search (no parser extention, so live without for now) |
(shuffle examples) |
||
| Line 17: | Line 17: | ||
<noinclude> |
<noinclude> |
||
==Usage== |
==Usage== |
||
| − | ===Example 1 |
+ | ===Example 1=== |
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| + | |||
| ⚫ | |||
<pre> |
<pre> |
||
{{Callback |
{{Callback |
||
|features=houses (1B), industy tiles (25) |
|features=houses (1B), industy tiles (25) |
||
|result= |
|result= |
||
| + | Format: <tt>SSAA</tt> |
||
| − | SSAA |
||
| − | *SS: sound effect |
+ | *<tt>SS</tt>: sound effect |
| − | *AA: animation stage |
+ | *<tt>AA</tt>: animation stage |
|failure=stay in current frame |
|failure=stay in current frame |
||
|other= |
|other= |
||
| Line 36: | Line 52: | ||
|features=houses (1B), industy tiles (25) |
|features=houses (1B), industy tiles (25) |
||
|result= |
|result= |
||
| + | Format: <tt>SSAA</tt> |
||
| − | SSAA |
||
| − | *SS: sound effect |
+ | *<tt>SS</tt>: sound effect |
| − | *AA: animation stage |
+ | *<tt>AA</tt>: animation stage |
|failure=stay in current frame |
|failure=stay in current frame |
||
|other= |
|other= |
||
| Line 45: | Line 61: | ||
{{!}}- |
{{!}}- |
||
{{!}}'''Variable 101 - 105'''{{!!}}text stack |
{{!}}'''Variable 101 - 105'''{{!!}}text stack |
||
| ⚫ | |||
| − | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}} |
}} |
||
Latest revision as of 20:48, 16 June 2011
Usage
Example 1
{{Callback
|features=vehicles
|purchase=not called
|result=capacity (not subject to any further multipliers)
|failure=use callback 36 resp. properties
}}
| Features | vehicles |
| Purchase list | not called |
| Variable 10 | undefined |
| Variable 18 | undefined |
| Result | capacity (not subject to any further multipliers) |
| Fail result means | use callback 36 resp. properties |
Example 2: Additional lines
{{Callback
|features=houses (1B), industy tiles (25)
|result=
Format: <tt>SSAA</tt>
*<tt>SS</tt>: sound effect
*<tt>AA</tt>: animation stage
|failure=stay in current frame
|other=
{{!}}-
{{!}}'''Variable 100'''{{!!}}additional result
{{!}}-
{{!}}'''Variable 101 - 105'''{{!!}}text stack
}}
| Features | houses (1B), industy tiles (25) |
| Purchase list | - |
| Variable 10 | undefined |
| Variable 18 | undefined |
| Result | Format: SSAA
|
| Fail result means | stay in current frame |
| Variable 100 | additional result |
| Variable 101 - 105 | text stack |