Problem with #CONDITION_POSITION

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

Problem with #CONDITION_POSITION

Post by Kossatx »

Hi! I written this script with the intention if Axis doesn't control any of the four specified #CONDITION_POSITION, then the script is switched on. But if more than one #CONDITION_POSITION are included in the script they are supposed to be connected with the "OR" command, so this script will not run as I want. I ask you for any suggestion to build up this script [&:]

Code: Select all

;Trigger of the countdown for oil shortage in Germany
 {
 #NAME= DE 104 - Countdown for german oil reserve.
 #POPUP=
 #IMAGE=
 #SOUND=
 #FLAG= 1
 #TYPE= 1
 #AI= 0
 #LEVEL= 0
 #GV= 1[1,100]
 #LINK= 0[0]
 #COUNTRY_ID= 45
 #TRIGGER= 1
 #DISPLAY_ORDER= 0
 #DECISION= 104
 #MPP_UPDOWN= 0
 #MPP_TURNS= 0
 #MPP_TEXT=
 #NOTES=
 #NOTES_POSITION=
 #AI_RESPONSE= 100
 #AI_RESPONSE_POPUP= German oil reserves are critically low.
 #DATE= 1939/09/02
 #TEXT_RGB= 0,0,0
 #SHADOW_RGB= 0,0,0
 #ALIGNMENT_POSITION= 141,28 [1]
 #NATIONAL_MORALE_TRIGGER= 0 [0]
 #VARIABLE_CONDITION= 45 [1] [100] [0]
 #CONDITION_POSITION= 1,24 [0,0] [0,0] [2] [0]
 #CONDITION_POSITION= 191,44 [0,0] [0,0] [2] [0]
 #CONDITION_POSITION= 185,51 [0,0] [0,0] [2] [0]
 #CONDITION_POSITION= 191,58 [0,0] [0,0] [2] [0]
 }
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

RE: Problem with #CONDITION_POSITION

Post by Kossatx »

Maybe it would work with #ALIGNMENT_POSITION command... I'll try.
User avatar
BillRunacre
Posts: 6824
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Problem with #CONDITION_POSITION

Post by BillRunacre »

Yes, either use a string of (dummy) Decisions to trigger the event, or it will probably require a number of scripts using #ALIGNMENT_POSITION= where one is in Allied hands.

I'm afraid that I think either method will probably require multiple scripts.
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
Post Reply

Return to “Scenario Design and Modding”