• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Spell concept which I can't figure out

Status
Not open for further replies.
Level 6
Joined
Dec 27, 2006
Messages
100
So essentially here's the concept behind the spell:

The Champion increases his size, hence increasing his hitpoints and armor. All nearby enemy units are shrunk and their damage is reduced.

The problems I have are that I can't figure out a non-leaking way to create the 'shrinking' effect and I don't really know how to decrease nearby unit's damage.

  • Gigantism
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Gigantism
    • Actions
      • Set Target_Point[1] = (Position of (Casting unit))
      • Set Caster = (Triggering unit)
      • Unit Group - Pick every unit in (Units within 400.00 of Target_Point[1]) and do (Actions)
        • Loop - Actions
          • Animation - Change (Picked unit)'s size to (80.00%, 80.00%, 80.00%) of its original size
          • Wait 5.00 seconds
          • Animation - Change (Picked unit)'s size to (100.00%, 100.00%, 100.00%) of its original size
        • For each (Integer A) from 1 to 6, do (Actions)
          • Loop - Actions
            • Set Target_Point[2] = (Target_Point[1] offset by 400.00 towards (60.00 x (Real((Integer A)))) degrees)
            • Unit - Create 1 Giant Dummy for (Owner of (Triggering unit)) at Target_Point[2] facing Default building facing degrees
            • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
            • Special Effect - Create a special effect at Target_Point[2] using Abilities\Spells\Other\Charm\CharmTarget.mdl
            • Special Effect - Destroy (Last created special effect)
            • Custom script: call RemoveLocation(udg_Target_Point[2])
        • Custom script: call RemoveLocation(udg_Target_Point[1])
And yes, I realise that the 5 second wait shouldn't be there...

Thanks in advance guys.
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
  • Gigantism
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Gigantism
    • Actions
      • Set Target_Point[1] = (Position of (Casting unit))
      • Set Caster = (Triggering unit)
      • Set Group = (Units within 400.00 of Target_Point[1])
      • Unit Group - Pick every unit in Group and do (Actions)
        • Loop - Actions
          • Animation - Change (Picked unit)'s size to (80.00%, 80.00%, 80.00%) of its original size
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set Target_Point[2] = (Target_Point[1] offset by 400.00 towards (60.00 x (Real((Integer A)))) degrees)
          • Unit - Create 1 Giant Dummy for (Owner of (Triggering unit)) at Target_Point[2] facing Default building facing degrees
          • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
          • Special Effect - Create a special effect at Target_Point[2] using Abilities\Spells\Other\Charm\CharmTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_Target_Point[2])
      • Wait 5.00 seconds
      • Unit Group - Pick every unit in Group and do (Actions)
        • Loop - Actions
          • Animation - Change (Picked unit)'s size to (100.00%, 100.00%, 100.00%) of its original size
      • Custom script: call RemoveLocation(udg_Target_Point[1])
      • Custom script: call DestroyGroup(udg_Group)
Something like that, maybe?
 
Status
Not open for further replies.
Top