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

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