User:Hairy Dude/Event/doc

From Stellaris Wiki
Jump to navigation Jump to search
This is the documentation page for User:Hairy Dude/Event.
When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.


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

Parameter

Parameter Description Default Status
event_name Title of the event. empty required
event_text Ingame description text of the event. empty One of these two is optional, but desired
cond_event_text Ingame descriptions of the event, with their attached conditions. The text itself should be set in italics. empty
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
collapse Whether to collapse the event. If set to ‘yes’ the content will be collapsed.

(Please use collapsed content on country pages.)

empty optional
version To specify the major patch for which the event was written or updated. empty required

Usage

{{User:Hairy Dude/Event
|version = 
|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

MTTH event

The following code

{{User:Hairy Dude/Event
|version = 1.0
|event_name = Rise of the Trees
|event_text = The migrating forests on [Root.GetName] have resurfaced! We knew isolated pockets of their kind had survived in several remote areas, but they appeared dormant. It seems they used this reprieve to replenish their numbers, and they have begun to systematically attack our settlements.<br/><br/>Contrary to what we believed, they clearly possess some form of rudimentary intelligence, and they're out for revenge!
|trigger =
*World has not had this event before
*Has ''not'' completed the special project ''"Burn Migrating Forests"'' for this world
*World is owned by its original owner
*World is ''not'' the empire's homeworld
*World is ''not'' currently the scene of ground combat
*World has at least 1 pop
|mtth = 240 months
|immediate =
* Create faction "Rampaging Forests"
* Create species "Migrating Trees" with random portrait, class and traits
* Create three Assault Armies named "Rampaging Forest" owned by this faction and of this species
|options = {{option
|option_text = They must be stopped!
|effect =
* Hordes of trees are attacking our colonists on [Root.GetName]!
}}
}}

will display:

Rise of the Trees

Outliner top 500px.png

The migrating forests on [Root.GetName] have resurfaced! We knew isolated pockets of their kind had survived in several remote areas, but they appeared dormant. It seems they used this reprieve to replenish their numbers, and they have begun to systematically attack our settlements.

Contrary to what we believed, they clearly possess some form of rudimentary intelligence, and they're out for revenge!


 
Trigger conditions
  • World has not had this event before
  • Has not completed the special project "Burn Migrating Forests" for this world
  • World is owned by its original owner
  • World is not the empire's homeworld
  • World is not currently the scene of ground combat
  • World has at least 1 pop
Mean time to happen

240 months


Immediate effects
  • Create faction "Rampaging Forests"
  • Create species "Migrating Trees" with random portrait, class and traits
  • Create three Assault Armies named "Rampaging Forest" owned by this faction and of this species

Event button on.png
They must be stopped!
  • Hordes of trees are attacking our colonists on [Root.GetName]!


Triggered only event

The following code

{{User:Hairy Dude/Event
|version = 1.0
|event_name = Coprolite Asteroid
|event_text = Although it is difficult to accept, all indications point towards asteroid [From.GetName] being a coprolite - a piece of fossilized feces from some kind of massive life form. It appears to be almost a billion years old, and much of the fossil's original organic composition has been replaced by mineral deposits. Our scientists are baffled as to what kind of creature could have produced something like this.
|triggered only = *Anomaly project
|options =
{{option
|option_text = Remarkable.
|effect = * (hidden effect) Gain the planet modifier ''“Coprolite Asteroid”'' till the end of the campaign.
** Replace current orbital tile deposit with {{icon|soc}} {{green|3}} Society Research. }}
}}

will display:

Coprolite Asteroid

Outliner top 500px.png

Although it is difficult to accept, all indications point towards asteroid [From.GetName] being a coprolite - a piece of fossilized feces from some kind of massive life form. It appears to be almost a billion years old, and much of the fossil's original organic composition has been replaced by mineral deposits. Our scientists are baffled as to what kind of creature could have produced something like this.


 
Trigger conditions
  • None
Is triggered only by
  • Anomaly project

Event button on.png
Remarkable.
  • (hidden effect) Gain the planet modifier “Coprolite Asteroid” till the end of the campaign.
    • Replace current orbital tile deposit with Society Research 3 Society Research.


Event with conditional options

The following code

<section begin= anomaly.40.alt/>{{User:Hairy Dude/Event
|version = 1.0
|event_name = Automated Mining Base
|cond_event_text = If the world is within the empire's borders:
: ''We have detected an automated mining base built in close orbit around asteroid [From.GetName]. There is scorching on the hull indicative of light weapons damage, and the facility appeared to be stuck in some kind of feedback loop. We have managed to reprogram the base systems and the facility is now fully under our control.''
If the world is outside the empire's borders:
: ''We have detected an automated mining base built in close orbit around asteroid [From.GetName]. There are large chunks of the hull missing, the jagged holes indicative of heavy weapons damage. The station is beyond repair, but salvaging it will provide us with valuable materials.''
|triggered only = * Anomaly project
|immediate = Trigger country event ''"Contact Report: Remnants"'' in 30 days
|options =
{{option
|trigger = If the world is outside the empire's borders and has an orbital deposit of at least {{icon|minerals}} 1 minerals:
|option_text = Excellent.
|effect = * Gain additional orbital mineral deposit appropriate to a tier 1 anomaly.
}}{{option
|trigger = If the world is outside the empire's borders and has an orbital deposit of at least {{icon|energy}} 1 energy:
|option_text = Excellent.
|effect = * Gain additional orbital energy deposit appropriate to a tier 1 anomaly.
}}{{option
|trigger = If the world is inside the empire's borders:
|option_text = Excellent.
|effect = * Create a mining station around this world.
}}
}}<section end= anomaly.40.alt/>

will display:

Automated Mining Base

Outliner top 500px.png

If the world is within the empire's borders:

We have detected an automated mining base built in close orbit around asteroid [From.GetName]. There is scorching on the hull indicative of light weapons damage, and the facility appeared to be stuck in some kind of feedback loop. We have managed to reprogram the base systems and the facility is now fully under our control.

If the world is outside the empire's borders:

We have detected an automated mining base built in close orbit around asteroid [From.GetName]. There are large chunks of the hull missing, the jagged holes indicative of heavy weapons damage. The station is beyond repair, but salvaging it will provide us with valuable materials.

 
Trigger conditions
  • None
Is triggered only by
  • Anomaly project

Immediate effects

Trigger country event "Contact Report: Remnants" in 30 days


Event trigger.pngEnabled if: If the world is outside the empire's borders and has an orbital deposit of at least Minerals.png 1 minerals:

Event button on.png
Excellent.
  • Gain additional orbital mineral deposit appropriate to a tier 1 anomaly.

Event trigger.pngEnabled if:

If the world is outside the empire's borders and has an orbital deposit of at least Energy Credits.png 1 energy:

Event button on.png
Excellent.
  • Gain additional orbital energy deposit appropriate to a tier 1 anomaly.

Event trigger.pngEnabled if:

If the world is inside the empire's borders:

Event button on.png
Excellent.
  • Create a mining station around this world.