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

2 quick questions on my spell

Status
Not open for further replies.
Level 9
Joined
Oct 28, 2004
Messages
533
1.How do i make it so the trigger recognizes what the level of the ability is
2.How do i make it so that the ability DOESNT afect allies

My ability:
Code:
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability being cast) Equal to Virulence AOE
Actions
    Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        Loop - Actions
            Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 100.00)
 
Level 6
Joined
Feb 4, 2005
Messages
302
1. If {This is an integer}Level of Ability for (casting unit) = 1

Go look for that action or something similar.

2. Use the condition. I believe it's under one of the player comparisons. "Picked unit belongs to an ally of (Owner of (casting unit))

Please note that I am taking all these off my head, WE is not open, but I'm quite sure.
 
Level 9
Joined
Oct 28, 2004
Messages
533
Thanks, it took a few minutes to find the 1st trigger, and i decided not to use the not-affect allies, it balances the ability out i think....
 
Status
Not open for further replies.
Top