Need Help with a Man Trigger.

Status
Not open for further replies.

Slyagthor

S

Slyagthor

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?
 
  • 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.
 
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.
Back
Top