Jump to content

Surrender scripts that do not wotk


Recommended Posts

I am not sure why, but som eof my scurrender1 script in my mod, do not fire, and there are no faults found in the editor amnd i have used them in my PDE mods without any problems.

I have 5 different ones when yugoslavia surrenders, 4 do not work (giving land to Germany, Italy, Bulgaria and Hungary) and 2 works (creating Montenegro and Croatia).

very strange, any ideas?

Ok one:

;Yugoslavia Surrenders (Germany and Italy creates puppet state Montenegro)

{

#NAME= Yugoslavia Surrenders (Germany and Italy creates puppet state Montenegro)

#POPUP= Germany and Italy creates puppet state Montenegro

#IMAGE=

#SOUND=

#FLAG= 1

#TYPE= 0

#AI= 0

#LEVEL= 0

#GV= 1[1,100]

#LINK= 0[0]

#COUNTRY_ID= 45

#TRANSFER_ID= 54

#SURRENDERED_TO= 1

#TRIGGER= 100

#MAP_POSITION= 113,46

#MAP_POSITION= 112,47

#MAP_POSITION= 111,46

#MAP_POSITION= 112,46

#MAP_POSITION= 113,45

#MAP_POSITION= 114,46

#MAP_POSITION= 115,46

#MAP_POSITION= 114,47

}

Faulty one:

;Yugoslavia Surrenders (Germany annexes Slovenia)

{

#NAME= Germany annexes Slovenia

#POPUP= Germany annexes Slovenia

#IMAGE=

#SOUND=

#FLAG= 1

#TYPE= 0

#AI= 0

#LEVEL= 0

#GV= 1[1,100]

#LINK= 0[0]

#COUNTRY_ID= 45

#TRANSFER_ID= 5

#SURRENDERED_TO= 1

#TRIGGER= 100

#MAP_POSITION= 107,38

#MAP_POSITION= 108,39

}

Link to comment
Share on other sites

Looks like it was an issue with the Croatian event swallowing up Belgrade and then as a result the subsequent events could not find the previously 'surrendered' capital for reference. This is a new problem as we needed to change the code a bit to resolve other issues and use the 'surrendered' capital for some checking.

If you list the Croatian event as the last event I suspect it will work as expected.

Hubert

Link to comment
Share on other sites

×
×
  • Create New...