Posted April 15, 2021
high rated
Stellaris changelog (part 6 of 8)
Modding (continued)
* Added every/random/count_ship_in_system and fixed the tooltip for the “any version”. Note: count_system_ships is now deprecated
* Replaced every/random/any/count_ship with galaxy_fleet, because checking every ship in the game is a bad idea (and was used wrong in 100% of cases in the game scripts).
* Added Get(Species)ToothName(Plural) loc command.
* Made ‘target country’ of targeted resolutions accessible as 'from' scope in targeted resolutions.
* Added on_branch_office_established and on_branch_office_closed on actions.
* Added "on_starbase_destroyed" on action, and added "starbase_event" event type.
* Added "on_system_occupied" on action that is called when a system is fully occupied (all planets and the starbase). Scope (this = system, from = occupant, fromfrom = original owner)
* Added "system_event" type of event that ensures events are fired in a galactic object scope.
* Megastructures can now have a victory score value.
* Added "add_victory_score" effect, add_victory_score={ reason= score= }.
* You can now hide static modifiers from the country government list of modifiers by adding "hide_from_country_list = yes" to them.
* owned_pop script list (e.g. any_owned_pop) now works in sector scope
* Added every/random/any/count_species_pop which scopes from species to all pops in the galaxy of that species, but use with care because performance on that one ain't gonna be great.
* Deprecated random_pop, any_pop, count_pops and count_owned_pops.
* Made system_within_borders script list work in sector scope too.
* Added "add_victory_score" effect that adds score to a country.
* Added a new trigger has_ship_owner_type to check what type of entity a ship, fleet or ship design is owned by.
* Added "system_event" effect that fires an event in a galactic_object.
* Added "starbase_event" effect to fire events in a starbase scope.
* create_ambient_object can now use effect = { } inside it.
* Added effect fields to a bunch of further create effects that were missing them: create_army, modify_army, create_army_transport, create_pop, create_mining_station, create_research_station, create_half_species.
* The debugtooltip of the planet building queue now shows the sector AI's priorities.
* Now each ship size has their own version of the following modifier shipsize__evasionmult, shipsize_disengage_chancemult, shipsize_tracking_mult. For example: shipsize_crisis_corvette_evasion_mult, shipsize_crisis_corvette_disengage_chance_mult, shipsize_crisis_destroyer_tracking_mult.
* added a "Star Destroyed" message sent when a star gets destroyed (instead of planet destroyed).
* Added a room_name_override effect to set a specific room background to an empire.
* Add effect transfer_galactic_defense_force_fleets = .
* Renamed has_completed/failed_special_project to have _in_log at the end, to avoid confusion as to what exactly they do.
* color entries in scripted map modes now take a type = borders, country or country_and_borders (default).
* Add "zoom" value to scripted map mode colors. The color will only be applied when zoomed out more than this value (default is 0).
* Add "filter" support for scripted map mode colors. The color will then only be applied if the selected map filter is active.
* Made message_types have their own directory, so that modders can add new ones in a new file without overwriting the Vanilla file.
* Mod-made juggernauts which aren't specifically the "juggernaut" ship size will no longer suffer from a variety of deal-breaking issues.
* You can now use [] commands in district descriptions.
* AI weights are now used in the calculations for all component templates (not just the required ones for a ship).
* Added on_pre_government_changed and on_post_government_changed on_actions.
* Added a bunch of triggers to get the number of X sort of diplomatic relations a country has (e.g. num_defensive_pacts, num_rivals, num_truces)
* Added associated_federation and federation_leader scope changes.
* Added effects to add/remove_associate_member of a federation.
* join_alliance effect can now target a federation.
* Added any/every/random/count_associate scopes for getting the associates of a federation.
* Added num_members and num_associates triggers for federation scope.
* Country scope special projects are now possible.
* "allow" fields now work as expected in archaeology sites (and first contact and espionage operations) - previously it was treated as "potential".
* Add support for reading multiple_active_resolutions = yes/no in Resolution categories.
* Added a "set_ai_personality" effect, which lets script force a personality on a country. ex: set_ai_personality = became_the_crisis.
* create_fleet_from_naval_cap effect can now take an optional ship_owner_type parameter, for using Federation or Galactic Defense Force ship designs.
* provided a way for personality to override country type AI Modules.
* Added trigger can_set_policy (to be used in conjunction with set_policy)
* Fixed pop_citizen_happiness so that it works as intended, rather than as just pop_happiness.
* Added effect cancel_resolution = . Cancels/removes the last active/passed/proposed/voting for/failed resolution of .
* Fixed start_colony effect.
* Added export_modifier_to_variable effect and check_modifier_value trigger to be able to get the values of modifiers on the current scope in script
* You can now define "icon = { icon = text = }" in event options, and define a custom icon (and the tooltip for it) there.
* Portrait category is now hidden in the empire creation GUI for graphical cultures and species classes that don't contain any portraits.
* Added new has_city_graphics attribute to graphical cultures for hiding city GUI element in the empire creation menu.
* Global event targets now work on every scope type, instead of quietly failing on a bunch (e.g. Megastructures, Federations) as previously.
* You can now use [X.GetName] and so on in sector, megastructure and deposit scope.
* Variables are no longer cleared if set to 0, use the clear_variable effect instead.
* Added is_variable_set trigger to check whether a variable has been set (to avoid missing variable errors).
* Add support for display_espionage_operations to scriptable map modes.
* Fixed various irregularities with scope change tooltips e.g. "from" being shown on triggers, or the scope change being hidden on effects sometimes.
* scripted_trigger = { PARAM = whatever } will now check if the specified scripted trigger evaluates to TRUE as one would expect, not to FALSE! (Modders take note - manual hacks to avoid this bug need to be reversed)
* Added trigger can_buy_on_market = resource, to check if the current country is able to buy the specified resource on the market they have access to.
* Added add_custodian_term_days effect for increasing or decreasing the remaining term of the current Galactic Custodian.
* Added set_custodian_term_days for setting the remaining time of the current Galactic Custodian's term limit, or setting it to be permanent.
* Added on_federation_new_leader.
* Added support for nested OR/AND in the outer scope of government restrictions scripts. This allows one to e.g. require either an authority or a civic.
* Added is_defensive_army trigger.
* Added pass_resolution_no_cooldown effect to pass a resolution without triggering a cooldown for the relevant category.
* Added leader_events.
* Added trigger is_idle for leaders.
* Introduce add_spy_network_level effect.
* Split trigger_docs into its own log file and added information on scope changes and localisation commands there
* Added new galactic_community_patrol_military_minister_module AI module, that will patrol all capitals of Galactic Community members when not at war.
* Events can now have triggered sounds like pictures: show_sound = { sound = X trigger = { } }
* button_effects now take their scope from the context they are in, so long as that scope is one of the following (with player country as fallback): planet, ship, fleet, system, ambient object, megastructure, espionage operation, arc site or first contact.
* Added ground_combat_attacker/defender script lists.
* Added exclude = {} trigger in pop_percentage and fixed that trigger's scopes (specifically prev).
* Added check_galaxy_setup_value trigger counterpart to get_galaxy_setup_value effect.
* add_resource, add_modifier and resource_stockpile_compare now accept mult = variable.
* Added effect round_variable.
* Added effect export_resource_value_to_variable (exports current stockpile of X resource to a specified variable).
* Added on_save_game_load on_action.
* Added on_ground_combat_started on_action.
* Added growing/assembling/declining_species scope changes.
* leader skill level modifiers are now calculated in leader scope (so e.g. a leader trait affecting max skill level will now work).
* Fixed a bug where setting the adjective in create_country would also set the ruler's name.
* Added on_actions on_leader_fired, on_leader_assigned and on_leader_unassigned; kill_leader effect can now have a "fire = yes" parameter to use this on_action instead.
* Added is_mobile trigger for fleets.
* Renamed effect "surveyed = { set_surveyed = yes/no }" to "set_surveyed = { surveyed = yes/no }", because that just made no sense. Also made it work in system scope.
* Added defines for relative encryption levels and bonuses.
* Added effect "win = yes". I'm sure no one will misuse this.
* Added on_subject_integrated on_action.
* Added num_organic/artificial_pops_per_year triggers, which return the amount of organic/artificial pops you'd expect to get per year (i.e. ( monthly growth / required growth ) * 12 )).
* Scripted localization can now be used in Galactic Community greeting phrases.
* Added pass_targeted_resolution effect.
* Graphical modifier descriptions now support global event targets in scripted localization.
* Planet modifier descriptions now support scripted localization.
Modding (continued)
* Added every/random/count_ship_in_system and fixed the tooltip for the “any version”. Note: count_system_ships is now deprecated
* Replaced every/random/any/count_ship with galaxy_fleet, because checking every ship in the game is a bad idea (and was used wrong in 100% of cases in the game scripts).
* Added Get(Species)ToothName(Plural) loc command.
* Made ‘target country’ of targeted resolutions accessible as 'from' scope in targeted resolutions.
* Added on_branch_office_established and on_branch_office_closed on actions.
* Added "on_starbase_destroyed" on action, and added "starbase_event" event type.
* Added "on_system_occupied" on action that is called when a system is fully occupied (all planets and the starbase). Scope (this = system, from = occupant, fromfrom = original owner)
* Added "system_event" type of event that ensures events are fired in a galactic object scope.
* Megastructures can now have a victory score value.
* Added "add_victory_score" effect, add_victory_score={ reason= score= }.
* You can now hide static modifiers from the country government list of modifiers by adding "hide_from_country_list = yes" to them.
* owned_pop script list (e.g. any_owned_pop) now works in sector scope
* Added every/random/any/count_species_pop which scopes from species to all pops in the galaxy of that species, but use with care because performance on that one ain't gonna be great.
* Deprecated random_pop, any_pop, count_pops and count_owned_pops.
* Made system_within_borders script list work in sector scope too.
* Added "add_victory_score" effect that adds score to a country.
* Added a new trigger has_ship_owner_type to check what type of entity a ship, fleet or ship design is owned by.
* Added "system_event" effect that fires an event in a galactic_object.
* Added "starbase_event" effect to fire events in a starbase scope.
* create_ambient_object can now use effect = { } inside it.
* Added effect fields to a bunch of further create effects that were missing them: create_army, modify_army, create_army_transport, create_pop, create_mining_station, create_research_station, create_half_species.
* The debugtooltip of the planet building queue now shows the sector AI's priorities.
* Now each ship size has their own version of the following modifier shipsize__evasionmult, shipsize_disengage_chancemult, shipsize_tracking_mult. For example: shipsize_crisis_corvette_evasion_mult, shipsize_crisis_corvette_disengage_chance_mult, shipsize_crisis_destroyer_tracking_mult.
* added a "Star Destroyed" message sent when a star gets destroyed (instead of planet destroyed).
* Added a room_name_override effect to set a specific room background to an empire.
* Add effect transfer_galactic_defense_force_fleets = .
* Renamed has_completed/failed_special_project to have _in_log at the end, to avoid confusion as to what exactly they do.
* color entries in scripted map modes now take a type = borders, country or country_and_borders (default).
* Add "zoom" value to scripted map mode colors. The color will only be applied when zoomed out more than this value (default is 0).
* Add "filter" support for scripted map mode colors. The color will then only be applied if the selected map filter is active.
* Made message_types have their own directory, so that modders can add new ones in a new file without overwriting the Vanilla file.
* Mod-made juggernauts which aren't specifically the "juggernaut" ship size will no longer suffer from a variety of deal-breaking issues.
* You can now use [] commands in district descriptions.
* AI weights are now used in the calculations for all component templates (not just the required ones for a ship).
* Added on_pre_government_changed and on_post_government_changed on_actions.
* Added a bunch of triggers to get the number of X sort of diplomatic relations a country has (e.g. num_defensive_pacts, num_rivals, num_truces)
* Added associated_federation and federation_leader scope changes.
* Added effects to add/remove_associate_member of a federation.
* join_alliance effect can now target a federation.
* Added any/every/random/count_associate scopes for getting the associates of a federation.
* Added num_members and num_associates triggers for federation scope.
* Country scope special projects are now possible.
* "allow" fields now work as expected in archaeology sites (and first contact and espionage operations) - previously it was treated as "potential".
* Add support for reading multiple_active_resolutions = yes/no in Resolution categories.
* Added a "set_ai_personality" effect, which lets script force a personality on a country. ex: set_ai_personality = became_the_crisis.
* create_fleet_from_naval_cap effect can now take an optional ship_owner_type parameter, for using Federation or Galactic Defense Force ship designs.
* provided a way for personality to override country type AI Modules.
* Added trigger can_set_policy (to be used in conjunction with set_policy)
* Fixed pop_citizen_happiness so that it works as intended, rather than as just pop_happiness.
* Added effect cancel_resolution = . Cancels/removes the last active/passed/proposed/voting for/failed resolution of .
* Fixed start_colony effect.
* Added export_modifier_to_variable effect and check_modifier_value trigger to be able to get the values of modifiers on the current scope in script
* You can now define "icon = { icon = text = }" in event options, and define a custom icon (and the tooltip for it) there.
* Portrait category is now hidden in the empire creation GUI for graphical cultures and species classes that don't contain any portraits.
* Added new has_city_graphics attribute to graphical cultures for hiding city GUI element in the empire creation menu.
* Global event targets now work on every scope type, instead of quietly failing on a bunch (e.g. Megastructures, Federations) as previously.
* You can now use [X.GetName] and so on in sector, megastructure and deposit scope.
* Variables are no longer cleared if set to 0, use the clear_variable effect instead.
* Added is_variable_set trigger to check whether a variable has been set (to avoid missing variable errors).
* Add support for display_espionage_operations to scriptable map modes.
* Fixed various irregularities with scope change tooltips e.g. "from" being shown on triggers, or the scope change being hidden on effects sometimes.
* scripted_trigger = { PARAM = whatever } will now check if the specified scripted trigger evaluates to TRUE as one would expect, not to FALSE! (Modders take note - manual hacks to avoid this bug need to be reversed)
* Added trigger can_buy_on_market = resource, to check if the current country is able to buy the specified resource on the market they have access to.
* Added add_custodian_term_days effect for increasing or decreasing the remaining term of the current Galactic Custodian.
* Added set_custodian_term_days for setting the remaining time of the current Galactic Custodian's term limit, or setting it to be permanent.
* Added on_federation_new_leader.
* Added support for nested OR/AND in the outer scope of government restrictions scripts. This allows one to e.g. require either an authority or a civic.
* Added is_defensive_army trigger.
* Added pass_resolution_no_cooldown effect to pass a resolution without triggering a cooldown for the relevant category.
* Added leader_events.
* Added trigger is_idle for leaders.
* Introduce add_spy_network_level effect.
* Split trigger_docs into its own log file and added information on scope changes and localisation commands there
* Added new galactic_community_patrol_military_minister_module AI module, that will patrol all capitals of Galactic Community members when not at war.
* Events can now have triggered sounds like pictures: show_sound = { sound = X trigger = { } }
* button_effects now take their scope from the context they are in, so long as that scope is one of the following (with player country as fallback): planet, ship, fleet, system, ambient object, megastructure, espionage operation, arc site or first contact.
* Added ground_combat_attacker/defender script lists.
* Added exclude = {} trigger in pop_percentage and fixed that trigger's scopes (specifically prev).
* Added check_galaxy_setup_value trigger counterpart to get_galaxy_setup_value effect.
* add_resource, add_modifier and resource_stockpile_compare now accept mult = variable.
* Added effect round_variable.
* Added effect export_resource_value_to_variable (exports current stockpile of X resource to a specified variable).
* Added on_save_game_load on_action.
* Added on_ground_combat_started on_action.
* Added growing/assembling/declining_species scope changes.
* leader skill level modifiers are now calculated in leader scope (so e.g. a leader trait affecting max skill level will now work).
* Fixed a bug where setting the adjective in create_country would also set the ruler's name.
* Added on_actions on_leader_fired, on_leader_assigned and on_leader_unassigned; kill_leader effect can now have a "fire = yes" parameter to use this on_action instead.
* Added is_mobile trigger for fleets.
* Renamed effect "surveyed = { set_surveyed = yes/no }" to "set_surveyed = { surveyed = yes/no }", because that just made no sense. Also made it work in system scope.
* Added defines for relative encryption levels and bonuses.
* Added effect "win = yes". I'm sure no one will misuse this.
* Added on_subject_integrated on_action.
* Added num_organic/artificial_pops_per_year triggers, which return the amount of organic/artificial pops you'd expect to get per year (i.e. ( monthly growth / required growth ) * 12 )).
* Scripted localization can now be used in Galactic Community greeting phrases.
* Added pass_targeted_resolution effect.
* Graphical modifier descriptions now support global event targets in scripted localization.
* Planet modifier descriptions now support scripted localization.
Post edited April 15, 2021 by gogtrial34987