- Joined
- Feb 13, 2022
- Messages
- 87
Hello to all of the great people on Hive! I'm currently working on making my game run more smoothly and have fewer triggers in it. I feel like there has to be a way to make these triggers in my game into a single trigger opposed to the 32 triggers I have for this fairly simple mechanic in my game. Basically all I want the trigger/s to do in my game is to make it so that if any unit (of a specific criteria) comes into contact with the "Pacman" unit, that unit that has made contact dies. The concept is simple and it seems like an easy thing to trigger in Warcraft. The difficulty arises from certain restraints within my game. Here are all of the restraints:
1)All the units of the type Pac-Man start in the game hidden and are periodically unhidden throughout the game. They can't kill units while they are hidden or dead.
2)Second and final is that the Pac-Man units can only kill very specific unit types of their enemy force.
In my game currently to overcome these challenges and to have this mechanic work in my game I have it setup where there is a trigger for each pacman that turns on when each Pacman gets unhidden. Each trigger is basically identical and the only difference is they are each tied to their own Pacman. Please help me hive community! I need to basically make these many triggers into a single trigger. Thank you to all who help and read this! Any and all suggestions are appreciated
1)All the units of the type Pac-Man start in the game hidden and are periodically unhidden throughout the game. They can't kill units while they are hidden or dead.
2)Second and final is that the Pac-Man units can only kill very specific unit types of their enemy force.
In my game currently to overcome these challenges and to have this mechanic work in my game I have it setup where there is a trigger for each pacman that turns on when each Pacman gets unhidden. Each trigger is basically identical and the only difference is they are each tied to their own Pacman. Please help me hive community! I need to basically make these many triggers into a single trigger. Thank you to all who help and read this! Any and all suggestions are appreciated
-
Pacman
-
Events
-
Unit - A unit comes within 145.00 of Pac-Man 0005 <gen>
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Triggering unit)) Not equal to Player 12 (Brown)) and (((Unit-type of (Triggering unit)) Not equal to Scout Tower) and (((Unit-type of (Triggering unit)) Not equal to Stun Trap) and (((Unit-type of (Triggering unit)) Not equal to DUMMY) and (((Unit-type of (Triggering unit)) Not equal to Slow Tower) and (((Unit-
-
(Pac-Man 0005 <gen> is alive) Equal to True
-
-
Then - Actions
-
Unit - Kill (Triggering unit)
-
-
Else - Actions
-
Do nothing
-
-
-
-