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

[Trigger] My Very First Spell Problem

Status
Not open for further replies.
Level 8
Joined
Sep 20, 2011
Messages
583
Since i am now interested in spells, i want to make one,but i got a small question:
1.how am i supposed to combine 2 spell effects?
2.how can i put special effect "thunder clap" when the lightning hit the enemies?
Spell map for Q #2:
http://www.hiveworkshop.com/forums/pastebin_data/n0kptn/_files/Kyjel Spell.w3x

should i really need to post the map or not?
or should i just put the trigger?,but i dont know how to :p
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
1. You trigger it? Not quite sure what you're asking.
2. You could use a damage detection system. There isn't any way to detect whether the damage comes from a spell or normal attack, or from hich spell the damage comes from. You would need to trigger all damage in your map.

Your spell should look like this:
  • Lightning Burst
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Lightning Burst
    • Actions
      • Set point = (Target point of ability being cast)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Lighting burst for (Triggering unit)) Equal to 1
        • Then - Actions
          • Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
          • Unit - Cause (Triggering unit) to damage circular area after 0.50 seconds of radius 600.00 at point, dealing 30.00 damage of attack type Spells and damage type Magic
          • Wait 10.00 seconds
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Lighting burst for (Triggering unit)) Equal to 2
            • Then - Actions
              • Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
              • Unit - Cause (Triggering unit) to damage circular area after 0.50 seconds of radius 650.00 at point, dealing 40.00 damage of attack type Spells and damage type Magic
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Lighting burst for (Triggering unit)) Equal to 3
                • Then - Actions
                  • Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
                  • Unit - Cause (Triggering unit) to damage circular area after 0.50 seconds of radius 725.00 at point, dealing 55.00 damage of attack type Spells and damage type Magic
                • Else - Actions
          • Wait 15.00 seconds
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_point)
Read about leaks:http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/

However that wait isn't really acceptable triggering. If you create any other effect before you destroy the effect created here, you ill cause a leak since you have no way of destroying that effect.
 
Level 8
Joined
Sep 20, 2011
Messages
583
thanks alot :D.i trigger cause i dont know how to jass,vjass or any kind of jass
Anyways i just followed the "deprotected old DotA [Growth {skill of tiny}]" trigger.
1 more thing

where can i find that [Set point = (Target point of ability being cast)]
Cause it seems i cant find the ["Set Point = (Target of ability being cast")
is the word "point" a variable
please just tell me where to find this and i aint gonna ask anything to you again...maybe



wish i dont get another neutral rep again for saying deprotected maps


Oh yeah 1 more thing,what is the difference between Vjass and Jass script?
 
Last edited:
Status
Not open for further replies.
Top