czert2
Brigadier General
Posts: 427
Joined: Sun May 06, 2012 1:33 am

help needed - creating new national card.

Fri Jan 31, 2014 4:48 pm

i have certain problem - i recently conqured provnce from enemy, which was poor on supplies..so loal population satisfation is at 0% manng no production here, but i need resources from here for economy, i have plenty of food/gods to increase local population satisfaction over time (few years?) ...but i want to create card which at expanse of resources (money, food, goods) will give some boost to population so it start actualy to work (with some max like 40% pop happines).

User avatar
loki100
AGEod Guard of Honor
Posts: 2401
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Fri Jan 31, 2014 5:51 pm

not sure about how to create a new card, but you could put together an event that fires say every 3 months for a couple of years. The key bits are "ChangeLoyaltyFac" (ie alter population loyalty) and "ChangeResStock" - use this to charge the cost to your stockpiles, picking the goods you want to use.

You can model some of this on the event I've put into the generic event scripting file. but if you need more help than ask and happy to set out the basic parameters for you
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

czert2
Brigadier General
Posts: 427
Joined: Sun May 06, 2012 1:33 am

Sun Feb 02, 2014 12:01 am

interesing idea, i considered events too, but well that will need to doing event for every province/region (it is posible to affect whole region, not only certain prov?), and how to make it to fire it regulary and to dont create need to recreate it for every new repeat.
Creating card make it universal and repeatable without much editing.
But i think there is differece betweeen population loayality and population hapiness living in same prov. And im sure that loaylity can be affected by events/cards but abolutely no idea about happines.

User avatar
Jim-NC
Posts: 2981
Joined: Wed Feb 25, 2009 4:21 pm
Location: Near Region 209, North Carolina

Sun Feb 02, 2014 1:16 am

Scripts are much easier to write and implement (than create a card or a national decision). Kensai was working on creating a clickable "card" for making decisions. Scripts can be written by area or region (where an area is a group of regions). This is possible as each region of the map belongs to an area.

Happiness and loyalty are different. Happiness is increased by selling goods to the population, presence of military units, and by playing decisions (limit nobility privleges for example, or outlawing child labor). The best units to increase happiness/decrease militancy is MP units, the next best are cavalry (anything with a high police value). Happiness is lowered by taxes, and by certain events (for example, an economic crisis will lower happiness and increase militancy).

The game uses the word contentment to describe happiness.
Remember - The beatings will continue until morale improves.
[SIGPIC][/SIGPIC]

User avatar
loki100
AGEod Guard of Honor
Posts: 2401
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Sun Feb 02, 2014 2:03 pm

czert2 wrote:interesing idea, i considered events too, ..., and how to make it to fire it regulary and to dont create need to recreate it for every new repeat.
Creating card make it universal and repeatable without much editing.


for this use the code:

TurnIndex = 1;7;13;19


set those numbers to reflect the pattern you want, such as every 3 months and then the event will carry on.

You also need to set the number times above 1,

so the code:

evt_nam_whatever|[color="#FF0000"]20[/color]|1|NULL|NULL|$Null|NULL


means that one will fire a max of 20 times, at the intervals you have specified.

Put in an evaluation so it doesn't work when contentment is over a given level and it'll do the business for you.

There[color="#FF0000"] 20[/color] can be any number from 2 - 999, so pick to fit your circumstances
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

czert2
Brigadier General
Posts: 427
Joined: Sun May 06, 2012 1:33 am

Sun Feb 02, 2014 6:57 pm

loki100 wrote:
evt_nam_whatever|20|1|NULL|NULL|$Null|NULL



so first is number or max firing, and other numbers ?

User avatar
loki100
AGEod Guard of Honor
Posts: 2401
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Sun Feb 02, 2014 8:00 pm

second number is how it displays 1 - in the game log only, 2 - as a popup message.

The rest of the line tells it what text to use (null in this case), what picture to use (null in this case), province affectsd (but null does no harm) and I forget what the last one is.

Its all in the AGEWiki, which is my main source - that and adapting existing events for my purposes

I tend to code these events to the $CMN (common) faction, that way you'll see them in the game log regardless of who you are playing and that helps with debugs, checking it has happened and so on
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

Return to “Pride of Nations”

Who is online

Users browsing this forum: No registered users and 14 guests