• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Trigger Help

Status
Not open for further replies.
I might be able to help u with that :) gimme a few minutes

EDIT: I thought I'd go into the map and see exactly what u were looking for, but I don't really get it, what do you mean with control point? could you explain a bit further please?
 
Heh, I was playing Wars of Azeroth at first ^^ Yeh I saw it now and I think I might be able to help, I've been dealing with something pretty similar in the past, just lemme grab a thinking-smoke
 
  • Income
    • Events
      • Unit - Circle of Power (medium) 0020 <gen> Is attacked
    • Conditions
      • (Life of (Attacked unit)) Less than or equal to 400.00
    • Actions
      • Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
      • Unit - Set life of (Attacked unit) to (Max life of (Attacked unit))
  • Income2
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Player - Set (Owner of Circle of Power (medium) 0020 <gen>) Current gold to (((Owner of Circle of Power (medium) 0020 <gen>) Current gold) + 15)
Is this what u were looking for? :)
 
  • Income
    • Events
      • Unit - Circle of Power (medium) 0020 <gen> Is attacked
    • Conditions
      • (Life of (Attacked unit)) Less than or equal to 400.00
    • Actions
      • Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
      • Unit - Set life of (Attacked unit) to (Max life of (Attacked unit))
  • Income2
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Player - Set (Owner of Circle of Power (medium) 0020 <gen>) Current gold to (((Owner of Circle of Power (medium) 0020 <gen>) Current gold) + 15)
Is this what u were looking for? :)

Fast reminder: Use Triggering unit instead of Attacked unit. This will make the trigger run more smooth :)
 
  • Income
    • Events
      • Unit - Circle of Power (medium) 0020 <gen> Is attacked
    • Conditions
      • (Life of (Attacked unit)) Less than or equal to 400.00
    • Actions
      • Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
      • Unit - Set life of (Attacked unit) to (Max life of (Attacked unit))
  • Income2
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Player - Set (Owner of Circle of Power (medium) 0020 <gen>) Current gold to (((Owner of Circle of Power (medium) 0020 <gen>) Current gold) + 15)
Is this what u were looking for? :)

That is adding just 15 gold every 15 seconds,no matter how many control points you have.
You should make it so it picks all control points every 15 seconds and gives gold to owner appropriate to number of control points picked.
 
Just change second trigger to this:
  • Income2
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Add ((Number of units in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Control Point))) x 50) to (Picked player) Current gold
However,you may change how much gold you want per control point by changing that number 50 which multiplies number of control points.
 
Status
Not open for further replies.
Back
Top