Can someone look at this script... (Full Version)

All Forums >> [New Releases from Matrix Games] >> Strategic Command Series >> Strategic Command WWII War in Europe >> Scenario Design and Modding



Message


pcpilot -> Can someone look at this script... (12/26/2016 1:18:16 AM)

...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.




TheBattlefield -> RE: Can someone look at this script... (12/26/2016 9:29:00 AM)

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]




pcpilot -> RE: Can someone look at this script... (12/26/2016 4:51:11 PM)

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.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.609375