- Joined
- Apr 21, 2018
- Messages
- 18
In my game each player can have 1 pet. It stores the unit ID of each player's pet as the array Pet(1-24), 24 being the max number of players. However, when the pet dies, it needs to set Pet(Player Number) back to no unit so they can get a new one.
Is there any way in Conditions to have the trigger check if "Dying unit Equal to Pet(Any Number), rather than having to have 24 lines checking Pet(1), Pet(2), Pet(3)..? Or know of a better way to do this?
Thanks!
Is there any way in Conditions to have the trigger check if "Dying unit Equal to Pet(Any Number), rather than having to have 24 lines checking Pet(1), Pet(2), Pet(3)..? Or know of a better way to do this?
Thanks!