• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Game Text problem

Status
Not open for further replies.
Level 15
Joined
Dec 6, 2008
Messages
345
Its a problem about Game - Text message.
I using this function (in triggers) everywhere.
But sometimes the text does not appear, even in triggers is set to Display the text.

Illustration:

1)In this trigger the text is displayed only one time, the next time when the function is call by Trigger, it doesn't work.
  • Startvote
    • Events
      • Time - Elapsed game time is 3.00 seconds
    • Conditions
    • Actions
      • Cinematic - Fade out over 0.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Sound - Play Hint <gen>
      • Set SellectArenanumber = 0
      • Countdown Timer - Start TimerArena as a One-shot timer that will expire in 20.00 seconds
      • Countdown Timer - Create a timer window for (Last started timer) with title Vote time
      • Set TimerWindow = (Last created timer window)
      • Game - Display to (All players) for 20.00 seconds the text: |c0000AEAEVote for ...
      • Game - Display to (All players) for 20.00 seconds the text: |ccfff0000Ice arena...
      • Game - Display to (All players) for 20.00 seconds the text: |ccfff0000Hell aren...
      • Game - Display to (All players) for 20.00 seconds the text: |ccfff0000March are...
      • Game - Display to (All players) for 20.00 seconds the text: |ccfff0000Jungle ar...
      • Trigger - Turn on Vote <gen>
2)In this trigger the text is never showed.

  • Kill
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Not equal to Ghost
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Not equal to (Owner of (Triggering unit))
        • Then - Actions
          • Game - Display to (All players) for 10.00 seconds the text: (|c000000FF + ((Name of (Owner of (Killing unit))) + |r has killed somebody!))
          • Sound - Play AbominationDeath1 <gen>
          • Set KILLS[(Player number of (Owner of (Killing unit)))] = (KILLS[(Player number of (Owner of (Killing unit)))] + 1)
          • Leaderboard - Change the value for (Owner of (Killing unit)) in BOARD to KILLS[(Player number of (Owner of (Killing unit)))]
          • Player - Set (Owner of (Killing unit)) Current gold to (((Owner of (Killing unit)) Current gold) + (Random integer number between 10 and 30))
        • Else - Actions
          • Game - Display to (All players) for 10.00 seconds the text: (|c000000FF + ((Name of (Owner of (Killing unit))) + |r has killed himself!))
      • Trigger - Run win <gen> (checking conditions)
Any ideas?
 
Level 11
Joined
Dec 5, 2009
Messages
846
I think the event is the problem. So just make a new trigger. Make it the event and make it run the trigger. Like this:

  • Untitled Trigger 001
    • Events
      • Time - Elapsed game time is 3.00 seconds
    • Conditions
    • Actions
      • Trigger - Run StartVote <gen> (checking conditions)
  • Startvote
    • Events
    • Conditions
    • Actions
      • Cinematic - Fade out over 0.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Sound - Play Hint <gen>
      • Set SellectArenanumber = 0
      • Countdown Timer - Start TimerArena as a One-shot timer that will expire in 20.00 seconds
      • Countdown Timer - Create a timer window for (Last started timer) with title Vote time
      • Set TimerWindow = (Last created timer window)
      • Game - Display to (All players) for 20.00 seconds the text: |c0000AEAEVote for ...
      • Game - Display to (All players) for 20.00 seconds the text: |ccfff0000Ice arena...
      • Game - Display to (All players) for 20.00 seconds the text: |ccfff0000Hell aren...
      • Game - Display to (All players) for 20.00 seconds the text: |ccfff0000March are...
      • Game - Display to (All players) for 20.00 seconds the text: |ccfff0000Jungle ar...
      • Trigger - Turn on Vote <gen>

  • Kill
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Not equal to Ghost
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Not equal to (Owner of (Triggering unit))
        • Then - Actions
          • Game - Display to (All players) for 10.00 seconds the text: (|c000000FF + ((Name of (Owner of (Killing unit))) + |r has killed somebody!))
          • Sound - Play AbominationDeath1 <gen>
          • Set KILLS[(Player number of (Owner of (Killing unit)))] = (KILLS[(Player number of (Owner of (Killing unit)))] + 1)
          • Leaderboard - Change the value for (Owner of (Killing unit)) in BOARD to KILLS[(Player number of (Owner of (Killing unit)))]
          • Player - Set (Owner of (Killing unit)) Current gold to (((Owner of (Killing unit)) Current gold) + (Random integer number between 10 and 30))
        • Else - Actions
          • Game - Display to (All players) for 10.00 seconds the text: (|c000000FF + ((Name of (Owner of (Killing unit))) + |r has killed himself!))
      • Trigger - Run win <gen> (checking conditions)
 
Status
Not open for further replies.
Top