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

[Trigger] Help with a triggered spell

Status
Not open for further replies.
Level 20
Joined
Oct 21, 2006
Messages
3,231
  • B Bladestorm
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bladestorm
    • Actions
      • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Casting unit)) matching (((Picked unit) is alive) Equal to True)) and do (Unit Group - Add (Picked unit) to AttackGroup[(Player number of (Owner of (Casting unit)))])
      • Player Group - Pick every player in (All allies of (Owner of (Casting unit))) and do (Unit Group - Remove all units of (Units owned by (Picked player)) from AttackGroup[(Player number of (Owner of (Casting unit)))])
      • Unit Group - Pick every unit in AttackGroup[(Player number of (Owner of (Casting unit)))] and do (Actions)
        • Loop - Actions
          • Unit - Cause (Casting unit) to damage (Picked unit), dealing (Real((Agility of (Casting unit) (Include bonuses)))) damage of attack type Normal and damage type Normal
          • Set Attack_Damage = (Agility of (Casting unit) (Include bonuses))
          • Set Attack_Target = (Casting unit)
          • Special Effect - Create a special effect attached to the origin of (Picked unit) using Objects\Spawnmodels\Human\HumanBlood\HumanBloodFootman.mdl
          • Special Effect - Destroy (Last created special effect)
          • Trigger - Run Show Damage <gen> (checking conditions)
      • Unit Group - Remove all units from AttackGroup[(Player number of (Owner of (Casting unit)))]
It deals no damage to any unit, so I need your advise how to get it to work.
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
  • ---
  • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Casting unit)) matching (((Picked unit) is alive) Equal to True)) and do (Unit Group - Add (Picked unit) to AttackGroup[(Player number of (Owner of (Casting unit)))])
  • ---
Your issue is already here. The part where "matching (picked unit) is alive equal to true" will never work. Replace picked unit so it is "Matching (matching unit)..."

Also, your trigger has some leaks, regarding points and groups. Read about the tutorial here: http://www.hiveworkshop.com/forums/showthread.php?t=35124

Also, one more thing. Dont use casting unit. In this trigger its fine I guess, but when using other triggers in the same way with waits and other things it could be messed up. Casting unit is also referring to "triggering unit". Use that instead =)

That would solve the problem I think, otherwise post back
 
Status
Not open for further replies.
Top