muse458 Posted December 14, 2018 Share Posted December 14, 2018 Hi all, quick one, (I hope :) I have a mission where the user has to sink 3 cargo ships (all static objects) to complete the mission. As you can't have a "group" of static objects... how do I write a trigger that only when all three have been sunk the user receives a mission complete message etc. Thanks in advance for any help :) Link to comment Share on other sites More sharing options...
dark_wood Posted December 14, 2018 Share Posted December 14, 2018 You need to set an initial flag value (0), then increase it every time a static unit is destroyed. When trigger is equal 3 (all 3 units destroyed), show the success message, something like this: mission start / (no condition) / flag 1 set value 0 trigger once / unit 1 dead / increase flag 1 value with 1 trigger once / unit 2 dead / increase flag 1 value with 1 trigger once / unit 3 dead / increase flag 1 value with 1 trigger once / flag 1 equal 3 / message to coalition: "mission completed" Link to comment Share on other sites More sharing options...
muse458 Posted December 14, 2018 Author Share Posted December 14, 2018 Ok cool Darkwood thanks for your advice ill give it a go Link to comment Share on other sites More sharing options...
feefifofum Posted December 14, 2018 Share Posted December 14, 2018 Ot alternately, a single trigger. Though that is a great example of flags as counters. :thumbup: 1 ONCE (ships dead, NO EVENT) === UNIT DEAD (ship1) UNIT DEAD (ship2) UNIT DEAD (ship3) === MESSAGE TO COALITION ('You get a cookie!', 10) THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
dark_wood Posted December 14, 2018 Share Posted December 14, 2018 (edited) yeah, it's easier with feefifofum's method, i just assumed that you need to know the progress of the mission (you can show messages for each unit destroyed) :) Edited December 14, 2018 by dark_wood Link to comment Share on other sites More sharing options...
Recommended Posts