• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

razorbird789

Major
83 Badges
Sep 15, 2009
696
2
  • Arsenal of Democracy
  • Crusader Kings II
  • Victoria: Revolutions
  • Darkest Hour
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris: Lithoids
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Victoria 3 Sign Up
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Parklife
  • Surviving Mars
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Stellaris: Federations
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: La Resistance
  • Stellaris: Apocalypse
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Hearts of Iron IV: Death or Dishonor
  • Victoria 2
  • Cities: Skylines - Green Cities
  • 500k Club
  • Battle for Bosporus
I'm looking at creating a small mod which adds a decision for some nations to become the leader of one of the three major alliances if the leader and all members are destroyed/annexed/not in alliance. I checked the modding documentation but could only find a way for it to check how many vp are in each alliance and not if they have members or not, i could use this method but it would most likely lead to a nation like Nationalist spain ending up at war with the allies and comintern because they joined just before the Germans were annexed. I was wondering if there is a better check i could use because it would slow down the game if i made the decision to check if any potential members were alive (Axis - Germany,Italy,Hungary,Romania,Bulgaria,Croatia,Japan,Manchuria,Serbia etc) and to see if there are VP in the alliance....
 
that would be the following line then?

exists = country

i suppose trial and error would be the best way of testing the triggers although i'm going to ban the AI from using the decision until i make it country specific. (i'll release an alpha with the generic one in for each nation :)
 
yeah i got it from there but i'm not sure how to say, "if Germany isn't in the axis then this happens" because that line checks for Germany being in the axis so it says this "Is Germany in the Axis - Yes"

EDIT: i've made the decision but it doesn't appear at all, i'm playing as Italy so it should appear with a red cross on it..

