Jump to content

How to read (and use) the value of a FLAG?


mwd2

Recommended Posts

Is there an option (maybe lua script) to read out the value of a FLAG and use the number to count points?

 

Example:

i) I increase the value of FLAG 250, everytime a situation (trigger) go activate - WORKING!

ii) every 10min. i will check the value of FLAG 250 - NO PROBLEM!

 

iii) FLAG 250 has a value 23 --> Message to all (Blue has 23 points) - PROBLEM

Playing: F-16C

Intel i7-13700KF, 64GB DDR5 @5600MHz, RTX 4080 ZOTAC Trinity, WIN 11 64Bit Prof.

Squadron "Serious Uglies" / Discord-Server: https://discord.gg/2WccwBh

Ghost0815

Link to comment
Share on other sites

If I remember correctly there is an option to check if the value of a flag is > x so use, once -> flag 'number' greater than 22 -> action.

i7-7700K : 16Gb DDR4 2800 Mhz : Asus Mobo : 2TB HDD : Intel 520 SSD 240gb : RTX 2080ti: Win10 64pro : Dx10 : TrackiR4 : TM Warthog : ASUS ROG SWIFT PG348Q

Link to comment
Share on other sites

yes, but you don`t get the current number, if you want to check every 10min for the number and display intermediate result.... and of course the end result after 60min. or 120min. playtime.

Playing: F-16C

Intel i7-13700KF, 64GB DDR5 @5600MHz, RTX 4080 ZOTAC Trinity, WIN 11 64Bit Prof.

Squadron "Serious Uglies" / Discord-Server: https://discord.gg/2WccwBh

Ghost0815

Link to comment
Share on other sites

Lots and lots of "Flag = x> Message: Score = X" triggers is about the only way you can do it.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

  • 3 weeks later...

Now that the SSE is released:

http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine_(DCS:_World_1.2.1)

 

Run Script> trigger.action.outText(trigger.misc.getUserFlag(flagnumber), displaytime)

 

That script should work.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

  • Recently Browsing   0 members

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