What I'm trying to do is make a diablo movement for a single character the player will control. However, while I may have misinterpreted what it meant, the highlight/unhighlight unit action doesn't seem to do anything.
I'm trying to make it so when you highlight a unit, that unit becomes what you will attack when you left click. But when you move your mouse off that unit it will no longer make you attack that unit. Here is the trigger I have for setting variable for what the target would be and the one to make it be no unit at all.
I know it doesn't work because the debugger doesn't show the trigger to be used.
Thanks, I will use unit is clicked event. I really don't want to see the circles around units when they are clicked so I'm going to turn unit selection off for enemies.
btw, how does unit highlighted work anyway since it is often misunderstood?
you have to check the "Highlightable" flag on the unit in the data editor, or you can use the trigger action "Set Unit State" and select Highlightable and turn it on.
the same goes for "Clickable" and the unit is clicked trigger
Thanks! From what you told me I was able to get attacking working exactly how I wanted it to be. Now I gotta w8 for patch 1.2 to get movement the way I want...
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
What I'm trying to do is make a diablo movement for a single character the player will control. However, while I may have misinterpreted what it meant, the highlight/unhighlight unit action doesn't seem to do anything.
I'm trying to make it so when you highlight a unit, that unit becomes what you will attack when you left click. But when you move your mouse off that unit it will no longer make you attack that unit. Here is the trigger I have for setting variable for what the target would be and the one to make it be no unit at all.
I know it doesn't work because the debugger doesn't show the trigger to be used.
Try using unit is selected event instead of highlighted. If that is an event...
@Zero092: Go
Indeed, the highlighted is often misunderstood. The ones you want are the select and clicked, depending on what you want.
@Deeweext: Go
Thanks, I will use unit is clicked event. I really don't want to see the circles around units when they are clicked so I'm going to turn unit selection off for enemies.
btw, how does unit highlighted work anyway since it is often misunderstood?
@Tradnan: Go
you have to check the "Highlightable" flag on the unit in the data editor, or you can use the trigger action "Set Unit State" and select Highlightable and turn it on.
the same goes for "Clickable" and the unit is clicked trigger
@LinkD: Go
Thanks! From what you told me I was able to get attacking working exactly how I wanted it to be. Now I gotta w8 for patch 1.2 to get movement the way I want...