event = {
id = 9000040
random = no
persistent = yes
TAG = { AFG ALB ALG ANG ARA ARG ARM AST AUS AZB BEL BEN BLR BOL BOS BRA BRU BUL BUR CAL CAM CAN CGX CHC CHI CHL CMB COL CON COS CRO CSA CSX CUB CXB CYN CYP CZE DDR DEN DFR EAF ECU EGY ENG EQA EST ETH EUS FIN FLA FRA GAB GEO GLD GRE GUA GUI GUY HOL HON HUN ICL IDC IND INO IRE IRQ ISR ITA JAP JOR KAZ KOR KUR KYG LAO LAT LBY LEB LIT LUX MAD MAL MAN MEN MEX MLY MON MOR MOZ MTN NAM NIC NIG NOR NZL OMN OTT PAK PAL PAN PAR PER PHI POL POR PRI PRK PRU QUE RHO ROM RSI RUS SAF SAL SAR SAU SCA SCH SCO SER SIA SIB SIE SIK SLO SLV SOM SOV SPA SPR SUD SWE SYR TAJ TAN TEX TRA TRK TUN TUR UKR URU USA UZB VEN VIE WLL YEM YUG U01 U02 U03 U04 U08 U09 U10 U11 U12 U13 U14 U15 U16 U17 U18 U19 U20 U21 U22 U26 U27 U28 U29 U30 U31 U32 U33 U34 U35 U40 U41 U42 U43 U44 U45 U46 U47 U48 U49 U50 U51 U52 U53 U54 U55 U56 U57 U58 U59 U67 UTC UER UPE U70 U71 U72 U73 U74 U75 U76 U77 U78 U79 U80 U81 U82 U83 U84 U85 U86 U87 U88 U89 U90 U91 U92 U93 U94 U95 U96 U97 U98 U99 }

decision = { government = facist }

trigger = {
axis = 0
AND = {
ideology = nazi

OR = { ideology = facist }

}


}

name = "Taking up the Flag"
desc = "It's time to represent the Axis alliance"



the action is done and there are no errors when it loads.....
 
Last edited:
it still doesn't show up as either italy or argentina (nat. soc both of them) i even made the decision=(money= 10) to see if it did and it never appeared, i also copied it into the already existent 'generic events' file but it said about a double ID use so it definitely knows it's there. what could be the issue, I'll repost it with the whole event, the GFX aren't done yet so it's showing infrastructures instead....

event = {
id = 9000040
random = no
persistent = yes
TAG = { all nation tags are as above }

decision = { government = facist, notfacist }

trigger = {
axis = 0
AND = {
ideology = nazi

NOT = { participant = 2}

}


}

name = "Taking up the Flag"
desc = "It's time to represent the Axis alliance"
style = 2
picture = "invest_infrastructures"
decision_picture = "decision_invest_infrastructures"

date = { day = 1 month = january year = 1914 }
offset = 120
deathdate = { day = 30 month = december year = 1963 }

action = {
name = "Go for it"

command = { type = alliance where = 1 }
command = { type = alliance_leader where = 1}

}

}
 
copied it into the already existent 'generic events' file but it said about a double ID use so it definitely knows it's there.
If I understand this correctly, when you put it into the generic events file, it says the ID is duplicate? That happens wherever you put it, unless you put it in a file not loaded (for example a new event file which you didn't add to events.txt or 1914_events.txt).
 
, unless you put it in a file not loaded (for example a new event file which you didn't add to events.txt or 1914_events.txt).

oops i forgot the events.text :). although the Id is fine now i can't figure out what's wrong with the trigger, it says that there's a problem with

name = "Taking up the Flag"

saying it's not a valid trigger, i checked the '}' and there are enough so i don't know what is wrong, this is my newer one




decision = { government = facist }

decision_trigger = { }

trigger = { axis = 0
AND = { ideology = nazi *}




NOT = { participant = 2}
}
 
here it is

event = {
id = 9111111
random = no
persistent = yes
TAG = { AFG ALB ALG ANG ARA ARG ARM AST AUS AZB BEL BEN BLR BOL BOS BRA BRU BUL BUR CAL CAM CAN CGX CHC CHI CHL CMB COL CON COS CRO CSA CSX CUB CXB CYN CYP CZE DDR DEN DFR EAF ECU EGY ENG EQA EST ETH EUS FIN FLA FRA GAB GEO GER GLD GRE GUA GUI GUY HOL HON HUN ICL IDC IND INO IRE IRQ ISR ITA JAP JOR KAZ KOR KUR KYG LAO LAT LBY LEB LIT LUX MAD MAL MAN MEN MEX MLY MON MOR MOZ MTN NAM NIC NIG NOR NZL OMN OTT PAK PAL PAN PAR PER PHI POL POR PRI PRK PRU QUE RHO ROM RSI RUS SAF SAL SAR SAU SCA SCH SCO SER SIA SIB SIE SIK SLO SLV SOM SOV SPA SPR SUD SWE SYR TAJ TAN TEX TRA TRK TUN TUR UKR URU USA UZB VEN VIE WLL YEM YUG U01 U02 U03 U04 U08 U09 U10 U11 U12 U13 U14 U15 U16 U17 U18 U19 U20 U21 U22 U26 U27 U28 U29 U30 U31 U32 U33 U34 U35 U40 U41 U42 U43 U44 U45 U46 U47 U48 U49 U50 U51 U52 U53 U54 U55 U56 U57 U58 U59 U67 UTC UER UPE U70 U71 U72 U73 U74 U75 U76 U77 U78 U79 U80 U81 U82 U83 U84 U85 U86 U87 U88 U89 U90 U91 U92 U93 U94 U95 U96 U97 U98 U99 }

decision = { government = facist }

decision_trigger = { }

trigger = { axis = 0
AND = { ideology = nazi }

NOT = { participant = 2}

}




name = "Taking up the Flag"
desc = "It's time to represent the Axis alliance"
style = 2
picture = "invest_infrastructures"
decision_picture = "decision_invest_infrastructures"

date = { day = 1 month = january year = 1914 }
offset = 120
deathdate = { day = 30 month = december year = 1963 }

action = {
name = "Go for it"

command = { type = alliance where = 1 }
command = { type = alliance_leader where = 1}

}

}
 
testing in progress

congratulations on your first post btw


EDIT: it worked thanks, only it doesn't have my intended effect, it only allies my with Germany, i meant it to make the country the leader of the axis after all the members had died, help would be appreciated on that one but i'll try to figure it out now. Thanks for your help _AC_ and Arcangelus
 
Last edited:
Try making a coup to Germany first (that will leave axis empty), then use the cheat "freedom" to make yourself fascist or nazi.
 
i'll try that (claim, acceptall, demand) but i didn't want the event to be able to be used until an alliance (in this case the axis) is empty.

EDIT: it worked, i cheat annexed Germany and used the event to become the leader of the axis but i think it needs another check, it didn't seem to take into account the "axis = 0" check which means the axis can't have any victory points.....
 
Actually, and according to the "event commands.txt", axis = 0 means "axis holds at least 0 vp". And the current syntax allow puppets to be leader of the axis. Try with this:
decision = { government = fascist
NOT = { ispuppet = yes }
NOT = { axis = 1 } }

decision_trigger = { }

trigger = {
NOT = { axis = 1 }
ideology = nazi
NOT = { ispuppet = yes }
NOT = { participant = 2 } } }
This have the side-effect of trigger if there is someone remaining in the axis without VP (Like a (ex)puppet in Africa, someone prior to annex or a country that lose them earlier).
 
Same as above with an "ai = no" in the trigger? Work for me (The decision appears when axis doesn't have VP and disappears when selected. IA doesn't use it).
But then, the trigger is a little useless... (As far as I know, in a decision the trigger section is only used by the IA)