Page 1 of 1

Can someone look at this script...

Posted: Sun Dec 25, 2016 11:18 pm
by pcpilot
...and tell me whats wrong with it. Its a war entry script I used in SC2 modded to hopefully work with SC3.
However, the editor tells me there are errors. I get a message that says, "Error, war entry event line 222.
#Flag is not a valid number"

{
#NAME= Italy joins war with Axis
#POPUP= Italy joins Axis in the war with Britain
#IMAGE= italy1.bmp
#SOUND= victory_march.wav
#FLAG= [1]
#TYPE= [2]
#AI= [0]
#LEVEL= [0]
#GV= 1[1,100]
#LINK= 0[0]
#TRIGGER= [100]
#COUNTRY_ID= 59
#ALIGNMENT= [1]
#DATE= 1940/06/10
;1st Line - Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
}

; Italy Joins The Axis:
; Alternate event (10% chance)

{
#NAME= Italy Joins The Axis (Prior to 1940)
#POPUP= Italy Declares War On Britain And France
#IMAGE=italy1.bmp
#SOUND= victory_march.wav
#FLAG= [1]
#TYPE= [1]
#AI= [0]
#LEVEL= [0]
#GV= 1[1,100]
#LINK= 0[0]
;Set Italian war entry
#TRIGGER= [10]
#COUNTRY_ID= 59
#ALIGNMENT= [1]
#DATE= 1939/09/10
;1st Line - Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
}

I have looked this thing to death and cant find whats wrong with it. Maybe some new eyes can. Thank you very much for your help.

RE: Can someone look at this script...

Posted: Mon Dec 26, 2016 7:29 am
by TheBattlefield
I would first try to delete the square brackets at #Flag; #Type; #AI; #Level; #Trigger and #Alignment. In my scripts there are no brackets at these positions...[8D]

RE: Can someone look at this script...

Posted: Mon Dec 26, 2016 2:51 pm
by pcpilot
I KNEW if someone else took a look they would find the problem. I must have stared at that script for hours yesterday trying to figure out what was wrong. The problem was the examples showed the brackets. Thank you TB, it works now. I hope the older bmp images and wav sounds will work in sc3.