Difference between revisions of "EffectsGroup Priority Standard Values"

From FreeOrionWiki
Jump to: navigation, search
(EffectsGroup Priority reference with details for Population Effects)
 
(updated priorities to reflect June 2018 fixes PR)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
The order of execution of EffectsGroups is determined primarily by their specified Priority, and secondarily by their [[FOCS_Scripting_Details#Effect_Evaluation_.26_Application_Ordering | cause/source]].  A number of standard reference Priority values are specified in [https://github.com/freeorion/freeorion/blob/master/default/scripting/common/priorities.macros default\scripting\common\priorities.macros]
 
The order of execution of EffectsGroups is determined primarily by their specified Priority, and secondarily by their [[FOCS_Scripting_Details#Effect_Evaluation_.26_Application_Ordering | cause/source]].  A number of standard reference Priority values are specified in [https://github.com/freeorion/freeorion/blob/master/default/scripting/common/priorities.macros default\scripting\common\priorities.macros]
  
Probably the largest and most complex set of interrelated EffectsGroups is that for various Population Effects, whose relative priority is critical to their proper operation.  For reference, the current (as of this writing) order of their application is summarized below.
+
Probably the largest and most complex set of interrelated EffectsGroups is that for various Population Effects, whose relative priority is critical to their proper operation.  For reference, the current (as of this writing) order of their application is summarized below. Except as noted, the effects are upon the TargetPopulation meter
  
EARLY_TARGET_POPULATION_PRIORITY
+
<u>Used terms/keys</u>
Growth Special/Focus   
+
  +1   adds one Population
Temporal_Anomaly_Special  
+
  +1HS effect adds the HabitableSize of the planet to the Population
Gro_Cyborg    
+
  +2HS effect adds twice the HabitableSize of the planet to the Population
Con_Orbital_Hab 
+
  ..
Gro_Planet_Ecol 
+
  *0.75 multiplies the current Population value with 0.75
Gro_Subter_Hab  
+
Gro_Symbiotic_Bio  
+
Gro_Xeno_Genetics  
+
Gro_Xeno_Hybrids  
+
  
EARLY_TARGET_POPULATION_SCALING_PRIORITY
+
<u>TARGET_POPULATION_BEFORE_SCALING_PRIORITY</u>
Good_Population bonus
+
+3HS/+0HS/-2HS/-4HS  Planet environment = Good/Adequate/Poor/Hostile
 +
+2HS  Gro_Cyborg (hostile) 
 +
+1HS  Gro_Symbiotic_Bio 
 +
+2HS/+1HS Gro_Xeno_Genetics (poor,adequate/hostile)
 +
+1HS/+2HS Gro_Xeno_Hybrids (poor/hostile)
  
EARLY_TARGET_POPULATION_OVERRIDE_PRIORITY
+
<u>TARGET_POPULATION_SCALING_PRIORITY</u>
Planet environment = Uninhabitable
+
*0.5  Gaseous Population malus
 +
*0.75 Bad Population malus
 +
*1.25 Good_Population bonus
  
EARLY_POPULATION_PRIORITY
+
<u>TARGET_POPULATION_AFTER_SCALING_PRIORITY</u>
Phototrophic_Bonus
+
-1HS  HyperDam
 +
+3HS  Gaia
 +
+1HS  Growth Special/Focus   
 +
-5HS  Temporal_Anomaly_Special
 +
-1HS  Tidal Lock Special
 +
+1    WorldTree Special
 +
-4HS  Dimensional Rift
 +
-2HS/-1HS  Banforo Blue/White star malus
 +
-4HS  Bioterror Focus
 +
+2HS  Homeworld planet bonus
 +
+1HS  Homeworld Growth Focus
 +
+3HS  Self Sustaining
 +
+2HS  Con_Ndim_Strc
 +
+1HS  Con_Orbital_Hab 
 +
+1    Gro_Planet_Ecol (good,adequate) 
 +
+1HS  Gro_Subter_Hab
  
EARLY_PRIORITY
+
<u>TARGET_POPULATION_LAST_BEFORE_OVERRIDE_PRIORITY</u>
Planet environment = Hostile, Poor, Good
+
+3HS/+1.5HS/-1HS/-10HS  Phototrophic_Bonus (Blue/White/Red,Neutron/Blackhole,NoStar)
 +
Xenophobic penalty
  
DEFAULT_PRIORITY
+
<u>TARGET_POPULATION_OVERRIDE_PRIORITY</u>
Planet environment = Adequate
+
Planet environment = Uninhabitable
Gaseous_Bonus
+
Bad_Population
+
Lifecycle_Manip_Population_Effects
+
  
LATE_PRIORITY
+
<u>EARLY_FIRST_NATURAL_POPULATION_PRIORITY</u>
Eccentric_Orbit_Special
+
Incremental Growth/Decay of Current Population towards (initial) Target Population
  
VERY_LATE_PRIORITY
+
<u>DEFAULT_PRIORITY</u>
Homeworld_Bonus_Population
+
???  Lifecycle_Manip_Population_Effects
Self_Sustaining_Bonus
+
Homeworld_Growth_Focus_Boost
+

Latest revision as of 22:11, 19 November 2018

The order of execution of EffectsGroups is determined primarily by their specified Priority, and secondarily by their cause/source. A number of standard reference Priority values are specified in default\scripting\common\priorities.macros

Probably the largest and most complex set of interrelated EffectsGroups is that for various Population Effects, whose relative priority is critical to their proper operation. For reference, the current (as of this writing) order of their application is summarized below. Except as noted, the effects are upon the TargetPopulation meter

Used terms/keys

+1   adds one Population
+1HS effect adds the HabitableSize of the planet to the Population
+2HS effect adds twice the HabitableSize of the planet to the Population
..
*0.75 multiplies the current Population value with 0.75

TARGET_POPULATION_BEFORE_SCALING_PRIORITY

+3HS/+0HS/-2HS/-4HS  Planet environment = Good/Adequate/Poor/Hostile
+2HS  Gro_Cyborg (hostile)   
+1HS  Gro_Symbiotic_Bio  
+2HS/+1HS Gro_Xeno_Genetics (poor,adequate/hostile) 
+1HS/+2HS Gro_Xeno_Hybrids (poor/hostile) 

TARGET_POPULATION_SCALING_PRIORITY

*0.5  Gaseous Population malus
*0.75 Bad Population malus
*1.25 Good_Population	bonus

TARGET_POPULATION_AFTER_SCALING_PRIORITY

-1HS  HyperDam
+3HS  Gaia
+1HS  Growth Special/Focus    
-5HS  Temporal_Anomaly_Special
-1HS  Tidal Lock Special
+1    WorldTree Special
-4HS  Dimensional Rift
-2HS/-1HS  Banforo Blue/White star malus
-4HS  Bioterror Focus
+2HS  Homeworld planet bonus
+1HS  Homeworld Growth Focus
+3HS  Self Sustaining
+2HS  Con_Ndim_Strc
+1HS  Con_Orbital_Hab  
+1    Gro_Planet_Ecol (good,adequate)  
+1HS  Gro_Subter_Hab

TARGET_POPULATION_LAST_BEFORE_OVERRIDE_PRIORITY

+3HS/+1.5HS/-1HS/-10HS  Phototrophic_Bonus (Blue/White/Red,Neutron/Blackhole,NoStar)
Xenophobic penalty

TARGET_POPULATION_OVERRIDE_PRIORITY

Planet environment = Uninhabitable

EARLY_FIRST_NATURAL_POPULATION_PRIORITY

Incremental Growth/Decay of Current Population towards (initial) Target Population

DEFAULT_PRIORITY

???  Lifecycle_Manip_Population_Effects