• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Hide trainable units with button position -1,-1?

Level 16
Joined
Jun 9, 2008
Messages
346

Shortlegs

I have seen that in an old post by @Wietlol . Specifically it was about creating Charge Gold and Lumber abilities instead of the train unit buttons (when you use the ability, a trigger will tell the structure to train the respective unit; the reason behind this is that it's a way to add and remove trainable units from a specific structure with triggers), and hide the training unit buttons by setting their button positions to -1,-1

But when I tried to replicate this it didn't work. The original training unit buttons still show up but not the ability buttons (you'll note that's the excat opposite of what I wanted to achieve).

How does one set this up properly?
 
Might be outdated, the current coordinates to hide icons are 0, -11
Thanks!! Just to check - the AI would not be affected by it, would it? Since the AI is obviously not vision based so it doesn't care whether a button is hidden this way or not?

(Context: I'd like to use that mechanic for human players, but for AI players what's more important to me is that they can train units freely, doesn't matter if they aren't bound by the same techtree limitations as real players.)
 
Back
Top