Page 2 of 2

RE: Hows Everybody Like LUA?

Posted: Fri Jan 16, 2015 10:05 pm
by Coiler12
ORIGINAL: Volksjager_cn

I use the AssignUnitToMission extensively and see the AI has much nicer reactions based on the game situation. I like it.

I do however, would like to have a trigger request. Maybe belong to a different thread. Is it possible to have a trigger based on how many units destroyed/damaged? For example, I can based on the number of aircraft damaged and determine if the air superiority has been achieved.

Thanks

There's a way to do it in Lua itself (ask the people who know something about it), but you can use a points and non-player side setup to do such a system in the initial event editor (Side A destroys something from Side B, Side C scores a point, once Side C reaches a certain number of points, that triggers another event)

RE: Hows Everybody Like LUA?

Posted: Sat Jan 17, 2015 3:15 am
by nogravity
Ah, you are right, I forgot about the points and using that to determine the status. Thank you Coiler12.

RE: Hows Everybody Like LUA?

Posted: Sun Jan 18, 2015 1:08 am
by Mgellis

I'm very happy with this addition to Command. Thank you!

Pros...

Adds some really useful new options like being able to modify weather, change missions, add units, etc.

Am I correct that additional features/actions (e.g., changing the damage level on a ship) will eventually be added?

Cons...

A little more work at times (although the coding does not seem to be very difficult, so far). The benefits more than make up for this, though.