| 02-16-2008, 11:40 AM | #1 |
When you click on an enemy unit, then in the fields for icons (right bottom) nothing is shown! I wonder if you can show enemy ability icons anyhow... For example player PLAYER_NEUTRAL_AGGRESSIVE has a unit with an ability. When you click on that unit you can't see the units ability icon. How can you make it show up? |
| 02-16-2008, 03:40 PM | #2 |
Generally speaking, you can't see the enemies abilities. Off the top of my head I can think of a couple of ways to get the desired effect, but you'll have to trigger it and such. I personaly Like the second better, less to worry about with messing someone elses unit up. 1) Using triggers, turn advance alliance on, and make another trigger which doesn't allow you to preform any orders on the unit. Catch any movement, attack, or spell commands and stop them flat, returning to the prevoius command. 2) Make a ward (I think they show abilities), and make dummy abilities (use channel) for all the abilities, putting them in place of the original abilities. Make sure the ward has the same size as the hero to get their select circles to match up (see below). Whenever a unit is selected which you do not own create the dummy ward, deselect the unit, and select the ward. Use another trigger and a timer to update the position of the ward to that of the unit. 3) Using dummy abilities again, whenever a enemy unit is selected create a dummy unit (ward?) which has the dummy abilities in a spellbook, and force-open the it. You can force the player to press hotkeys for abilities. |
| 02-26-2008, 09:54 PM | #3 |
If you don't actually want the abilities to be shown only in the bar and at the possition of the buttons then you can just display the abilities in text floating or other.. Now that has a problem on the description but i only mentioned that way in case you only need the name of the ability. If you want more then you just have to use one of the ways Zandose mentioned. I can't think of anything better and i also agree with him on the second way is the best of all. even though this requires a lot of work it gives a good result so i think it worths the trouble. :D |
