• 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.

Death Wave (leveling problem)

Status
Not open for further replies.
Level 15
Joined
Jun 10, 2007
Messages
389
I have this spell that I DLed off the web and it didn't have levels so I tried to add levels to it.

The spell creates a skull that is shot out and then at the end of its path shoots carrion swarm missiles in all directions within a certain radius.

So The Dummy unit uses a custom carrion swarm ability to create the nova.

What I did was I took the Custom Carrion swarm ability called "Carrion Swarm_Dummy" and added 3 levels to it. With each level I increased the distance 200/500/800. Then in the trigger I added these actions below so it would detect what level "Death wave" is and change the "Carrion Swarm_Dummy" to that level...thus making the dummy unit do level 2 wich would be 500distance....ect.
  • Death Wave
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Death Wave
    • Actions
      • Set WaveCaster = (Triggering unit)
      • Set WavePoint2 = (Target point of ability being cast)
      • Unit - Pause WaveCaster
      • Unit - Make WaveCaster face WavePoint2 over 0.10 seconds
      • Wait 0.10 seconds
      • Unit - Unpause WaveCaster
      • Set WaveReal2 = 370.00
      • Set WaveReal1 = (Angle from (Position of WaveCaster) to WavePoint2)
      • Unit - Create 1 DW_Dummy for (Owner of WaveCaster) at ((Position of WaveCaster) offset by 100.00 towards WaveReal1 degrees) facing WaveReal1 degrees
      • Animation - Change WaveCaster turn speed to 0.50
      • Set WaveSkull = (Last created unit)
      • Trigger - Turn on WaveMove <gen>
      • Trigger - Turn on WaveMove Copy <gen>
      • Wait 1.00 seconds
      • Trigger - Turn off WaveMove <gen>
      • Trigger - Turn off WaveMove Copy <gen>
      • Special Effect - Create a special effect at (Position of WaveSkull) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Special Effect - Create a special effect at (Position of WaveSkull) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Add a 2.00 second Generic expiration timer to WaveSkull
      • Set WavePoint = (Position of WaveSkull)
      • Wait 0.67 seconds
      • Unit - Add a 2.00 second Generic expiration timer to WaveSkull
      • Unit - Hide WaveSkull
      • For each (Integer A) from 1 to 18, do (Actions)
        • Loop - Actions
          • Set WaveReal2 = (WaveReal2 - 20.00)
          • Unit - Create 1 DW_Dummy for (Owner of WaveCaster) at WavePoint facing Default building facing degrees
          • Set DW_Dummy = (Last created unit)
          • [B]If ((Level of Death Wave for CasterUnit) Equal to 2) then do (Unit - Set level of Carrion Swarm_Dummy for DW_Dummy to 2) else do (Do nothing)
          • If ((Level of Death Wave for CasterUnit) Equal to 3) then do (Unit - Set level of Carrion Swarm_Dummy for DW_Dummy to 3) else do (Do nothing)[/B] Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
          • Unit - Order DW_Dummy to Undead Dreadlord - Carrion Swarm (WavePoint offset by 500.00 towards WaveReal2 degrees)
  • WaveMove
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit - Move WaveSkull instantly to ((Position of WaveSkull) offset by 5.00 towards WaveReal1 degrees)
      • Unit Group - Pick every unit in (Units within 200.00 of (Position of WaveSkull) matching (((Owner of (Matching unit)) is an enemy of (Owner of WaveCaster)) Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit - Cause WaveSkull to damage (Picked unit), dealing 3.00 damage of attack type Spells and damage type Normal
  • WaveMove Copy
    • Events
      • Time - Every 0.08 seconds of game time
    • Conditions
    • Actions
      • Special Effect - Create a special effect at (Position of WaveSkull) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
      • Special Effect - Destroy (Last created special effect)
I would appreicate it if some one could help me on this what I changed in the trigger is in bold.
 
Level 15
Joined
Jun 10, 2007
Messages
389
  • If ((Level of Death Wave for CasterUnit) Equal to 2) then do (Unit - Set level of Carrion Swarm_Dummy for DW_Dummy to 2) else do (Do nothing)
    • If ((Level of Death Wave for CasterUnit) Equal to 3) then do (Unit - Set level of Carrion Swarm_Dummy for DW_Dummy to 3) else do (Do nothing)
I figured out that I used the wrong varible... instead of "CasterUnit" it was "WaveCaster" Simple mistake. -.- :eek:
 
Status
Not open for further replies.
Top