• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Select unit... and text... so whats the deal?

Status
Not open for further replies.
Level 5
Joined
Jun 18, 2011
Messages
79
This may seem very silly ... But for some reason I am not getting a simple result for such a simple trigger... Wondering if it needs variables?
I am trying to create info triggers for an area full of neutral units that players can purchase via circle of powers. By clicking on one of the neutral units, it should give the brief info describing the clicked unit.

Here is what I got ...

Event
Player 1 selects a unit

Condition
desired unit is selected by triggering player equal to true

Actions
Display text for player matching triggering player...


But the Trigger doesnt work unless I double click the unit, or only after I have selected another source after the original target does it fire... So in a sense it needs a double click, or an outside source to trigger... what gives?

Anyone...?
 
Selecting a unit has delay. (Usually 0.1 seconds of delay)

What's happening:
- You select a unit
- Trigger fires
- Unit is not selected (you need a delay before it counts as selected)
- You select the unit again
- He is selected this time (There was a 0.1 second delay since the last time you selected him)

To fix this, instead of checking if the desired unit is selected, you should check if the selected unit is equal to the desired unit.
 
Status
Not open for further replies.
Top