• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Buying a hero

Status
Not open for further replies.

shari

S

shari

i need to make a trigger to make so that whenever i buy a hero no matter where it will spawn in the player start location...:infl_thumbs_up:

Been tryin to create it but it sux it always spawns in the place of the tavern..:infl_thumbs_up:

and how to change the icon for disabled icons..:infl_thumbs_up:
 
You can move the unit instantly to another location so it will look like it spawned there. Trigger would be like this:

event - unit enters playable map area
condition - unit type equal to "your hero"
actions:
-move triggering unit instantly to "your region"
 
you can only overwrite an existing disabled icon or import a new one with a new disabled icon.
eg:
We want to change the disabled Holy Light icon.
For that we can import a custom one or import one from warcraft. But make sure its a disabled icon.
Now import that icon and change the path to the disabled Holy Light icon.
The path should be: 'ReplaceableTexture\CommandButtonsDisabled\DISBTNHolyBolt.blp'

Now when you have the buff silence or need higher level for the spell you can see the imported icon.
 
You can move the unit instantly to another location so it will look like it spawned there. Trigger would be like this:

event - unit enters playable map area
condition - unit type equal to "your hero"
actions:
-move triggering unit instantly to "your region"

I agree, but for player start location,
Unit - Move (Sold unit) instantly to ((Owner of (Sold unit)) start location)

Hope this helps...
 
Status
Not open for further replies.
Back
Top