[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