Hi guys. I'm in a bit of a hassle on how to set up a specific trigger. I hope you can help! Pseudo trigger below - need help to set up the Actions properly :) I'm a rookie but has not been able to find any similar examples.
Event:
Unit - Any unit dies
Actions:
if: Killing unit's player == player 1 (I want to check if the Unit's owner is player 1)
then: Set variable player1size = (increase the current value by 1)
Hi guys. I'm in a bit of a hassle on how to set up a specific trigger. I hope you can help! Pseudo trigger below - need help to set up the Actions properly :) I'm a rookie but has not been able to find any similar examples.
Event: Unit - Any unit dies
Actions:
if: Killing unit's player == player 1 (I want to check if the Unit's owner is player 1)
then: Set variable player1size = (increase the current value by 1)
@norbak: Go
I don't know precisely what you're trying to accomplish so I'll describe two examples and hopefully one of them fits what you want to do:
If you want this trigger to be exclusive to player 1, you can do something like this:
If you want this to work for any player, then you need to make playersize an array of length (number of players in the game). Then do this:
Thank you very much! Helped a lot :)