- Joined
- Jun 10, 2008
- Messages
- 1,043
Alright, so I've been thinking about this for a couple of hours yesterday and now today. Everytime I try to make a trigger, I can almost sense the answer trying to spring itself forth with no effect, so I'm asking you.
I cannot figure out how to make a repick system. Right now, I have:
and then I have:
For each player. I cannot figure out what to add in "Repick" to remove the hero (I'd make it "Last Created Unit", but you might be able to create more units, and I tried setting a variable as Last Created Unit, but would that glitch? If say HeroRed = Last Created Unit is up and then you do Remove HeroRed and the player hasn't chosen a hero, would they still get a wisp? Also, they can repick multiple times, so would that make the variable glitch?) Please help!
I cannot figure out how to make a repick system. Right now, I have:
Warrior
Events
Unit - A unit enters WarriorChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Lord Villus Malsarian Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Events
Unit - A unit enters WarriorChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Lord Villus Malsarian Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Ranger
Events
Unit - A unit enters RangerChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Aliria the Peaceful Female for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Events
Unit - A unit enters RangerChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Aliria the Peaceful Female for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Guardian
Events
Unit - A unit enters GuardianChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Vallus the Worthy Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Events
Unit - A unit enters GuardianChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Vallus the Worthy Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Necromancer
Events
Unit - A unit enters NecromancerChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Varian the Darkened Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Events
Unit - A unit enters NecromancerChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Varian the Darkened Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Paragon
Events
Unit - A unit enters ParagonChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Arthurian Gevenald Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Events
Unit - A unit enters ParagonChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Arthurian Gevenald Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Priest
Events
Unit - A unit enters PriestChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Lunaris Vaenlith Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Events
Unit - A unit enters PriestChoose <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Unit - Create 1 Lunaris Vaenlith Male for (Triggering player) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
and then I have:
Repick
Events
Player - Player 1 (Red) types a chat message containing -repick as An exact match
Conditions
Actions
Unit - Create 1 Wisp for Player 1 (Red) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
Events
Player - Player 1 (Red) types a chat message containing -repick as An exact match
Conditions
Actions
Unit - Create 1 Wisp for Player 1 (Red) at (Center of HeroSpawnRegion <gen>) facing Default building facing degrees
For each player. I cannot figure out what to add in "Repick" to remove the hero (I'd make it "Last Created Unit", but you might be able to create more units, and I tried setting a variable as Last Created Unit, but would that glitch? If say HeroRed = Last Created Unit is up and then you do Remove HeroRed and the player hasn't chosen a hero, would they still get a wisp? Also, they can repick multiple times, so would that make the variable glitch?) Please help!