More actions
m Analyzed end= parameter, clarified what is valuable loot |
m Make missing parameter in syntax visible. |
||
| Line 8: | Line 8: | ||
; Syntax | ; Syntax | ||
: {{T|NPCTableRow|type|count|name|point= point|5=ewar= ewar|6=ewar2= ewar|7=ewar3= ewar|8= | : {{T|NPCTableRow|type|count|name|4=point= point|5=ewar= ewar|6=ewar2= ewar|7=ewar3= ewar|8=drop= drop|9=cargo= cargo|10=trigger= trigger|11=note= notes|end= end}} | ||
:; Parameters | :; Parameters | ||
:: type, count and name are anonymous (positional) parameters and must be ordered as written. | :: type, count and name are anonymous (positional) parameters and must be ordered as written. | ||
| Line 136: | Line 136: | ||
:; trigger : If destroying an NPC causes an action (acceleration gates get unlocked, a new wave of enemies spawn, etc), use this parameter. | :; trigger : If destroying an NPC causes an action (acceleration gates get unlocked, a new wave of enemies spawn, etc), use this parameter. | ||
:; note : Use to describe important information about an NPC (for instance, an NPC deals extremely high damage, is able to self-repair themselves quickly, ...). | :; note : Use to describe important information about an NPC (for instance, an NPC deals extremely high damage, is able to self-repair themselves quickly, ...). | ||
:; end : Use to include the table closing tags after this row. Any parameter value will add the table closing tag. Only use it on the last row of a table. | <!--:; end : Use to include the table closing tags after this row. Any parameter value will add the table closing tag. Only use it on the last row of a table.--> | ||
; Sample | ; Sample | ||
| Line 142: | Line 142: | ||
: <code><nowiki>{{NPCTableHead|Initial defenders}}</nowiki></code> | : <code><nowiki>{{NPCTableHead|Initial defenders}}</nowiki></code> | ||
: <code><nowiki>{{NPCTableRow|Friendly Barge|1|Digger|drop= lots of stuff}}</nowiki></code> | : <code><nowiki>{{NPCTableRow|Friendly Barge|1|Digger|drop= lots of stuff}}</nowiki></code> | ||
: <code><nowiki>{{NPCTableRow|Cruiser|1|Warship|point= yes|eawr= Web|ewar2= TD|note=Important info|trigger= Mission complete|cargo= Expensive stuff}}</nowiki></code> | : <code><nowiki>{{NPCTableRow|Cruiser|1|Warship|point= yes|eawr= Web|ewar2= TD|note= Important info|trigger= Mission complete|cargo= Expensive stuff}}</nowiki></code> | ||
: <code><nowiki>|}</nowiki></code> | : <code><nowiki>|}</nowiki></code> | ||
:: gives... | :: gives... | ||
{{NPCTableHead|Initial defenders}} | {{NPCTableHead|Initial defenders}} | ||
{{NPCTableRow|Friendly Barge|1|Digger|drop= lots of stuff}} | {{NPCTableRow|Friendly Barge|1|Digger|drop= lots of stuff}} | ||
{{NPCTableRow|Cruiser|1|Warship|point= yes|ewar= Web|ewar2= TD|note=Important info|trigger= Mission complete|cargo= Expensive stuff}} | {{NPCTableRow|Cruiser|1|Warship|point= yes|ewar= Web|ewar2= TD|note= Important info|trigger= Mission complete|cargo= Expensive stuff}} | ||
|} | |} | ||