snwboardn Posted July 6, 2011 Posted July 6, 2011 So I put an event in my mission that I thought would activate a group upon a base being captured... But instead it broke my mission so I couldn't even load it. The trigger I set was as follows Trigger Conditions Type: Once Type: Coalition has airdome Name: Base captured Coalition: blue Event: On Base Captured Airdrome: Red base Action: Deactivate static unit Activate unit in their place *here is the code from the unzipped .miz file* events = is the start of line 10 events = { base captured = { [2] = "if mission.trig.conditions[2]() then mission.trig.actions[2]() end", }, -- end of base captured }, -- end of eventsBut when I try to load the mission in the editor I get the error; [string "mission = ... "]:12 '}' expected (to close '{' at line 11) near 'captured'
snwboardn Posted July 6, 2011 Author Posted July 6, 2011 Luckily I took out everything between the {'s and was able to bring it back I think I misunderstood what the "Event" field under type and name was for.
Recommended Posts