1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Solved] Game message display

Discussion in 'World Editor Help Zone' started by Xzere, Apr 18, 2020.

  1. Xzere

    Xzere

    Joined:
    Feb 23, 2020
    Messages:
    152
    Resources:
    0
    Resources:
    0
    Why does this game message not display while playing with more players, but works perfectly fine in WE test.

    • Health Upgrades
      • Events
        • Unit - A unit Acquires an item
      • Conditions
        • (Item-type of (Item being manipulated)) Equal to Upgrade Health
      • Actions
        • Set VariableSet CabinUpgrade_Health = (CabinUpgrade_Health + 1)
        • Unit - Set Max HP of Cabin in the woods 0000 <gen> to ((Max HP of Cabin in the woods 0000 <gen>) + 500)
        • Unit - Set life of Cabin in the woods 0000 <gen> to ((Life of Cabin in the woods 0000 <gen>) + 500.00)
        • Game - Display to (All players) for 1.00 seconds the text: ((Color_Text[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r)) + ( has upgraded health, level + (String(CabinUpgrade_Health))))
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • CabinUpgrade_Health Equal to 30
          • Then - Actions
            • Trigger - Turn off (This trigger)
          • Else - Actions
     
  2. Chaosy

    Chaosy

    Tutorial Reviewer

    Joined:
    Jun 9, 2011
    Messages:
    11,102
    Resources:
    18
    Icons:
    1
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    18
    I am actually surprised triggering player works here, I have not used GUI in a long time but you could try use owner of triggering unit instead.

    Everything else seems fine to me
     
  3. Xzere

    Xzere

    Joined:
    Feb 23, 2020
    Messages:
    152
    Resources:
    0
    Resources:
    0
    Well yeah i could do that, but that would display the text to the player buying the item only, and i want it to be displayed to all players.

    But i tried to change it to all allies of triggering player, i'll have to see if that works:)
     
  4. Quetra

    Quetra

    Joined:
    Feb 16, 2020
    Messages:
    9
    Resources:
    0
    Resources:
    0
    I think he means you could change Player number of Triggering Player/Name of Triggering Player to Owner of Triggering Unit and keep it displaying to All Players.

    If this doesn't work then perhaps you accidentally destroyed the All Players force somewhere. Can't think of another reason
     
  5. fatherofchill

    fatherofchill

    Joined:
    Apr 7, 2020
    Messages:
    33
    Resources:
    0
    Resources:
    0
    That's not what he meant, I believe.

    • Untitled Trigger 001
      • Events
      • Conditions
      • Actions
        • Game - Display to (All allies of (Owner of (Triggering unit)).) the text: texzt


    Like this. You need to try to be as specific as you can with matching conditions with your event. Your event doesn't necessarily have a triggering player but a triggering unit.

    An example of when you would use 'Triggering Player' would be an event like Player - Keyboard Event, etc.
     
    Last edited: Apr 18, 2020