So i have a kinda crazy map where its sorta a wave defense but with heros. and im using onetwosc's hero picker but im customizing mine alil more. and right now when u view the unit i have a text tag that shows the units level, experience and name. but what i really want is. To have a trigger set up, that when the user mouse overs the unit it has a popup dialog that would show the units stats and whatnot. and heres the thing im really wondering. can i make the dialog follow the mouse as long as the user has the mouse pointer over the unit? Thx ahead of time
Unit Selection - Any Unit is Highlighted by Player Any Player
In the Data Editor make sure the flag "Cannot be Highlighted" under the field Flags in the Units tab is UNCHECKED
set a boolean variable to true and create the dialog, turn on a periodic trigger that moves the dialog to the mouse's X and Y.
Now to destroy
Unit Selection - Any Unit is Unhighlighted by Player Any Player
When that is triggered destroy the dialog for the player and set the boolean to false and check to see if any other player has the boolean set to true, if not turn the trigger off.
EDIT: the periodic trigger should check to see if the boolean is true before moving the dialog to the mouse position.
Heya, glad you found use for my tutorial. As another option, you could also enable tooltips in the unit flags (well, actually the field is called 'no tooltips', youll want to uncheck it) for the display units. And in the actor for each unit set its 'highlight tooltip' field to be w/e text you want. But this probably means you'll need to make a copy of each hero just for the selector because you dont want tooltips on the actual heroes once you choose one.
awesome thx guys....about to implement this. ima try out both and see what looks best.
And btw thx alot for all ur tutorials onetwo. They have been my stepping stone toward becoming a map making badass lol. I just now got to the point where i can get around the data editor with no problems. and do mostly everything i want to do in the trigger editor. mainly thx to ur unit dup tutorials and the healing fountain tutorial. and all ur other ones...iv watched them all many times lol. btw i used that healing fountain in my map too :-) lol. ima have to give u credit majoly if i ever decide to release this map fully. Thx for the help guys.
onetwo do u have a gchat acct?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So i have a kinda crazy map where its sorta a wave defense but with heros. and im using onetwosc's hero picker but im customizing mine alil more. and right now when u view the unit i have a text tag that shows the units level, experience and name. but what i really want is. To have a trigger set up, that when the user mouse overs the unit it has a popup dialog that would show the units stats and whatnot. and heres the thing im really wondering. can i make the dialog follow the mouse as long as the user has the mouse pointer over the unit? Thx ahead of time
@synik4l87: Go
Unit Selection - Any Unit is Highlighted by Player Any Player
In the Data Editor make sure the flag "Cannot be Highlighted" under the field Flags in the Units tab is UNCHECKED
set a boolean variable to true and create the dialog, turn on a periodic trigger that moves the dialog to the mouse's X and Y.
Now to destroy
Unit Selection - Any Unit is Unhighlighted by Player Any Player
When that is triggered destroy the dialog for the player and set the boolean to false and check to see if any other player has the boolean set to true, if not turn the trigger off.
EDIT: the periodic trigger should check to see if the boolean is true before moving the dialog to the mouse position.
Heya, glad you found use for my tutorial. As another option, you could also enable tooltips in the unit flags (well, actually the field is called 'no tooltips', youll want to uncheck it) for the display units. And in the actor for each unit set its 'highlight tooltip' field to be w/e text you want. But this probably means you'll need to make a copy of each hero just for the selector because you dont want tooltips on the actual heroes once you choose one.
awesome thx guys....about to implement this. ima try out both and see what looks best.
And btw thx alot for all ur tutorials onetwo. They have been my stepping stone toward becoming a map making badass lol. I just now got to the point where i can get around the data editor with no problems. and do mostly everything i want to do in the trigger editor. mainly thx to ur unit dup tutorials and the healing fountain tutorial. and all ur other ones...iv watched them all many times lol. btw i used that healing fountain in my map too :-) lol. ima have to give u credit majoly if i ever decide to release this map fully. Thx for the help guys.
onetwo do u have a gchat acct?