Difference between revisions of "Template:Trigger"
Jump to navigation
Jump to search
m |
|||
Line 5: | Line 5: | ||
|<span style="color:orange">'''Events'''</span> | |<span style="color:orange">'''Events'''</span> | ||
{| cellpadding="0" cellspacing="1" style="width: 98%; background: #2c2c2c" align="right" | {| cellpadding="0" cellspacing="1" style="width: 98%; background: #2c2c2c" align="right" | ||
− | |{{{ | + | |{{{TriggerEvents}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
|} | |} | ||
Line 47: | Line 11: | ||
|<span style="color:orange">'''Local Variables'''</span> | |<span style="color:orange">'''Local Variables'''</span> | ||
{| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right" | {| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right" | ||
− | |{{{ | + | |{{{TriggerVariables}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
|} | |} | ||
Line 91: | Line 17: | ||
|<span style="color:orange">'''Conditions'''</span> | |<span style="color:orange">'''Conditions'''</span> | ||
{| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right" | {| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right" | ||
− | |{{{ | + | |{{{TriggerConditions}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
|} | |} | ||
Line 135: | Line 23: | ||
|<span style="color:orange">'''Actions'''</span> | |<span style="color:orange">'''Actions'''</span> | ||
{| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right" | {| cellpadding="0" cellspacing="1" style="border: 0px solid darkgray; width: 98%; background: #2c2c2c" align="right" | ||
− | |{{{ | + | |{{{TriggerActions}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
|} | |} | ||
Line 199: | Line 29: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
− | This is a work in progress by DevliN | + | This is a work in progress by DevliN. To see this in action, check out [[Trigger Template Test]]. |
+ | The following will place make the Trigger box show up in a Wiki article: | ||
<pre>{{Trigger | <pre>{{Trigger | ||
|TriggerName= | |TriggerName= | ||
− | | | + | |TriggerEvents= |
− | | | + | |TriggerVariables= |
− | | | + | |TriggerConditions= |
− | | | + | |TriggerActions= |
− | + | }} | |
− | + | </pre> | |
− | + | ||
− | + | When using this, be sure to separate each line as you normally would on a Wiki page, otherwise it will look bunched up. At the moment, you will also have to erase all the spaces before the triggers if you are copying as text them from a map. The following is an example of how the "Melee Initialization" trigger would look: | |
− | + | <pre>{{Trigger | |
− | + | |TriggerName=Melee Initialization | |
− | + | |TriggerEvents=Game - Map initialization | |
− | + | |TriggerVariables= | |
− | + | |TriggerConditions= | |
− | + | |TriggerActions=Create melee starting units for all players | |
− | + | ||
− | + | Create melee starting units for all players | |
− | + | ||
− | + | Start the melee AI for all computer players | |
− | + | ||
− | + | Set default melee options for all players | |
− | + | }} | |
− | + | </pre> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}</pre> | ||
</noinclude> | </noinclude> |
Revision as of 05:21, 24 November 2010
This is a work in progress by DevliN. To see this in action, check out Trigger Template Test.
The following will place make the Trigger box show up in a Wiki article:
{{Trigger |TriggerName= |TriggerEvents= |TriggerVariables= |TriggerConditions= |TriggerActions= }}
When using this, be sure to separate each line as you normally would on a Wiki page, otherwise it will look bunched up. At the moment, you will also have to erase all the spaces before the triggers if you are copying as text them from a map. The following is an example of how the "Melee Initialization" trigger would look:
{{Trigger |TriggerName=Melee Initialization |TriggerEvents=Game - Map initialization |TriggerVariables= |TriggerConditions= |TriggerActions=Create melee starting units for all players Create melee starting units for all players Start the melee AI for all computer players Set default melee options for all players }}