Jump to content

Recommended Posts

Posted

Good evening everyone.
I am not very experienced and I would like to ask you a very trivial question.
Inside the editor I have entered DO SCRIPT to view the status of a flag with
trigger.action.outText (trigger.misc.getUserFlag (2), 20, false). This way, if at that moment flag2 has value 5, it will display 5 (this is obvious)
my question is:
Is it possible to insert the text in such a way that it can display for example "flag2 has value: 5"?
I tried to insert two instructions
1) trigger.action.outText ("FLAG2 has value:", 20, true).
2) trigger.action.outText (trigger.misc.getUserFlag (2), 20, false).

BUT the effect is not pleasant, because the values are displayed one after the other separated by a line.

It is feasible?

Thanks for any suggestions!

Posted
1 hour ago, Facocero said:

Is it possible to insert the text in such a way that it can display for example "flag2 has value: 5"?

 

Yes, I use this script snipet for that:

 

trigger.action.outText( trigger.misc.getUserFlag ( '201' ) .. ' rockets within target circle.', 999 )

 

This prints the value of Flag 201 with the text string appended to it.

  • Thanks 1

 

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 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

  • Recently Browsing   0 members

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