Using Conditions (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


vettim89 -> Using Conditions (7/11/2018 4:25:13 AM)

I can find very little documentation on using conditions. I will get to the point:

I am working on a scenario that is playable from three sides. All three sides are going after the same targets. The non-player sides will be AI controlled.

I want to add a condition to the scoring events so if the human player's units damage an enemy ship then points will be awarded but if one of the AI units damages a ship no points will be awarded.

This is a Norwegian Sea scenario with the RN, RNN (Norwegian), and the USN all having submarines in the area of interest. IF a Soviet CVHG gets hit by the player's weapons points should be scored. However, if the CVHG is hit by an AI controlled unit, no points should be scored.

The event trigger is Soviet CVHG damaged level 50%
The event action is add 200 points to the player's total

Is there a way to set a condition to have the console detect whose weapon did the damage?

Thanks as always for the help




michaelm75au -> RE: Using Conditions (7/11/2018 10:48:12 AM)

Not currently. Might be able to get UnitY() to point to the unit doing the damage. Only problem will be that the 'unit' might die before the Lua condition/action triggers.
Will look at possibility.




kevinkins -> RE: Using Conditions (7/30/2018 2:48:38 PM)

Interesting question. By setting up the scoring event for all three allied sides, the player will only see the points they deserve. The points awarded to the other two AI sides will be irrelevant from a victory POV i.e. I think victory thresholds are applied to the side that is being played. I will have to check that out.

Kevin




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.6875