PDA

View Full Version : Changing effects


.Lockheart
03-08-2011, 10:01 AM
Hi all, well, playing with the policies.lua file i found how to change some effects like how many CO2 Biochar and Artificial Trees do absorb.

For examble, with Biochar, you have to do this:
1.Find this part of text:
card{
id=12116,
oldid=None,
title="Subsidise Biochar",
description="Incentivise people to turn biomass into charcoal and blend the product into soils.\010\010{good}Absorbs CO2 and improves food supply.{}",
role="env",
cancel_on_fail=false,
card_image="yellow_fossil_fuel_carbon_capture",
economic_cost=-1000,
type="policy",
requirements={
{type="g_attr",attr="year",pred=">=",value=2020},
{type="r_tag",tag="game_env_deck",pred=">",value=0,report=false}
},
default_effects={
{type="r_attr",attr="agriculture_gdppw_base",op="prod",value=1.03},
{type="emissions_dump", amount=-425}

Note: I changed the economic_cost line so it gives me money.

2. Change the number after amount=-425 in

{type="emissions_dump", amount=-425}

For any number you desire.
(I guess you can even do it emmit Co2 instead of absorb it if you change the variable to a possitive number)


Now here is my problem, I want to do the same with Sulphate Aerosols, to make their effect more contundent (So I can get degrees going down even faster)

Which line do i have to modify to accomplish my goal?

Lyrandon
03-08-2011, 10:04 AM
Just edit this card:

card{
id=10783,
oldid=None,
title="Aerosol Geoengineering in progress",
description="%(region)s continues to inject sulphate aerosols into the stratosphere.",
role="pwy",
cancel_on_fail=false,
card_image="default",
economic_cost=0,
type="impact_effect",
impact_type="None",
severity=5,
report_uniquely=true,
loud=false,
report_data={
schedule="default",
channel="viewpoints",
flavour="good",
severity=5,
logo="environment",
reporter_background="geo_engineering_aerosols",
card_splash=nil,
},
requirements={
{type="g_attr",attr="year",pred=">=",value=2020},
{type="r_tag",tag="game_aerosols_working",pred="==",value=1,report=false}
},
default_effects={

},
effects={
[0]={
{type="r_tag",tag="game_aerosols_working",op="abs",value=0},
{type="g_attr",attr="forcing_modifier",op="rel",value=-0.25}
}
},
sectors={
},
popularity_cost={ attitude_outlook=-20
},
pox_effects={
{pox="pox_tech",amount="single",scale=6}
}
}

Just add {type="emissions_dump", amount=-425} with any amount you want to effects.

.Lockheart
03-08-2011, 10:06 AM
But i dont want Aerosols to absorb CO2, i want them to make the Earth colder

Lyrandon
03-08-2011, 10:10 AM
But i dont want Aerosols to absorb CO2, i want them to make the Earth colder

Just mod this line:
{type="g_attr",attr="forcing_modifier",op="rel",value=-0.25}
and lower the value.

A clathrate eruption e.g. would have a value of +0.5.

.Lockheart
03-08-2011, 10:20 AM
Oh, true, tested it and it works. Thanks!!!