mckee14 Posted November 25, 2008 Posted November 25, 2008 (edited) hi guys just wanted to ask 2 questions about triggerfunctions. english is not my native language, so even with the printed english manual i'm kinda lost about these: - when creating a new rule/trigger, i can set different rules (the middle part) for the trigger. are these rules AND or OR? so if i make the rule "unit in area" "unit=ONE" "area=Trigger" and (in the same trigger) the next rule is "unit in area" "unit=TWO" "area=Trigger", will the trigger happen when either ONE or TWO are inside the area, or have ONE AND TWO to be inside the area for this? - can someone explain me what to do with the "FLAG"-thingies? i just don't get it how the flags should work. maybe one small example would be nice.. thx and happy landings! Edited November 25, 2008 by mckee14 changed thread-symbol Democracy is choice, not freedom...
Raimir Posted November 25, 2008 Posted November 25, 2008 The rules (middle part) are connected by AND operator. From your example unit ONE AND TWO must be inside area. Usage of Flags you find by time when you create more complex missions as i suppose. Some clear examples are in GUI manual. LockOn SVK Squad bomber. "Flight sim is not about to know everything about aircraft, but to know which button must be pressed in crucial time." - dead virtual pilot
Weta43 Posted November 26, 2008 Posted November 26, 2008 (edited) Flags - lots of things, but among others : If you have several different conditions that you want to use to trigger the same relatively complex event/behaviour, have each of the conditions set the same flag, then have a single trigger conditional on the flag for the event/behaviour. or you can chose between a number of discrete possibilities - If you set 4 mission start random flags with 25% probability each will have that chance, but they might all happen at the same time... to avoid more than one occurring at the same time, set two mission start randoms - 50% chance of Flag 1 , 50% flag 2 Then add: Flag 1 = true & flag 2 = true, set flag 10 Flag 1 = true & flag 2 = false, set flag 20 Flag 1 = false & flag 2 = true, set flag 30 Flag 1 = false & flag 2 = false, set flag 40 Now you have 4 equally likely (25%) and exclusive (only one can happen at the same time) triggers that you can use for different scenarios etc 3 initial flags gives you 8, and so on. Edited November 26, 2008 by Weta43 1 Cheers.
Esac_mirmidon Posted November 26, 2008 Posted November 26, 2008 I dont understand anything at all XD ... Sorry, a more simple description, maybe for 5 years old kids? " You must think in russian.." [sIGPIC][/sIGPIC] Windows 7 Home Premium-Intel 2500K OC 4.6-SSD Samsung EVO 860- MSI GTX 1080 - 16G RAM - 1920x1080 27´ Hotas Rhino X-55-MFG Crosswind Rudder Pedals -Track IR 4
mckee14 Posted November 26, 2008 Author Posted November 26, 2008 thanks for the help guys. the flag-stuff seems so be more complex than i thougt :) Democracy is choice, not freedom...
Raimir Posted November 26, 2008 Posted November 26, 2008 It's nice example. And if you take into mind that you can activate one of 4 different groups instead of setting flags 10, 20, 30, 40. Then the scenario became completely different after new mission start thats the point. :smilewink: LockOn SVK Squad bomber. "Flight sim is not about to know everything about aircraft, but to know which button must be pressed in crucial time." - dead virtual pilot
Weta43 Posted November 27, 2008 Posted November 27, 2008 If you use the flags to activate the groups, rather than doing it directly, you can also use the flag state to trigger (with other conditions,) events specific to that group's scenario Cheers.
Recommended Posts