• 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.

Need Help with a Man Trigger.

Status
Not open for further replies.
Level 2
Joined
Feb 21, 2009
Messages
7
Alright I could use some help making a trigger that give X unit mana based on How many units/Buildings of a certain kind exist on the map.

lets set this up Similar to a War of the Two gods System
God of Light gains X mana for each Temple of Light on the map every 25 seconds.

I just cant seem to find any to get something like this to work any help?
 
Level 6
Joined
Jul 22, 2008
Messages
243
  • Idk
    • Events
      • Time - Every 25.00 seconds of game time
    • Conditions
    • Actions
      • Set TempGroup = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to <Your building>))
      • Set Buildings = (Number of units in TempGroup)
      • Set Mana = (<Your number> x Buildings)
      • Unit - Set mana of <Your Unit> to ((Mana of <Your Unit>) + (Real(Mana)))
      • Custom Script - JASS - Delete TempGroup
Something like that?

Btw; You will probably need to clean up some leaks... But been over 1 year since I used WE so... Don't remember the correct JASS syntax.
 
Level 2
Joined
Feb 21, 2009
Messages
7
Alright, so I'm gonna need to use Jass now all i could find to download using Jass was Jass Craft is this the same thing?
 
Status
Not open for further replies.
Top