• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Gold per kill

Status
Not open for further replies.
Level 13
Joined
Oct 27, 2008
Messages
1,176
Would that last part about the Bonus Unit work?
  • Kill Gold Top
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
    • Actions
      • Player - Add 8 to Player 6 (Orange) Current gold
      • Player - Add 8 to Player 7 (Green) Current gold
      • Player - Add 8 to Player 8 (Pink) Current gold
      • Player - Add 8 to Player 9 (Gray) Current gold
      • Player - Add 8 to Player 10 (Light Blue) Current gold
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Bonus
        • Then - Actions
          • Player Group - Pick every player in (All allies of Player 6 (Orange)) and do (Actions)
            • Loop - Actions
              • Player Group - Remove Player 11 (Dark Green) from Player Group - Player 6 (Orange)
              • Player - Add (100 / (Number of players in (All allies of Player 6 (Orange)))) to (Picked player) Current gold
        • Else - Actions
          • Do nothing
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
u can remove the Do nothing,
and the Player Group is leaking, so you'd want to set it to a player group variable then custom script : call DestroyForce(udg_var[index])
to remove it.

what are leaks?
Whats the point in custom script?
Why remove the variable if its going to be needed every 8 hrs game time?
i think i said that last one right but i dont know

this what your talking about?
  • Kill Gold Bottom
    • Events
      • Unit - A unit owned by Player 11 (Dark Green) Dies
    • Conditions
    • Actions
      • Player - Add 8 to Player 1 (Red) Current gold
      • Player - Add 8 to Player 2 (Blue) Current gold
      • Player - Add 8 to Player 3 (Teal) Current gold
      • Player - Add 8 to Player 4 (Purple) Current gold
      • Player - Add 8 to Player 5 (Yellow) Current gold
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Bonus
        • Then - Actions
          • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
            • Loop - Actions
              • Player Group - Add (Picked player) to PlayerGroup_Bottom
              • Player Group - Remove Player 12 (Brown) from PlayerGroup_Bottom
              • Player - Add (100 / (Number of players in PlayerGroup_Bottom)) to (Picked player) Current gold
        • Else - Actions
      • Custom script: call DestroyForce(udg_PlayerGroup_Bottom)
 
Last edited:
Level 13
Joined
Oct 27, 2008
Messages
1,176
i removed the creep computer player so the gold will go between only the players on the team together
ok seeing how its like 3am i'm wide awake and not understanding what you mean can you post the trigger or the trigger part of what your saying so i understand better
i dont understand stuff by words that well
 
Status
Not open for further replies.
Top