• 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.

[Trigger] Efficent way to sort array that has player number?

Status
Not open for further replies.
Level 5
Joined
Dec 25, 2018
Messages
110
  • Actions
    • Set AllDamageGroup = (All players controlled by a User player)
    • Player Group - Pick every player in AllDamageGroup and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked player) slot status) Equal to Is playing
          • Then - Actions
            • Game - Display to (Player group((Triggering player))) for 22.00 seconds the text: ((PlayerHero[(Player number of (Picked player))] + ( + (( + ((Name of (Picked player)) + ))))) + (: + (String(DamageDealtGame[(Player number of (Picked player))]))))
          • Else - Actions
    • Custom script: call DestroyForce(udg_AllDamageGroup)
I am storing damage done by adding damage values to array using GDD.
This way I can show damage done to all players but its not sorted.
How can I sort DamageDealtGame[(Player number of (Picked player) array and still be able to show correct Player and Hero names?
 
Status
Not open for further replies.
Top