• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

'Unit - Set life to value' on banished units.

Status
Not open for further replies.
Level 6
Joined
Sep 13, 2013
Messages
155
It's not that complicated though.

  • Your Ability
    • Events
    • Unit - A unit Starts the effect of an ability
    • Conditions
    • (Ability being cast) Equal to Your Ability
    • Actions
  • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units within 650.00 of (Position of (Triggering unit)) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))) and do (Actions)
    • Loop - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Picked unit) is Ethereal) Equal to True
    • Then - Actions
    • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 100.00)
    • Else - Actions
    • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 50.00)
 
Status
Not open for further replies.
Top