Testing Scoring with Lua

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
kevinkins
Posts: 2465
Joined: Wed Mar 08, 2006 11:54 am

Testing Scoring with Lua

Post by kevinkins »

A quick way to make sure your scoring events are set up OK is to use: ScenEdit_KillUnit({side='SideA',unitname='ship'}) within the lua script console and then check the score to see if it's being totaled the way you expect. I think you can test for damage too with ScenEdit_SetUnitDamage (options) but I have not tried that. You can try different combinations of losses on all sides (ships aircraft etc..) to make sure the final score lives up to the way you want the player to be evaluated at game's end.

Kevin
“The study of history lies at the foundation of all sound military conclusions and practice.”
Alfred Thayer Mahan
Post Reply

Return to “Lua Legion”