群星
ParaWikis
Recent changes
Random page
⧼qqGroup⧽
Tools
What links here
Related changes
Special pages
Page information
Page values
Read
Edit
Edit source
View history
Discussion
Editing
Modifiers
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Static modifiers == Static modifiers are game objects defined at "common/static_modifiers/xxx.txt". Static modifiers consist of modifier statements and additional fields. * '''icon''' - A direct reference to a "xxx.dds" file. planetary static modifiers and some empire static modifiers have this field. If not specified the static modifier icon will be displayed as the icon of the first modifier statement of this static modifier. * '''icon_frame = 1/2/3''' - Applies a green/yellow/red circle frame for the icon of this static modifier. Usually used by planetary static modifiers. * '''custom_tooltip = <localisation key>''' - A tooltip in addition to the generated modifier tooltip. * '''show_only_custom_tooltip = yes/no''' - If custom tooltip is specified, setting this to no will hide the generated modifier tooltip. * '''apply_modifier_to_other_planets = <static modifier key>''' - If this Static Modifier is added to a planet, the later Static Modifier will apply to each planet you own without the former. Resort Colony and Penal Colony use this to apply a non-duplicatable empire bonus. Despite of some static modifiers being exclusively added to specific scopes, static modifiers themselves do not rely on scopes. They can be added to almost any scope: country, planet, pop, ship, federation... Some static modifiers are hard-coded to be called by the engine. Removing them causes unexpected issues. === Static modifier integration === Any modifier block can call a static modifier. The engine will find that static modifier and integrate its modifier statements into this block. Given the following static modifier: <pre> example_sm = { planet_stability_add = 10 } </pre> Then anything that require Modifiers can use <code>example_sm = <float></code> as a Modifier entry. For example, <code>example_sm = 1.5</code> is technically equivalent to <code>planet_stability_add = 15</code>. Only modifier statements will be integrated. Custom tooltips and anything else will be ignored. Unlike [[Dynamic modding|scripted triggers and scripted effects]], static modifiers can't integrate other static modifiers. === Notification modifiers === A special variation of static modifiers, except all they have is an icon. They are assigned to country scopes. Use notification modifiers instead of static modifiers if your modifier do not have any modifiers anyway, because modifier updating is performance intensive. They are defined at "common/notification_modifiers/xxx.txt". === How to change vanilla static modifiers? === Place a changed static modifier from any of the core files in "common/static_modifiers" in a new file that comes ''before'' asciibetically.
Summary:
Please note that all contributions to 群星百科 are considered to be released under the 知识共享署名-非商业性使用-相同方式共享 (see
群星百科:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
×
Login
Password
Remember my login
Join 群星百科
Forgot your password?
Login with other method