View Full Version : Could some one explain to me events, triggers and conditions
Aragorn
01-31-2003, 02:23 AM
Could some one explain to me events, triggers and conditions please?
Say i want to create a mission with multiple routes. i.e the russians in their T80s come dowan a roads, meets the enemy. What i want them to do it decide whethere they are going to fight or take another route until their main force comes along. The same goes for the americans
also how do i set up mulitple routes? for example russians arrive at checkpoint one, how doe i make tha unit turn off the road instead of carring on? I hope u follow what i mean.
Also how do i set triggers, events and conditions in relation to the above.
thanks best wishes
Ssnake
01-31-2003, 12:27 PM
Right-click on the checkpoint that ends the arrival route. Select "new route". Do this several times, so that you have as many alternatives branching out from that checkpoint as you need.
Right-click on each route, and selecte "Embark, if...". This will open a dialog box that will let you specify the conditions under which the unit will take this route (e.g. "enemy AFVs in region 1 > 5 AND Unit 2/A has reached checkpoint 23")
Events are bi-state variables. They return "False" as long as the condition in them has not been true. From the moment that the condition in it does become true, a flag will be set to indicate that the Event has taken place at some point in the past.
Triggers are "Go codes" that allow the human player to trigger coordinated behavior, e.g. crossing a phase line. You would want to cross a phase line only when the majority of your force is ready, so it may be advisable that those units with a head start wait for the slower units. It's complicated to program that into global events and conditions, but a human player can make this decision easily. So, all units could have a route with the embark condition "Embark, if... 'Trigger 1 is set', and as long as this trigger has not been activated by the human player, they will sit around at the last checkpoint.
Conditions are bi-state variables that deliver information about "what is" - unlike Events which tell you about the past.
As far as the activation of triggers is concerned - the manual tells it all (like it does about Events, Conditions, and Triggers (there is a chapter reserved for it))
Aragorn
01-31-2003, 03:10 PM
hi thanks for the information I did try what u say on the routes but how do I know they wil take them? I mean for example i have tank going down a road it stops a cross roads waits 10 seconds and then turns left to go down another road even though i have set it to carrry striaght down the road it orignially was set to do if it saw no enemies.
sorry I find it a bit confusing and maths is not my main subject. eeeh
:D :calim:
Ssnake
01-31-2003, 05:27 PM
Open other scenarios, and have a look at how previous designers did it. This is probably more instructive.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.