Mercenary and item hotkeys doesnt work

FireBladesX

Eating my wings!
Reaction score
123
I'm using the Neutral Building - Add (Unit-Type) to <Marketplace>
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 &lt;gen&gt; with Limit[tmpInt] in stock and a max stock of Limit[tmpInt]
      • Item - Remove (Item being manipulated)


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)
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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top