Difference between revisions of "Template:Trigger"

From HIVE
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"
|{{{Event1}}}
+
|{{{TriggerEvents}}}
|-
 
|{{{Event2}}}
 
|-
 
|{{{Event3}}}
 
|-
 
|{{{Event4}}}
 
|-
 
|{{{Event6}}}
 
|-
 
|{{{Event7}}}
 
|-
 
|{{{Event8}}}
 
|-
 
|{{{Event9}}}
 
|-
 
|{{{Event10}}}
 
|-
 
|{{{Event11}}}
 
|-
 
|{{{Event12}}}
 
|-
 
|{{{Event13}}}
 
|-
 
|{{{Event14}}}
 
|-
 
|{{{Event15}}}
 
|-
 
|{{{Event16}}}
 
|-
 
|{{{Event17}}}
 
|-
 
|{{{Event18}}}
 
|-
 
|{{{Event19}}}
 
|-
 
|{{{Event20}}}
 
 
|}
 
|}
 
|}
 
|}
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"
|{{{Variable1}}}
+
|{{{TriggerVariables}}}
|-
 
|{{{Variable2}}}
 
|-
 
|{{{Variable3}}}
 
|-
 
|{{{Variable4}}}
 
|-
 
|{{{Variable5}}}
 
|-
 
|{{{Variable6}}}
 
|-
 
|{{{Variable7}}}
 
|-
 
|{{{Variable8}}}
 
|-
 
|{{{Variable9}}}
 
|-
 
|{{{Variable10}}}
 
|-
 
|{{{Variable11}}}
 
|-
 
|{{{Variable12}}}
 
|-
 
|{{{Variable13}}}
 
|-
 
|{{{Variable14}}}
 
|-
 
|{{{Variable15}}}
 
|-
 
|{{{Variable16}}}
 
|-
 
|{{{Variable17}}}
 
|-
 
|{{{Variable18}}}
 
|-
 
|{{{Variable19}}}
 
|-
 
|{{{Variable20}}}
 
 
|}
 
|}
 
|}
 
|}
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"
|{{{Condition1}}}
+
|{{{TriggerConditions}}}
|-
 
|{{{Condition2}}}
 
|-
 
|{{{Condition3}}}
 
|-
 
|{{{Condition4}}}
 
|-
 
|{{{Condition5}}}
 
|-
 
|{{{Condition6}}}
 
|-
 
|{{{Condition7}}}
 
|-
 
|{{{Condition8}}}
 
|-
 
|{{{Condition9}}}
 
|-
 
|{{{Condition10}}}
 
|-
 
|{{{Condition11}}}
 
|-
 
|{{{Condition12}}}
 
|-
 
|{{{Condition13}}}
 
|-
 
|{{{Condition14}}}
 
|-
 
|{{{Condition15}}}
 
|-
 
|{{{Condition16}}}
 
|-
 
|{{{Condition17}}}
 
|-
 
|{{{Condition18}}}
 
|-
 
|{{{Condition19}}}
 
|-
 
|{{{Condition20}}}
 
 
|}
 
|}
 
|}
 
|}
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"
|{{{Action1}}}
+
|{{{TriggerActions}}}
|-
 
|{{{Action2}}}
 
|-
 
|{{{Action3}}}
 
|-
 
|{{{Action4}}}
 
|-
 
|{{{Action5}}}
 
|-
 
|{{{Action6}}}
 
|-
 
|{{{Action7}}}
 
|-
 
|{{{Action8}}}
 
|-
 
|{{{Action9}}}
 
|-
 
|{{{Action10}}}
 
|-
 
|{{{Action11}}}
 
|-
 
|{{{Action12}}}
 
|-
 
|{{{Action13}}}
 
|-
 
|{{{Action14}}}
 
|-
 
|{{{Action15}}}
 
|-
 
|{{{Action16}}}
 
|-
 
|{{{Action17}}}
 
|-
 
|{{{Action18}}}
 
|-
 
|{{{Action19}}}
 
|-
 
|{{{Action20}}}
 
|-
 
|{{{Action21}}}
 
|-
 
|{{{Action22}}}
 
|-
 
|{{{Action23}}}
 
|-
 
|{{{Action24}}}
 
|-
 
|{{{Action25}}}
 
|-
 
|{{{Action26}}}
 
|-
 
|{{{Action27}}}
 
|-
 
|{{{Action28}}}
 
|-
 
|{{{Action29}}}
 
|-
 
|{{{Action30}}}
 
 
|}
 
|}
 
|}
 
|}
Line 199: Line 29:
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
This is a work in progress by DevliN. Ultimately I may split each section into separate templates and compile it all in this template, so this doesn't seem as daunting. To see this in action, check out [[Trigger Template Test]].
+
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=
|Event1=
+
|TriggerEvents=
|Event2=
+
|TriggerVariables=
|Event3=
+
|TriggerConditions=
|Event4=
+
|TriggerActions=
|Event5=
+
}}
|Event6=
+
</pre>
|Event7=
+
 
|Event8=
+
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:
|Event9=
+
<pre>{{Trigger
|Event10=
+
|TriggerName=Melee Initialization
|Event11=
+
|TriggerEvents=Game - Map initialization
|Event12=
+
|TriggerVariables=
|Event13=
+
|TriggerConditions=
|Event14=
+
|TriggerActions=Create melee starting units for all players
|Event15=
+
 
|Event16=
+
Create melee starting units for all players
|Event17=
+
 
|Event18=
+
Start the melee AI for all computer players
|Event19=
+
 
|Event20=
+
Set default melee options for all players
|Variable1=
+
}}
|Variable2=
+
</pre>
|Variable3=
 
|Variable4=
 
|Variable5=
 
|Variable6=
 
|Variable7=
 
|Variable8=
 
|Variable9=
 
|Variable10=
 
|Variable11=
 
|Variable12=
 
|Variable13=
 
|Variable14=
 
|Variable15=
 
|Variable16=
 
|Variable17=
 
|Variable18=
 
|Variable19=
 
|Variable20=
 
|Condition1=
 
|Condition2=
 
|Condition3=
 
|Condition4=
 
|Condition5=
 
|Condition6=
 
|Condition7=
 
|Condition8=
 
|Condition9=
 
|Condition10=
 
|Condition11=
 
|Condition12=
 
|Condition13=
 
|Condition14=
 
|Condition15=
 
|Condition16=
 
|Condition17=
 
|Condition18=
 
|Condition19=
 
|Condition20=
 
|Action1=
 
|Action2=
 
|Action3=
 
|Action4=
 
|Action5=
 
|Action6=
 
|Action7=
 
|Action8=
 
|Action9=
 
|Action10=
 
|Action11=
 
|Action12=
 
|Action13=
 
|Action14=
 
|Action15=
 
|Action16=
 
|Action17=
 
|Action18=
 
|Action19=
 
|Action20=
 
|Action21=
 
|Action22=
 
|Action23=
 
|Action24=
 
|Action25=
 
|Action26=
 
|Action27=
 
|Action28=
 
|Action29=
 
|Action30=
 
}}</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
}}