I lend it through a trigger:
Event:
- Any unit enter withi 1.0 of Player 1 (Start Location of Player 1 and where unit is created)
Conditions:
-And:
- Triggering unit has behavior Hero - Levels (Your veterancy behavior) = True
- Unit typoe of Triggering unit has Heroic attribute = True
Actions:
-Switch Actions depending on Unit Type of Triggering Unit (Because I have 5 heroes and I don't want to repeat 5 times for every unit)
- If Hero - Dark Soul (One of my custom heroes)
Actions:
-Create one Hero - Void Bombs (My custom weapon item) item in the inventory of Triggering Unit
-Turn Current Trigger (or the name of your trigger) Off (This is for not repeat the Trigger every time that unit enters the point)
If you have more heroes you only have to copy/paste the switch for each of your heroes, and if also there are several players just copy/paste the entire trigger changing the location from Player 1 to Player X.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey guys, is there any way on setting an initial item, let's say a weapon item, on the heroe's inventory? I'd like it to be by data.
Just do like the pots in the demo Inventory ability via the Ability: Info - Item field.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
That is what I do but doesn't seem to work.
I've got the inventory separated through classes, I mean, I've got especified slots for items.
I lend it through a trigger: Event: - Any unit enter withi 1.0 of Player 1 (Start Location of Player 1 and where unit is created) Conditions: -And: - Triggering unit has behavior Hero - Levels (Your veterancy behavior) = True - Unit typoe of Triggering unit has Heroic attribute = True Actions: -Switch Actions depending on Unit Type of Triggering Unit (Because I have 5 heroes and I don't want to repeat 5 times for every unit) - If Hero - Dark Soul (One of my custom heroes) Actions: -Create one Hero - Void Bombs (My custom weapon item) item in the inventory of Triggering Unit -Turn Current Trigger (or the name of your trigger) Off (This is for not repeat the Trigger every time that unit enters the point) If you have more heroes you only have to copy/paste the switch for each of your heroes, and if also there are several players just copy/paste the entire trigger changing the location from Player 1 to Player X.