Originally posted by nachinus
I´ve found some problems with the start of SCW and end SCW events that give 1 vp to each prov and then restore the original vps after the war.
The events look perfectly ok, but i was playing a game with SPR, won the war, and after the war ended and the 2nd event happened, i had some provs with negative vps!!: Cordoba, Pamplona, Zaragoza, Salamaca and Granada.
I don´t know what´s the problem here, i took a fast look to the events and i didn´t see any problem, but i could have missed something.
Maybe the vp commands don´t work properly?
yes, i have seen that, sometimes, the first event (the one that gives all provinces 1VP) doesn't give 1 vp to Cordoba, Pamplona, Zaragoza, Salamanca and Granada (in my games it is that list too

), I REALLY don't know why, because they are in the code, but, when the war is over, the other event triggers and takes those 1 vp from all provinces... so you end with -1.
here is the code:
##############################################
# Start of the civil war
# by Generalisimo
##############################################
event = {
id = 802014
random = no
country = SPR
#
name = "The Civil war starts!."
desc = "Insoburdinated forces under the command of Francisco Franco have started a civil war in our great country."
style = 0
action_a = {
name = "Ok."
# First took all the points
command = { type = province_keypoints which = 959 value = -1 } # Vigo
command = { type = province_keypoints which = 957 value = -1 } # Burgos
command = { type = province_keypoints which = 966 value = -1 } # Valladolid
command = { type = province_keypoints which = 969 value = -2 } # Barcelona
command = { type = province_keypoints which = 972 value = -3 } # Madrid
command = { type = province_keypoints which = 981 value = -2 } # Valencia
command = { type = province_keypoints which = 988 value = -1 } # Sevilla
command = { type = province_keypoints which = 990 value = -1 } # Malaga
# Now add 1 to every city
command = { type = province_keypoints which = 959 value = 1 } # Vigo
command = { type = province_keypoints which = 957 value = 1 } # Burgos
command = { type = province_keypoints which = 966 value = 1 } # Valladolid
command = { type = province_keypoints which = 969 value = 1 } # Barcelona
command = { type = province_keypoints which = 972 value = 1 } # Madrid
command = { type = province_keypoints which = 981 value = 1 } # Valencia
command = { type = province_keypoints which = 988 value = 1 } # Sevilla
command = { type = province_keypoints which = 990 value = 1 } # Malaga
command = { type = province_keypoints which = 952 value = 1 } # Huesca
command = { type = province_keypoints which = 954 value = 1 } # Bilbao
command = { type = province_keypoints which = 953 value = 1 } # Pamplona
command = { type = province_keypoints which = 967 value = 1 } # zaragoza
command = { type = province_keypoints which = 971 value = 1 } # Tortosa
command = { type = province_keypoints which = 970 value = 1 } # Lleida
command = { type = province_keypoints which = 980 value = 1 } # Cuenca
command = { type = province_keypoints which = 996 value = 1 } # Cartagena
command = { type = province_keypoints which = 983 value = 1 } # Albacete
command = { type = province_keypoints which = 995 value = 1 } # Almeria
command = { type = province_keypoints which = 991 value = 1 } # Granada
command = { type = province_keypoints which = 987 value = 1 } # Cordoba
command = { type = province_keypoints which = 977 value = 1 } # Badajoz
command = { type = province_keypoints which = 978 value = 1 } # Salamanca
command = { type = province_keypoints which = 956 value = 1 } # Gijon
}
}
i really don't have a clue...
