- Joined
- Dec 16, 2017
- Messages
- 418
Hello guys, i have a hero choose system from taverns and i need to edit it to make it disable 2 more heroes when you choose
To make it clearer, in my map i have more classes from wow, each class have 3 specs,let's take for example the mage class, he has specs like fire mage,frost mage,arcane mage, and i want to make it that when a hero is choosed, to make the others 2 dissappear like they were chosed, for example i choose fire mage, and the frost and arcane mages are deleted too. How can i do that? I was thinking of something with integers and do like integer 1 = arcane, 2 = fire , 3 = frost , and so on for each character, but i can't figure out how to do it with triggers..this is what i have now that is to delete just the selected hero from tavern..
Thanks a lot and Merry Christmas to everyone arround here , bless!
To make it clearer, in my map i have more classes from wow, each class have 3 specs,let's take for example the mage class, he has specs like fire mage,frost mage,arcane mage, and i want to make it that when a hero is choosed, to make the others 2 dissappear like they were chosed, for example i choose fire mage, and the frost and arcane mages are deleted too. How can i do that? I was thinking of something with integers and do like integer 1 = arcane, 2 = fire , 3 = frost , and so on for each character, but i can't figure out how to do it with triggers..this is what i have now that is to delete just the selected hero from tavern..
Thanks a lot and Merry Christmas to everyone arround here , bless!
-
Hero Selection
-
Events
-
Unit - A unit Sells a unit
-
-
Conditions
-
(Selling unit) Equal to Hero Tavern #1 0213 <gen>
-
-
Actions
-
Unit - Explode (Buying unit)
-
Set HeroSpawn = (Center of RegionHeroSpawn <gen>)
-
Unit - Move (Sold unit) instantly to HeroSpawn
-
Camera - Pan camera for (Owner of (Sold unit)) to HeroSpawn over 0.05 seconds
-
Selection - Select (Sold unit) for (Owner of (Sold unit))
-
Unit - Make (Sold unit) face 270.00 over 0.00 seconds
-
Special Effect - Create a special effect at Pos[60] using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
-
-
-
Custom script: call RemoveLocation( udg_HeroSpawn)
-
Game - Display to (All players) the text: ((|c00006699 + (Name of (Owner of (Sold unit)))) + ( Has chosen:|r + (Name of (Sold unit))))
-
-