• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[Trigger] Error in Trigger Tag. Deaths / Saves

Status
Not open for further replies.
Level 2
Joined
Nov 1, 2008
Messages
15
I want make a map Survivors / Tag

i make those 2 code its been 6 hours and more i try fix anyone can help me thanks

First picture its about Save and the save code for the multiboard don't event work ...

Second one its about deaths and nothing work...

attachment.php


attachment.php
 

Attachments

  • Trigger.jpg
    Trigger.jpg
    106.6 KB · Views: 151
  • Trigger2.jpg
    Trigger2.jpg
    84.3 KB · Views: 166
Level 2
Joined
Nov 1, 2008
Messages
15
For the save code, use this:
  • For each (Integer A) from 1 to 10, do (Actions)
    • Loop - Actions
      • If/ Then/ Else
        • If (Conditions)
          • ((Owner of (Dying unit/Entering unit)) Equal to Player(IntegerA)
        • Then (Actions)
          • Set Deaths[Player Number of Player(IntegerA)] = Deaths[Player Number of Player(IntegerA)] + 1

so i need to make some Set Player 1 To 1
Player 2 to 2
and this thats its will work ?

is there something more simple because im prety noob with trigger... i hate trigger
 
Player 1 and Player 2 and Player 3 bla bla, already have their number: 1, 2, 3, etc.
So, by having this, the number Integer A from 1 to 10 will respond to that specific player.
So, for every number from 1 to 10, it will pick the Owner of Entering unit and increase the integer for them. Damn, i made a mistake, sorry,
instead of "Deaths[Player Number of Player(IntegerA)]", do it
Deaths[Player Number of (Owner of (Entering unit))] = Deaths[Player Number of (Owner of (Entering unit))] + 1
 
Level 2
Joined
Nov 1, 2008
Messages
15
Player 1 and Player 2 and Player 3 bla bla, already have their number: 1, 2, 3, etc.
So, by having this, the number Integer A from 1 to 10 will respond to that specific player.
So, for every number from 1 to 10, it will pick the Owner of Entering unit and increase the integer for them. Damn, i made a mistake, sorry,
instead of "Deaths[Player Number of Player(IntegerA)]", do it
Deaths[Player Number of (Owner of (Entering unit))] = Deaths[Player Number of (Owner of (Entering unit))] + 1

im so damn loss :hohum: do you have msn would really appreciate your help sire its been more 10hours im on this bug ...
 
Status
Not open for further replies.
Top