Template:Event: Difference between revisions

From [N8]
Jump to navigation Jump to search
mNo edit summary
m Undo revision 1552 by Banri (talk)
Tag: Undo
Line 24: Line 24:
| <span class="subheading">Mean time to happen</span>
| <span class="subheading">Mean time to happen</span>
{{{mtth}}}
{{{mtth}}}
| <span class="subheading">Info</span>
| <span class="subheading">Is triggered only by</span>
{{{triggered only}}}
{{{triggered only}}}
}}
}}
{{#if:{{{difficulty|}}} |{{!}}-
{{#if:{{{immediate|}}} |{{!}}-
{{!}}colspan="2"{{!}}<hr />
{{!}}colspan="2"{{!}}<hr />
{{!}}-
{{!}}-
{{!}}colspan="2"{{!}}<span class="subheading">Difficulty</span>
{{!}}colspan="2"{{!}}<span class="subheading">Immediate effects</span>
{{{difficulty}}}
{{{immediate}}}
}}
}}
{{!}}-
{{!}}-

Revision as of 08:45, 26 January 2020

[view] [edit] Template documentation


Event can be used to diplay description, trigger, trigger condition and options of an event in a compact infobox.

Parameter

Parameter Description Default Status
version To specify the major patch for which the event was written or updated. empty required
event_id Event identification code as it appears in the file to serve as an anchor empty optional
event_name Title of the event. empty required
cond_event_text Set to "yes" if the event has multiple descriptions available for use. empty optional
event_text In-game description text of the event. If multiple descriptions exist then use only the first one. empty optional, but desired
fire_only_once As in the script code - set to "yes" if the event happens only once during a campaign. empty optional
mtth For the base weight and its modifiers of MTTH-events. empty One of theses two is required.
triggered only To specify the trigger of 'triggered only'-events. empty
trigger Trigger conditions of the event.
  • None
optional
immediate The immediate effects of the event. empty optional
option conditions If set to ‘yes’ the section heading 'Option conditions' for events with conditional options is displayed. empty optional
options The possible effects of the event. Please use {{option}}. empty required
after Effects that happen after selecting any option. empty optional
collapse Whether to collapse the event. If set to ‘yes’ the content will be collapsed.

(Please use collapsed content on country pages.)

empty optional

Usage

{{Event
|version = 
|event_id = 
|event_name = 
|event_text = <!-- optional, but desired -->
|trigger = 
|mtth    = <!-- for Mtth events -->
|triggered only = <!-- for triggered only events -->
|immediate = <!-- optional for immediate effects -->
|options = <!-- options use {{option}} template -->
}}

Note: Please use either “mtth”-parameter or “triggered only”-parameter.

Examples

{{Event
|version = Post-launch
|event_id = Mission.21
|event_name = Penetration Testing
|event_text = {{MissionDesc|TerranOfficer|Terran Officer: Feel like hacking our systems? What I mean is, we'd like to test the terran web's security system and we need someone to attempt to hack our systems to do so. We'll pay you for your efforts, just try not to get caught. The paperwork would be a headache. To start, see if you can falsify some trade orders.}}
|trigger = 
* Successfully hack Earth's Supply Depot.
|mtth    = <!-- for Mtth events -->
|triggered only = <!-- for triggered events only -->
|difficulty = * {{red|Hard}}
|shiptype = * Ship: All
|steps = * Steps: 4
|immediate = <!-- optional for immediate effects -->
|options = 
{{option
|option_text = Rewards
|effect = * {{green|Experience: 250 • Intel: 100 • Money: $1,500 • Reputation: 1,000}}
* {{green|Mod: Random Mod}}
}}
}}
id

Penetration Testing

TerranOfficer icon
Terran Officer: Feel like hacking our systems? What I mean is, we'd like to test the terran web's security system and we need someone to attempt to hack our systems to do so. We'll pay you for your efforts, just try not to get caught. The paperwork would be a headache. To start, see if you can falsify some trade orders.

 
Conditions
  • Successfully hack Earth's Supply Depot.
Is triggered only by

Rewards
  • Experience: 250 • Intel: 100 • Money: $1,500 • Reputation: 1,000
  • Mod: Random Mod