• 🏆 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] is it possible to make a spell?

Status
Not open for further replies.
Level 3
Joined
Nov 12, 2019
Messages
11
Not long ago I came across this spell, from this Chinese map, is it possible to do this spell yourself like in GIF.
It is advisable to want to make triggers on the GUI, if anyone knows how to do it ??
 

Attachments

  • ezgif-7-92190a108128.gif
    ezgif-7-92190a108128.gif
    5.4 MB · Views: 32
Level 25
Joined
Sep 26, 2009
Messages
2,378
the spell itself is rather easy to make imo.
I presume the clouds around the caster is just a single custom special effect. As for the blue beam, it's not a beam, but periodically (i.e. every 0.02 seconds spawned blue explosive effects further and further from the caster

Edit: I added a map with the spell. While it doesn't look as cool as the one in your gif image, it does basically the same
 

Attachments

  • spell.w3m
    25.6 KB · Views: 10
Last edited:
Level 3
Joined
Nov 12, 2019
Messages
11
the spell itself is rather easy to make imo.
I presume the clouds around the caster is just a single custom special effect. As for the blue beam, it's not a beam, but periodically (i.e. every 0.02 seconds spawned blue explosive effects further and further from the caster

Edit: I added a map with the spell. While it doesn't look as cool as the one in your gif image, it does basically the same
I ask you to convert to w3x, causes a card error with such a file
 
Level 25
Joined
Sep 26, 2009
Messages
2,378
well, I have reforged version 1.32.10, so that may be the issue if you are running on classic. I can save the map as w3x, but I cannot say for certain that you will be able to open it.

In case you can't, here are the triggers:

Variables:
1638091347357.png



  • Map Ini
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Playable map area)
      • Set VariableSet distanceOffset = 100.00
      • Set VariableSet explosionRange = 150.00
      • Set VariableSet damage = 100.00

  • SpellStart
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to TestSpell
    • Actions
      • Set VariableSet caster = (Triggering unit)
      • Set VariableSet casterPlayer = (Owner of caster)
      • Set VariableSet casterLoc = (Position of caster)
      • Set VariableSet targetLoc = (Target point of ability being cast)
      • Set VariableSet direction = (Angle from casterLoc to targetLoc)
      • Set VariableSet phase = 1
      • Set VariableSet ticksLeft = 25
      • Custom script: call RemoveLocation(udg_targetLoc)
      • Special Effect - Create a special effect at casterLoc using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Set VariableSet spellEffectPoint = (casterLoc offset by 200.00 towards direction degrees.)
      • Trigger - Turn on Periodic <gen>

  • Periodic
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Set VariableSet ticksLeft = (ticksLeft - 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ticksLeft Equal to 0
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • phase Equal to 1
            • Then - Actions
              • Set VariableSet phase = 2
              • Set VariableSet ticksLeft = 20
            • Else - Actions
              • Trigger - Turn off (This trigger)
              • Custom script: call RemoveLocation(udg_spellEffectPoint)
              • Unit Group - Remove all units from alreadyDamagedUnits.
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • phase Equal to 2
            • Then - Actions
              • Set VariableSet targetLoc = spellEffectPoint
              • Trigger - Run Explode <gen> (ignoring conditions)
              • -------- ---------------- --------
              • Set VariableSet targetLoc = (spellEffectPoint offset by 150.00 towards (direction + 110.00) degrees.)
              • Trigger - Run Explode <gen> (ignoring conditions)
              • Custom script: call RemoveLocation(udg_targetLoc)
              • -------- ---------------- --------
              • Set VariableSet targetLoc = (spellEffectPoint offset by 150.00 towards (direction - 110.00) degrees.)
              • Trigger - Run Explode <gen> (ignoring conditions)
              • Custom script: call RemoveLocation(udg_targetLoc)
              • -------- ---------------- --------
              • Set VariableSet targetLoc = (spellEffectPoint offset by distanceOffset towards direction degrees.)
              • Custom script: call RemoveLocation(udg_spellEffectPoint)
              • Set VariableSet spellEffectPoint = targetLoc
            • Else - Actions

  • Explode
    • Events
    • Conditions
    • Actions
      • Special Effect - Create a special effect at targetLoc using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within explosionRange of targetLoc matching ((((Matching unit) is alive) Equal to True) and ((((Owner of (Matching unit)) is an enemy of casterPlayer.) Equal to True) and (((Matching unit) is in alreadyDamagedUnits.) Equal to False))).) and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to alreadyDamagedUnits
          • Unit - Cause caster to damage (Picked unit), dealing damage damage of attack type Spells and damage type Normal

 

Attachments

  • spell.w3x
    25.6 KB · Views: 8
Status
Not open for further replies.
Top