• 🏆 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] Volcanic Attack need feedback

Status
Not open for further replies.
Level 20
Joined
Jan 6, 2008
Messages
2,627
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

  • Spelltest.w3x
    18.8 KB · Views: 39
Level 37
Joined
Mar 6, 2006
Messages
9,240
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.
 
Level 11
Joined
May 31, 2008
Messages
698
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.
 
Level 20
Joined
Jan 6, 2008
Messages
2,627
Added another effect, + working on another spell, UNDER CONSTRUCTION.

  • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Polymorph\PolyMorphTarget.mdl
 

Attachments

  • Spelltest.w3x
    20.9 KB · Views: 27
Status
Not open for further replies.
Top