Can someone look at this script...

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
User avatar
pcpilot
Posts: 77
Joined: Fri Jan 25, 2008 11:17 am
Location: Gods country, USA

Can someone look at this script...

Post 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.
User avatar
TheBattlefield
Posts: 507
Joined: Sat Jun 11, 2016 10:09 am

RE: Can someone look at this script...

Post 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]
Elite Forces - SC3 Mod
tm.asp?m=4491689
User avatar
pcpilot
Posts: 77
Joined: Fri Jan 25, 2008 11:17 am
Location: Gods country, USA

RE: Can someone look at this script...

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

Return to “Scenario Design and Modding”