I'm trying to use a Variable called Saved Kills, which is initially "0" (Integer), and then there's an Action Command in my Save Kills Trigger which basically looks like this:
If anyone knows how I can modify this Trigger to increase the player's total kill count when a unit dies, I should have this headache of a Bank Trigger out of my head.
Trigger:
- Save Kills
- Events
- Unit - Any Unit dies
- Local Variables
- Conditions
- (Owner of (Triggering unit)) == 9
- (Controller of player (Killing player)) == User
- Actions
- Bank - Open bank "xdefensemap" for player (Killing player)
- Bank - Store integer ((Killing unit) kills (Current)) as "Kills" of section "Player" in bank (Last opened bank)
- Bank - Save bank (Last opened bank)
- Variable - Modify Saved Kills: + 1
- Events
If anyone knows how I can modify this Trigger to increase the player's total kill count when a unit dies, I should have this headache of a Bank Trigger out of my head.