Jump to content

Recommended Posts

Posted

Hi all.

I want to be able to add two messages to one trigger. When the event takes place I want to be able to send two different messages to the player. I have only been able to send a single message, the second never gets displayed. Is it possible, how so?

 

Thanks.

Posted
Hi all.

I want to be able to add two messages to one trigger. When the event takes place I want to be able to send two different messages to the player. I have only been able to send a single message, the second never gets displayed. Is it possible, how so?

Thanks.

 

What's the condition of the choice between your 2 messages ?

Because 1 trigger mean 1 "condition" and 1 "action". If you have to do a random between 2 messages, it will take a minimum of 2 trigger (may be 3 if you put in place a random condition for the message choice).

 

If you have to send the first message and the second just after (no random choice between messages) 2 trigger, the second using time since flag.

[sIGPIC][/sIGPIC]

 

Intel I7-960 / 12Gb Corsair DDR3 Ram / Asus GTX980 Ti Strix / Asus PB287Q / TIR 5+Clip Pro Logitech G13/ TM Warthog N°01295 / Saitek Combat Rudder Pedals / Win Seven 64bits/ TM Cougar MFDs (Vers. 1) / 1 Syncmaster 206BW running Helios

Posted

When a unit is dead, a new unit will spawn. I want to display two separate messages, 1 indicating the unit is dead and the other that a new unit has spawned?

Posted
When a unit is dead, a new unit will spawn. I want to display two separate messages, 1 indicating the unit is dead and the other that a new unit has spawned?

 

For my point of view it's the only way to get it:

 

Once > group_dead (xxx) > Message_to_coalition(blue,"group xxx dead",30), Flag_on(1);

Once > time_since_flag(1,31) > Message_to_coalition(blue,"group yyy spawned",30), Flag_off(1);

 

Printing a message is for one trigger and work with a duration. You need to play with time since flag to get it work properly.

 

PS: i have a doubt, i don't think you need to put flag_off(1), timesinceflag put the flag off by default.

[sIGPIC][/sIGPIC]

 

Intel I7-960 / 12Gb Corsair DDR3 Ram / Asus GTX980 Ti Strix / Asus PB287Q / TIR 5+Clip Pro Logitech G13/ TM Warthog N°01295 / Saitek Combat Rudder Pedals / Win Seven 64bits/ TM Cougar MFDs (Vers. 1) / 1 Syncmaster 206BW running Helios

Posted

oups i forget to activate the new group

 

Once > group_dead (xxx) > Message_to_coalition(blue,"group xxx dead",30), Flag_on(1);

Once > time_since_flag(1,31) > Message_to_coalition(blue,"group yyy spawned",30), Flag_off(1);Group_activate(group_yyy);

 

Using group activate, don't foget to check the box "activate latter" in the unit properties. i also use visible before start to get the unit loaded on mission statup (preventing for freeze).

[sIGPIC][/sIGPIC]

 

Intel I7-960 / 12Gb Corsair DDR3 Ram / Asus GTX980 Ti Strix / Asus PB287Q / TIR 5+Clip Pro Logitech G13/ TM Warthog N°01295 / Saitek Combat Rudder Pedals / Win Seven 64bits/ TM Cougar MFDs (Vers. 1) / 1 Syncmaster 206BW running Helios

Posted

Well if one units death is always going to cause the same other unit to spawn.... just put it in the same message box.

 

 

Other than that, the triggers beynesairforce described also 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...