• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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