群星
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑源代码
查看历史
讨论
编辑“
Template:Event/doc
”
Pokewiz
(
讨论
|
贡献
)
2022年3月7日 (一) 02:18的版本
(merge from offical wiki)
(差异) ←上一版本 |
最后版本
(
差异
) |
下一版本→
(
差异
)
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> __NOTOC__ '''Event''' can be used to diplay description, trigger, trigger condition and options of an event in a compact infobox. == Parameter == {| class="wikitable" |- ! 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''' |- | img | Shows a picture above the event description. | empty | '''optional''' |- | picture | Shows a picture above the event description. | empty | '''optional''' |- | 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 [[Events#Mean_time_to_happen|MTTH-events]]. | empty | rowspan="2" | One of theses two is '''required'''. |- | triggered only | To specify the trigger of [[Events#Triggered_events|'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 {{template|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.<br> (Please use collapsed content on country pages.) | empty | '''optional''' |} == Usage == <pre> {{Event |version = |event_id = |event_name = |event_text = <!-- optional, but desired --> |picture = <!-- optional --> |trigger = |mtth = <!-- for Mtth events --> |triggered only = <!-- for triggered only events --> |immediate = <!-- optional for immediate effects --> |options = <!-- options use {{option}} template --> }} </pre> '''Note:''' Please use either “mtth”-parameter ''or'' “triggered only”-parameter. == Examples == === MTTH event === The following code <pre> {{Event |version = 2.8 |event_id = colony.2050 |event_name = Lost to Bureaucracy |img = [[File:Evt colony settlement.png]] |event_text = Due to a major clerical error parts of [colony name] has fallen behind in infrastructure maintenance and accommodation services. The people live in rather bleak conditions and will not tolerate it for long. Remedying these problems will cost us time and effort. |trigger = * Colony is not a [[File:Planet habitat.png|24px]] Habitat * Colony has any building * Not {{iconify|Gestalt Consciousness}} |mtth = 36 months |options = {{option |option_text = Unfortunate.|effect = * Adds a [[File:D slums.png|24px]] Sprawling Slums Blocker to the colony * Adds an [[File:D metal boneyard.png|24px]] Industrial Wasteland Blocker to the colony}} {{option |option_text = We must invest in this area.|effect = * Energy Credits: {{icon|energy}} {{red|-500}} * Influence: {{icon|influence}} {{red|-100}} * Unity Gained: {{icon|unity}} 150-1000}} {{option |option_text = {{icon|authoritarian}}{{icon|fanatic authoritarian}} We have a strong community, help them recover.|effect = * Energy Credits: {{icon|energy}} {{red|-250}} * Influence: {{icon|influence}} {{red|-50}} * Unity Gained: {{icon|unity}} 150-1000}} {{option |option_text = {{icon|militarist}}{{icon|fanatic militarist}} Throw out the inhabitants and raze the area.|effect = * Influence Gained: {{icon|influence}} 80-175 * The colony gets {{red|+20}} {{iconify|Devastation}}}} }} </pre> will display: {{Event|nocat=yes |version = 2.8 |event_id = colony.2050 |event_name = Lost to Bureaucracy |img = [[File:Evt colony settlement.png]] |event_text = Due to a major clerical error parts of [colony name] has fallen behind in infrastructure maintenance and accommodation services. The people live in rather bleak conditions and will not tolerate it for long. Remedying these problems will cost us time and effort. |trigger = * Colony is not a [[File:Planet habitat.png|24px]] Habitat * Colony has any building * Not {{iconify|Gestalt Consciousness}} |mtth = 36 months |options = {{option |option_text = Unfortunate.|effect = * Adds a [[File:D slums.png|24px]] Sprawling Slums Blocker to the colony * Adds an [[File:D metal boneyard.png|24px]] Industrial Wasteland Blocker to the colony}} {{option |option_text = We must invest in this area.|effect = * Energy Credits: {{icon|energy}} {{red|-500}} * Influence: {{icon|influence}} {{red|-100}} * Unity Gained: {{icon|unity}} 150-1000}} {{option |option_text = {{icon|authoritarian}}{{icon|fanatic authoritarian}} We have a strong community, help them recover.|effect = * Energy Credits: {{icon|energy}} {{red|-250}} * Influence: {{icon|influence}} {{red|-50}} * Unity Gained: {{icon|unity}} 150-1000}} {{option |option_text = {{icon|militarist}}{{icon|fanatic militarist}} Throw out the inhabitants and raze the area.|effect = * Influence Gained: {{icon|influence}} 80-175 * The colony gets {{red|+20}} {{iconify|Devastation}}}} }} === Triggered only event === The following code <pre> {{Event | version = 1.6 | event_id = progress.2 | event_name = The Discovery of Alien Life | event_text = The [Root.GetName] has made a startling find on [From.GetName] - the [From.GetPlanetMoon] is teeming with alien life! For the first time in history, we have encountered life forms that did not originate on [Root.Owner.Capital.GetName].<br/><br/>This amazing discovery has silenced those who believed we were alone in the universe. Although none of the alien creatures found on [From.GetName] are sentient, it is likely only a matter of time before we encounter beings that are... | picture = evt_alien_planet | trigger = * The following country flag are ''not'' set: {{MultiColumn| ** ''first_alien_life'' ** ''Story1'' ** ''Story2'' ** ''Story3'' ** ''Story4'' ** ''Story5'' ** ''Story6'' ** ''Story7'' ** ''Story8'' |2}} * Planet is habitable ''and'' unowned | triggered only = * On survey | immediate = * Set country flag ''first_alien_life'' | options = {{Option | option_text = We may not be alone out here. | effect = * {{reward|soc|res1}} * Get country event if planet has a {{icon|tile blocker|21px}} ''Dangerous Wildlife'' tile blocker ** {{icon|yes}} Present: [[Story events#story.3|''"Contact Report: Planetary Animalia"'']] in 30 days ** {{icon|no}} Present: [[Story events#story.1|''"Contact Report: Simple Forms of Life"'']] in 30 days }} }} </pre> will display: {{Event|nocat=yes | version = 1.6 | event_id = progress.2 | event_name = The Discovery of Alien Life | event_text = The [Root.GetName] has made a startling find on [From.GetName] - the [From.GetPlanetMoon] is teeming with alien life! For the first time in history, we have encountered life forms that did not originate on [Root.Owner.Capital.GetName].<br/><br/>This amazing discovery has silenced those who believed we were alone in the universe. Although none of the alien creatures found on [From.GetName] are sentient, it is likely only a matter of time before we encounter beings that are... | picture = evt_alien_planet | trigger = * The following country flag are ''not'' set: {{MultiColumn| ** ''first_alien_life'' ** ''Story1'' ** ''Story2'' ** ''Story3'' ** ''Story4'' ** ''Story5'' ** ''Story6'' ** ''Story7'' ** ''Story8'' |2}} * Planet is habitable ''and'' unowned | triggered only = * On survey | immediate = * Set country flag ''first_alien_life'' | options = {{Option | option_text = We may not be alone out here. | effect = * {{reward|soc|res1}} * Get country event if planet has a {{icon|tile blocker|21px}} ''Dangerous Wildlife'' tile blocker ** {{icon|yes}} Present: [[Story events#story.3|''"Contact Report: Planetary Animalia"'']] in 30 days ** {{icon|no}} Present: [[Story events#story.1|''"Contact Report: Simple Forms of Life"'']] in 30 days }} }} === Event with conditional options and after effects === The following code <pre> {{Event | version = 1.4 | event_id = akx.9005 | event_name = The Horizon Signal: <span style="color:orange">THE WORM</span> | event_text = Science Officer [Root.GetLeaderName] reports that the signal was unexpectedly easy to decipher... but their team has spent considerable time confirming that it's not a hoax. It is a repeating, half-coherent message in the [Root.Owner.GetAdj] language - something like a poem. It repeats the phrases <span style="color:orange">GRAVITY IS DESIRE</span> and <span style="color:orange">TIME IS SIGHT</span>. It encodes co-ordinates near the black hole. And it ends with a dedication {{green|by name}} to the Science Officer - who adds dispassionately that they have confirmed that the signal has been radiating into interstellar space since before their birth. In fact, the signal may predate our civilization. | picture = evt_black_hole | triggered only = Event ''"The Horizon Signal: <span style="color:orange">GRAVITY IS DESIRE</span>"''<!-- akx.9001 --> option ''"Fascinating! Send the vessel to those co-ordinates."'' | immediate = * Fleet is temporarily locked in place. * Fleet leader is temporarily exiled. | after = * Fleet owner: ** Gain between {{icon|physics}} 600 and 3000 monthly physics research, scaled by ??? ** Trigger event ''"The Horizon Signal: <span style="color: orange">REPRISE</span>"''<!-- akx.9010 --> in a random amount of time (about 320 days) * Fleet is deleted. | option conditions = yes | options = {{Option | option_text = Darkness; light; darkness. | trigger = the fleet's owner has {{icon|spiritualist}} Spiritualist or {{icon|fanatic spiritualist}} Fanatic Spiritualist ethics }} {{Option | option_text = We learn, and we go on. | trigger = the fleet's owner has {{icon|materialist}} Materialist or {{icon|fanatic materialist}} Fanatic Materialist ethics }} {{Option|end | option_text = They won't be forgotten. | trigger = the fleet's owner has none of these ethics }} }} </pre> will display: {{Event|nocat=yes | version = 1.4 | event_id = akx.9005 | event_name = The Horizon Signal: <span style="color:orange">THE WORM</span> | event_text = Science Officer [Root.GetLeaderName] reports that the signal was unexpectedly easy to decipher... but their team has spent considerable time confirming that it's not a hoax. It is a repeating, half-coherent message in the [Root.Owner.GetAdj] language - something like a poem. It repeats the phrases <span style="color:orange">GRAVITY IS DESIRE</span> and <span style="color:orange">TIME IS SIGHT</span>. It encodes co-ordinates near the black hole. And it ends with a dedication {{green|by name}} to the Science Officer - who adds dispassionately that they have confirmed that the signal has been radiating into interstellar space since before their birth. In fact, the signal may predate our civilization. | picture = evt_black_hole | triggered only = Event ''"The Horizon Signal: <span style="color:orange">GRAVITY IS DESIRE</span>"''<!-- akx.9001 --> option ''"Fascinating! Send the vessel to those co-ordinates."'' | immediate = * Fleet is temporarily locked in place. * Fleet leader is temporarily exiled. | after = * Fleet owner: ** Gain between {{icon|physics}} 600 and 3000 monthly physics research, scaled by ??? ** Trigger event ''"The Horizon Signal: <span style="color: orange">REPRISE</span>"''<!-- akx.9010 --> in a random amount of time (about 320 days) * Fleet is deleted. | option conditions = yes | options = {{Option | option_text = Darkness; light; darkness. | trigger = the fleet's owner has {{icon|spiritualist}} Spiritualist or {{icon|fanatic spiritualist}} Fanatic Spiritualist ethics }} {{Option | option_text = We learn, and we go on. | trigger = the fleet's owner has {{icon|materialist}} Materialist or {{icon|fanatic materialist}} Fanatic Materialist ethics }} {{Option|end | option_text = They won't be forgotten. | trigger = the fleet's owner has none of these ethics }} }}
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
Template:Ambox
(
编辑
)
Template:Ambox/core
(
编辑
)
Template:Anchor
(
编辑
)
Template:Color
(
编辑
)
Template:Event
(
编辑
)
Template:Green
(
编辑
)
Template:Icon
(
编辑
)
Template:Icon/a
(
编辑
)
Template:Icon/d
(
编辑
)
Template:Icon/e
(
编辑
)
Template:Icon/f
(
编辑
)
Template:Icon/g
(
编辑
)
Template:Icon/i
(
编辑
)
Template:Icon/m
(
编辑
)
Template:Icon/n
(
编辑
)
Template:Icon/p
(
编辑
)
Template:Icon/s
(
编辑
)
Template:Icon/t
(
编辑
)
Template:Icon/u
(
编辑
)
Template:Icon/y
(
编辑
)
Template:Iconify
(
编辑
)
Template:Infobox
(
编辑
)
Template:MultiColumn
(
编辑
)
Template:Nowrap
(
编辑
)
Template:Option
(
编辑
)
Template:Planet modifier
(
编辑
)
Template:Red
(
编辑
)
Template:Reward
(
编辑
)
Template:Ruby
(
编辑
)
Template:SVersion event
(
编辑
)
Template:Template
(
编辑
)
Template:Template doc page viewed directly
(
编辑
)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录