Replaced triggers with script.

This commit is contained in:
Steve 2015-11-28 14:35:10 +00:00
parent 4b537a3bee
commit 2a0db6dc8b
3 changed files with 53 additions and 64 deletions

View File

@ -9,7 +9,7 @@
{ {
"description" : "Check all Waypoints", "description" : "Check all Waypoints",
"targetName" : "Waypoint", "targetName" : "Waypoint",
"targetValue" : 5, "targetValue" : 3,
"targetType" : "TT_WAYPOINT" "targetType" : "TT_WAYPOINT"
}, },
{ {
@ -20,22 +20,6 @@
"active" : 0 "active" : 0
} }
], ],
"triggers" : [
{
"type" : "TRIGGER_WAYPOINT",
"targetName" : "Waypoint #5",
"targetValue" : "1",
"action" : "TA_ACTIVE_ENTITY",
"actionValue" : "Pandoran"
},
{
"type" : "TRIGGER_WAYPOINT",
"targetName" : "Waypoint #5",
"targetValue" : "1",
"action" : "TA_ACTIVE_OBJECTIVE",
"actionValue" : "1"
}
],
"player" : { "player" : {
"type" : "Firefly", "type" : "Firefly",
"side" : "SIDE_ALLIES", "side" : "SIDE_ALLIES",
@ -66,11 +50,21 @@
"entities" : [ "entities" : [
{ {
"type" : "ET_WAYPOINT", "type" : "ET_WAYPOINT",
"number" : 5, "number" : 3,
"x" : 25, "x" : 25,
"y" : 25, "y" : 25,
"scatter" : 7500 "scatter" : 7500
} }
],
"script" : [
{
"function" : "Waypoint #3",
"lines" : [
"ACTIVATE_ENTITY Pandoran",
"ACTIVATE_OBJECTIVE 1",
"MSG_BOX 6 Alba Control;Patrol A-82, you have hostiles incoming. Identified as 3 Mitikas fighters; Jackals, possibly Pandoran. Engage, but exercise extreme caution."
]
}
] ]
} }

View File

@ -23,36 +23,6 @@
"active" : 0 "active" : 0
} }
], ],
"triggers" : [
{
"type" : "TRIGGER_LOSSES",
"targetName" : "ALLIES_KILLED",
"targetValue" : 100,
"action" : "TA_ACTIVE_OBJECTIVE",
"actionValue" : "1"
},
{
"type" : "TRIGGER_LOSSES",
"targetName" : "ALLIES_KILLED",
"targetValue" : 100,
"action" : "TA_RETREAT_ALLIES",
"actionValue" : "1"
},
{
"type" : "TRIGGER_LOSSES",
"targetName" : "ALLIES_KILLED",
"targetValue" : 100,
"action" : "TA_ACTIVE_ENTITY",
"actionValue" : "Extraction Point"
},
{
"type" : "TRIGGER_LOSSES",
"targetName" : "ALLIES_KILLED",
"targetValue" : 100,
"action" : "TA_ACTIVE_ENTITY",
"actionValue" : "ATAFs"
}
],
"player" : { "player" : {
"type" : "TAF", "type" : "TAF",
"side" : "SIDE_ALLIES", "side" : "SIDE_ALLIES",
@ -106,6 +76,34 @@
"y" : 25, "y" : 25,
"active" : 0 "active" : 0
} }
],
"script" : [
{
"function" : "ALLIES_KILLED 70",
"lines" : [
"MSG_BOX 4 UNF Pilot #1;We're getting our arses kicked here! Any chance of any backup?!"
]
},
{
"function" : "ALLIES_KILLED 80",
"lines" : [
"MSG_BOX 4 UNF Pilot #2;The White Knights are here! Finally!",
"ACTIVATE_ENTITY ATAFs"
]
},
{
"function" : "ALLIES_KILLED 90",
"lines" : [
"MSG_BOX 6 UNF Talos;All fighters, Captain Bailey has signalled the retreat. Coyote is lost. Fall back to the extraction point.",
"MSG_BOX 4 Cdr de Winter;You all heard the Captain - fall back, we'll cover the retreat.",
"WAIT 8",
"MSG_BOX 4 Lt Cdr Dodds;Estelle, we've got this. We can take them.",
"MSG_BOX 4 Cdr de Winter;We're taking too many losses, Dodds. Fall back now, that's an order.",
"WAIT 8",
"ACTIVATE_ENTITY Extraction Point",
"RETREAT_ALLIES"
]
}
] ]
} }

View File

@ -105,27 +105,24 @@
"y" : 25 "y" : 25
} }
], ],
"triggers" : [ "script" : [
{ {
"type" : "TRIGGER_TIME", "function" : "TIME 60",
"targetName" : "TIME", "lines" : [
"targetValue" : 60, "ACTIVATE_ENTITY_GROUP Pandoran-1"
"action" : "TA_ACTIVE_ENTITY_GROUP", ]
"actionValue" : "Pandoran-1"
}, },
{ {
"type" : "TRIGGER_TIME", "function" : "TIME 120",
"targetName" : "TIME", "lines" : [
"targetValue" : 120, "ACTIVATE_ENTITY_GROUP Pandoran-2"
"action" : "TA_ACTIVE_ENTITY_GROUP", ]
"actionValue" : "Pandoran-2"
}, },
{ {
"type" : "TRIGGER_TIME", "function" : "TIME 180",
"targetName" : "TIME", "lines" : [
"targetValue" : 180, "ACTIVATE_ENTITY_GROUP Pandoran-3"
"action" : "TA_ACTIVE_ENTITY_GROUP", ]
"actionValue" : "Pandoran-3"
} }
] ]
} }