Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

DPS / Damage Done meters with multiboards

Discussion in 'Triggers & Scripts' started by AzNGuNzFoo, Dec 12, 2009.

  1. AzNGuNzFoo

    AzNGuNzFoo

    Joined:
    Jul 7, 2009
    Messages:
    37
    Resources:
    2
    Maps:
    2
    Resources:
    2
    does any1 know how to make DPS (Damage per Second) or Damage done meters using multiboards? I tried messing around with it, but i am very bad at using multiboards. Can anyone point me in the right direction of how to get started making one?
     
  2. Yoafu

    Yoafu

    Joined:
    Apr 29, 2009
    Messages:
    32
    Resources:
    0
    Resources:
    0
    You could always try something like this:

    (Note, I used leaderboard)

    Damage Meter Startup:
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set DamageMeterHashtable = (Last created hashtable)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Leaderboard - Create a leaderboard for (All players) titled Damage meter
          • Set DamageMeterLeaderboard = (Last created leaderboard)
          • Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0

    Damage Meter Count:
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Load 0 of 0 from DamageMeterHashtable) Not equal to 0
        • Then - Actions
          • Player Group - Pick every player in (All players matching ((Owner of (Attacking unit)) Equal to (Matching player))) and do (Actions)
            • Loop - Actions
              • Set DamageDone[(Player number of (Picked player))] = (DamageDone[(Player number of (Picked player))] + ((Load 1 of 1 from DamageMeterHashtable) - (Integer((Life of (Attacked unit))))))
              • Leaderboard - Change the value for (Picked player) in DamageMeterLeaderboard to DamageDone[(Player number of (Picked player))]
              • Leaderboard - Sort DamageMeterLeaderboard by Value in Descending order
        • Else - Actions
          • Player Group - Pick every player in (All players matching ((Owner of (Attacking unit)) Equal to (Matching player))) and do (Actions)
            • Loop - Actions
              • Set DamageDone[(Player number of (Picked player))] = (DamageDone[(Player number of (Picked player))] + ((Integer((Max life of (Attacked unit)))) - (Integer((Life of (Attacked unit))))))
              • Leaderboard - Change the value for (Picked player) in DamageMeterLeaderboard to DamageDone[(Player number of (Picked player))]
              • Leaderboard - Sort DamageMeterLeaderboard by Value in Descending order
      • Hashtable - Save (Integer((Life of (Attacked unit)))) as 0 of 0 in DamageMeterHashtable


    I'm not sure if it works, haven't tested it.
    I couldn't make an DPS meter, sorry. :(
    If it doesn't work try edit it to see if you get it right.
     
  3. lolreported

    lolreported

    Joined:
    Aug 16, 2007
    Messages:
    841
    Resources:
    13
    Tools:
    1
    Maps:
    6
    Spells:
    6
    Resources:
    13
    Well, I can give it a try when I got time and I'll see if I got the time today or tomorrow.

    I think I understood you correct. You want a multiboard to show the total damage a playr has done and/or a damage meter like IIIIIIIIIIIII? :) But for how many players? Single player? Multi player?
     
  4. AzNGuNzFoo

    AzNGuNzFoo

    Joined:
    Jul 7, 2009
    Messages:
    37
    Resources:
    2
    Maps:
    2
    Resources:
    2
    @Yoafu
    Thanks, let me test it out and see if it works

    @Flood
    Yes, a multiboard that shows the total damage a player has done, that can be reset. And the damage meter is not what I'm looking for, but I don't fully understand the concept. The multiboard will be for 7 players on multiplayer.

    I wanted the multiboard to be similar to dps/damage charts in WoW and World of Warcraft Raiding maps to show which players have done the most damage.

    P.S. Thanks to both of you for taking time to help me out!
    +rep!
     
  5. AzNGuNzFoo

    AzNGuNzFoo

    Joined:
    Jul 7, 2009
    Messages:
    37
    Resources:
    2
    Maps:
    2
    Resources:
    2
    @Yoafu. The trigger doesn't seem to work, even after I adjusted it to try to get it to.
     
  6. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,174
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
  7. AzNGuNzFoo

    AzNGuNzFoo

    Joined:
    Jul 7, 2009
    Messages:
    37
    Resources:
    2
    Maps:
    2
    Resources:
    2
    @Maker- thanks, ill try it out!