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

Status
Not open for further replies.
Level 5
Joined
Apr 12, 2009
Messages
125
How can i make this MUI, not leak and not damage friendly units or self??

  • Spell Toxic Nova
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Toxic Nova
    • Actions
      • Set Toxic_Target = (Target unit of ability being cast)
      • Set Toxic_Damage = 10.00
      • Set Toxic_Group = (Units within 350.00 of (Position of Toxic_Target) matching (((Triggering unit) is Magic Immune) Equal to False))
      • Trigger - Turn on Spell Toxic Nova2 <gen>
      • Wait 5.00 seconds
      • Trigger - Turn off Spell Toxic Nova2 <gen>
      • Custom script: call DestroyGroup (udg_Toxic_Group)
  • Spell Toxic Nova2
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Toxic_Group and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - Toxic_Damage)
          • Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Other\AcidBomb\BottleImpact.mdl
          • Special Effect - Destroy (Last created special effect)
+rep if help!

~r0bfish~
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Hashtables... but you probably don't know how to work with those, am I correct?
Search for the hashtable tutorial and it's pretty easy once you understand it.

Set Toxic_Group = (Units within 350.00 of (Position of Toxic_Target) matching (((Triggering unit) is Magic Immune) Equal to False))
this leaks (location)
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
http://www.hiveworkshop.com/forums/pastebin.php?id=38jq6o

A basic version of the spell. You could use an AoE targeted base ability, and set Temp_Loc_1 = target point of ability being cast. I used Storm Bolt..

Note that unit - set life to some value does not allow the unit to resist the damage. You could save a handle of the casting unit and cause him to damage the unit.
 
Level 5
Joined
Apr 12, 2009
Messages
125
Hashtables... but you probably don't know how to work with those, am I correct?
Search for the hashtable tutorial and it's pretty easy once you understand it.

Set Toxic_Group = (Units within 350.00 of (Position of Toxic_Target) matching (((Triggering unit) is Magic Immune) Equal to False))
this leaks (location)

Ok. +rep for helping

http://www.hiveworkshop.com/forums/pastebin.php?id=38jq6o

A basic version of the spell. You could use an AoE targeted base ability, and set Temp_Loc_1 = target point of ability being cast. I used Storm Bolt..

Note that unit - set life to some value does not allow the unit to resist the damage. You could save a handle of the casting unit and cause him to damage the unit.

YEAH! :D +rep for helping

I want to close this thread... but how?
 
Status
Not open for further replies.
Top