Jump to content

Recommended Posts

Posted

Hi,

I don't know how to:

 

Show value of some flag, maybe by message , but how ? I don't want to use: if flag value > than.... I need exact value in time.

Imagine it as "mission score"

 

How to show two messages at the same time?

I want to have for example: You are in zone and Group is dead in the same time. If it's not possible to have 2 messages in same time, is it possible to set priorites ?

 

 

Thank you guys,

[sIGPIC][/sIGPIC]

.....Vladimir, let's go to Sukhoi.......

Posted

First question:

With triggers you cannot do this, however you can with LUA. With lua you can use trigger.misc.getUserFlag(string userFlagName) and it will return the value of the flag. If you want to output that value to a textbox you can put this in a do script trigger running continuously:

trigger.action.outText(tostring(trigger.misc.getUserFlag(string userFlagName)), 2)

 

Messages are a little tricky. It can sort of be done with triggers, but you have to create a message for every combination of possible events.

 

Unit in zone and group is alive> MSG(you are in zone and group is alive)

Unit in Zone and group is dead> MSG(you are in zone and the group is dead)

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...