• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Volcanic Attack need feedback

Status
Not open for further replies.
Level 20
Joined
Jan 6, 2008
Messages
2,622
Hi, ive made my first "spell" i think it looks pwnd and could be usefull, but its so simple. So i need some feedback first.

  • Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Volcanic Attack
    • Actions
      • -------- - --------
      • -------- Setting Variables --------
      • Set TempCaster = (Triggering unit)
      • Set TempLoc = (Target point of ability being cast)
      • Set TempGroup = (Units within 200.00 of TempLoc)
      • -------- - --------
      • -------- Some Fx --------
      • Special Effect - Create a special effect at TempLoc using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
      • Set TempFX = (Last created special effect)
      • Special Effect - Destroy TempFX
      • -------- - --------
      • -------- Unit Group --------
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an enemy of (Owner of TempCaster)) Equal to True
              • ((Picked unit) is Magic Immune) Not equal to True
              • ((Picked unit) has buff Invulnerable) Not equal to True
            • Then - Actions
              • -------- - --------
              • -------- FX --------
              • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Weapons\SearingArrow\SearingArrowMissile.mdl
              • Set TempFX = (Last created special effect)
              • Special Effect - Destroy TempFX
              • -------- - --------
              • -------- Edit Damage --------
              • Unit - Cause TempCaster to damage (Picked unit), dealing (Random real number between ((Real((Level of (Ability being cast) for TempCaster))) x 30.00) and ((Real((Level of (Ability being cast) for TempCaster))) x 31.00)) damage of attack type Spells and damage type Normal
              • -------- - --------
            • Else - Actions
      • -------- - --------
      • -------- REMOVING LEAKS --------
      • Custom script: call DestroyGroup(udg_TempGroup)
      • Custom script: call RemoveLocation(udg_TempLoc)
      • -------- - --------
 

Attachments

What you mean with efficiency near 0? Anyway, give him a chance, its his first spell, maybe a happy critic from a spell moderator would make him happy ^^

  • ...Random real number between ((Real((Level of (Ability being cast) for TempCaster))) x 30.00) and ((Real((Level of (Ability being cast) for TempCaster))) x 31.00))
He's calculating the ability level twice. It should be put to a variable I believe.

  • Temp_Real = Real((Level of (Ability being cast) for TempCaster))
  • ...Random real number between (Temp_Real) x 30.00) and (Temp_Real)) x 31.00))
Or perhaps even better to set the numbers to variables when you level up the skill.

That way you don't calculate them each time the spell is cast.

I would also question the randomizing between 30 and 31. The difference is only 3 (or ~3,5 %) damage at ability level 3.

Why not make the values further apart or just remove the randomizing altogether.
 
You dont have to set the triggering unit to a variable!! You dont have to set the special effect to a variable!! Only do this if you have a wait function. You dont even have to set triggering unit if you have to wait, only if it must be used in a separate trigger.
 
Status
Not open for further replies.
Back
Top