• 🏆 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!

[Solved] Gold income units.

Status
Not open for further replies.
Level 8
Joined
Feb 11, 2016
Messages
232
I make this:


"Money

Events
Time - Every 10.00 seconds of game time

Conditions

Actions
Player - Add ((Number of living Sludge Minion units owned by Player 1 (Red))) to Player 1 (Red) Current gold"





But I want make this:


"Money

Events
Time - Every 10.00 seconds of game time

Conditions

Actions
Player - Add ((Number of living Sludge Minion units owned by Player 1 (Red)) X 3 ) to Player 1 (Red) Current gold"



How I can add multiplication? Thank you!
 
Level 4
Joined
Jul 26, 2016
Messages
88
  • SomeTrigg
    • Evénements
      • Temps - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Set unitGroupSludge = (Units owned by (Picked player) of type Paladin)
      • Joueur - Add ((Number of units in unitGroupSludge) x 3) to (Picked player) Or actuel
      • Custom script: call DestroyGroup(udg_unitGroupSludge)
Something basic that would work as you suggested?
 
Status
Not open for further replies.
Top