Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Using Conditions

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Using Conditions Page: [1]
Login
Message << Older Topic   Newer Topic >>
Using Conditions - 7/11/2018 4:25:13 AM   
vettim89


Posts: 3615
Joined: 7/14/2007
From: Toledo, Ohio
Status: offline
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

_____________________________

"We have met the enemy and they are ours" - Commodore O.H. Perry
Post #: 1
RE: Using Conditions - 7/11/2018 10:48:12 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
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.

_____________________________

Michael

(in reply to vettim89)
Post #: 2
RE: Using Conditions - 7/30/2018 2:48:38 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
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

(in reply to michaelm75au)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Using Conditions Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.283