User avatar
jastaV
AGEod Guard of Honor
Posts: 1159
Joined: Mon Apr 14, 2008 9:22 am

Unit number comparison: possible?

Thu Oct 23, 2008 12:31 pm

I'm searching to edit a condition to compare the number or units from one faction agaist the opponent.

[color="Red"]CountUnits|Area $Theater_Germany|1|$C13|$Regular|>F13[/color]

Condition true when number of Regular Coalition Faction, (C13) units in Germany Theater is > the number of regular French side, (F13) Units in the same area.

Will that work?

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Thu Oct 23, 2008 12:56 pm

Not like this. You have to trick the system...

Event A1 triggers if French have at least 10 units, raising by one the Max Nb of occurences of Event C (it starts at 0).
Event A2 triggers if French have at least 20 units, raising by one the Max Nb of occurences of Event C (it starts at 0).
Event A3 triggers if French have at least 35 units, raising by one the Max Nb of occurences of Event C (it starts at 0).
Event A4 triggers if French have at least 50 units, raising by one the Max Nb of occurences of Event C (it starts at 0).

Event B1 triggers if Coalition have at least 10 units, lowering by one the Max Nb of occurences of Event C (it starts at 0).
Event B2 triggers if Coalition have at least 20 units, lowering by one the Max Nb of occurences of Event C (it starts at 0).
Event B3 triggers if Coalition have at least 35 units, lowering by one the Max Nb of occurences of Event C (it starts at 0).
Event B4 triggers if Coalition have at least 50 units, lowering by one the Max Nb of occurences of Event C (it starts at 0).

Event C, if it fires, means that French have more troops in the area. Do your stuff in C.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
jastaV
AGEod Guard of Honor
Posts: 1159
Joined: Mon Apr 14, 2008 9:22 am

Thu Oct 23, 2008 3:15 pm

So a big sequence of events to have it working!
I already did something like that to level up factions NM during the armistice.

I have to evaluate if the job could be worth: may be there are simpler ways to manage FE points. :neener:

Thanks for the "Big" answer! :)

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 13 guests