Jump to content

How can I see the Score within a Script?


Rudel_chw

Recommended Posts

Hello,

 

On Single Player, the Score is the sum of the points value of each aircraft, ship or vehicle destroyed by the Player. It is reported on the debriefing as "Score":

 

fOyU8Bp.jpg

 

I know how to use the "Results" field, but ... is there a way I can check from within a Script, what is the Player's current "Score"?

 

Thanks a lot for any help with this,

Greetings,

 

 

Eduardo

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600X - 32 GB DDR4 2400 - nVidia GTX1070ti - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar - Oculus Rift CV1

Mobile: iPad Pro 12.9" of 256 GB

Link to comment
Share on other sites

Never seen any API's for score. I know each unit has it built into their lua file. Im not sure if even the score is available in the unit description of each.

 

:thumbup: Ok, thanks a lot for your experience. I will stick to just using the Results field :)

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600X - 32 GB DDR4 2400 - nVidia GTX1070ti - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar - Oculus Rift CV1

Mobile: iPad Pro 12.9" of 256 GB

Link to comment
Share on other sites

MOOSE has a SCORING class that you could use independently.

 

Yes, I’m currently using the "Results" field (see figure above) to give a score to the player, but the game’s native score measures something different, the points value of all units that the player has destroyed during the mission. I wanted to have access to that value before the mission ends.

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600X - 32 GB DDR4 2400 - nVidia GTX1070ti - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar - Oculus Rift CV1

Mobile: iPad Pro 12.9" of 256 GB

Link to comment
Share on other sites

If you use MOOSE SCORING and assign a value of 1 to a destroyed target you'd probably be quite close.

 

There's no way I know of to access the data you're showing.

And to do that, open the lua for each unit, copy the scoring value and put that in the scores or a custom score. But yeah, not sure how to export that page in a nice way how you described.

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...