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

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?
 
Level 8
Joined
Jun 18, 2007
Messages
214
Uuuu no, just use Bloodlust as 2 dummy spells. One for increasing size of the casting hero (if you'd like give him some HP or Str), and the other one for shrinking enemies. Just set the values of the Bloodlust to negative ones. :p Didn't ever try it, but maybe it works.
 
Status
Not open for further replies.
Top