Jump to content

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


Recommended Posts

Posted

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: DCS World

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

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

Ghost0815

Posted

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

Posted

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: DCS World

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

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

Ghost0815

Posted

Okay, i see. Now i give the points out, if a Flag reach 15, 30, 45 points and soon....

Playing: DCS World

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

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

Ghost0815

  • 3 weeks later...
Posted

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

  • Recently Browsing   0 members

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