FireBladesX
Eating my wings!
- Reaction score
- 123
I'm using the Neutral Building - Add (Unit-Type) to <Marketplace>
Here's one of the triggers:
Raiders is a unit-type variable array, and Limit is an integer array. tmpInt is an integer variable.
The problem is that hotkeys don't work on the added unit. This also applies to any items added to a marketplace with the trigger, not just units.
Also, hex codes don't work on any units or items added this way.
In editor, I'll write
but in-game it just comes out all white, the W doesn't turn yellow.
Does anyone know why, or how to fix this? The game requires very fast actions, so hotkeys are mandatory.
Here's one of the triggers:
Trigger:
- EnableMercenary
- Events
- Unit - A unit Acquires an item
- Conditions
- (Item-class of (Item being manipulated)) Equal to Purchasable
- Actions
- Set tmpInt = (Item level of (Item being manipulated))
- Neutral Building - Add Raiders[tmpInt] to Blacksmith 0034 <gen> with Limit[tmpInt] in stock and a max stock of Limit[tmpInt]
- Item - Remove (Item being manipulated)
- Events
Raiders is a unit-type variable array, and Limit is an integer array. tmpInt is an integer variable.
The problem is that hotkeys don't work on the added unit. This also applies to any items added to a marketplace with the trigger, not just units.
Also, hex codes don't work on any units or items added this way.
In editor, I'll write
Code:
Purchase Healing Potion (|cffffcc00W|r)
Does anyone know why, or how to fix this? The game requires very fast actions, so hotkeys are mandatory.