Special Effect Then Damage ?

ggtank

New Member
Reaction score
0
Hello again..
I wanna make a skill like Dota Pugna's Nether Blast.

First there will be a special effect at the point of ability being cast.
When animation finishes.It will damage units near 500 aoe of target point.

I can do the damage part easily with triggers..But it doesn't wait for special effect to end.Also if i use wait, it sometimes doesn't damage(when animation cancelling)..

Can someone do this without wait function ?I am using GUI.


Thanks
 

Grymlax

Probably not around
Reaction score
138
you can create a dummy unit at the point of the ability being cast, give him an expiration timer and then when he dies you trigger the damage.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Not easy with out wait and in dota the effect and damage are at same time
 

ggtank

New Member
Reaction score
0
Not easy with out wait and in dota the effect and damage are at same time

If I use wait, when I make animation cancelling, it doesnt deal any dmg.

Yes, I want it to be like it is in DotA. If possible, same time will be better, how can i do this
 

Komaqtion

You can change this now in User CP.
Reaction score
469
This should work :D
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (Your_Ability)
    • Actions
      • Set TempPoint = (Target point of ability being cast)
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Set TempGroup = (Units within 500.00 of TempPoint matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_TempGroup)
      • Custom script: call RemoveLocation(udg_TempPoint)


If you want to wait at first, just add it :D but that'll make it non-MUI :(
Change the special effect to what you want ;)
 

ggtank

New Member
Reaction score
0
This should work :D
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (Your_Ability)
    • Actions
      • Set TempPoint = (Target point of ability being cast)
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Set TempGroup = (Units within 500.00 of TempPoint matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_TempGroup)
      • Custom script: call RemoveLocation(udg_TempPoint)


If you want to wait at first, just add it :D but that'll make it non-MUI :(
Change the special effect to what you want ;)

and is there something i can do to make it mui
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
Nether Blast is based on Blizzard or Rain of Fire
---
if you want to trigger the damage, a wait is un-avoidable. So we will have to use local var (err... Custom Script)

Trigger:
  • Nether Blast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Nether Blast (triggered)
    • Actions
      • -------- declare the variables --------
      • -------- a local var with type unit and name "c" --------
      • Custom script: local unit c
      • -------- a local var with type location (point) and name "loc" --------
      • Custom script: local location loc
      • -------- ---- --------
      • Set TempUnit = (Triggering unit)
      • Set TempPoint = (Target point of ability being cast)
      • -------- name of global vars (create in Ctrl + B) in jass wll have the prefix "udg_" --------
      • -------- set value of TempUnit to c --------
      • Custom script: set c = udg_TempUnit
      • -------- set value of TempPoint to loc --------
      • Custom script: set loc = udg_TempPoint
      • Wait 1.00 seconds
      • -------- set value of c to TempUnit --------
      • Custom script: set udg_TempUnit = c
      • -------- null c to prevent leak --------
      • Custom script: set c = null
      • -------- same as above --------
      • Custom script: set udg_TempPoint = loc
      • Custom script: set loc = null
      • -------- ---- --------
      • Set TempInt = (Level of Nether Blast (triggered) for TempUnit)
      • Set TempReal = (100.00 + (50.00 x (Real(TempInt))))
      • Set TempGroup = (Units within 500.00 of TempPoint matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of TempUnit)) Equal to True)))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause TempUnit to damage (Picked unit), dealing TempReal damage of attack type Spells and damage type Fire
      • Custom script: call DestroyGroup( udg_TempGroup )
      • Custom script: call RemoveLocation( udg_TempPoint )


take a look at the demo map I attached below, it contains the... "normal" Nether Blast and the triggered one. :)
 

Attachments

  • [Spell] Nether Blast.w3x
    13.9 KB · Views: 118

ggtank

New Member
Reaction score
0
Nether Blast is based on Blizzard or Rain of Fire
---
if you want to trigger the damage, a wait is un-avoidable. So we will have to use local var (err... Custom Script)

Trigger:
  • Nether Blast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Nether Blast (triggered)
    • Actions
      • -------- declare the variables --------
      • -------- a local var with type unit and name "c" --------
      • Custom script: local unit c
      • -------- a local var with type location (point) and name "loc" --------
      • Custom script: local location loc
      • -------- ---- --------
      • Set TempUnit = (Triggering unit)
      • Set TempPoint = (Target point of ability being cast)
      • -------- name of global vars (create in Ctrl + B) in jass wll have the prefix "udg_" --------
      • -------- set value of TempUnit to c --------
      • Custom script: set c = udg_TempUnit
      • -------- set value of TempPoint to loc --------
      • Custom script: set loc = udg_TempPoint
      • Wait 1.00 seconds
      • -------- set value of c to TempUnit --------
      • Custom script: set udg_TempUnit = c
      • -------- null c to prevent leak --------
      • Custom script: set c = null
      • -------- same as above --------
      • Custom script: set udg_TempPoint = loc
      • Custom script: set loc = null
      • -------- ---- --------
      • Set TempInt = (Level of Nether Blast (triggered) for TempUnit)
      • Set TempReal = (100.00 + (50.00 x (Real(TempInt))))
      • Set TempGroup = (Units within 500.00 of TempPoint matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of TempUnit)) Equal to True)))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause TempUnit to damage (Picked unit), dealing TempReal damage of attack type Spells and damage type Fire
      • Custom script: call DestroyGroup( udg_TempGroup )
      • Custom script: call RemoveLocation( udg_TempPoint )


take a look at the demo map I attached below, it contains the... "normal" Nether Blast and the triggered one. :)

Thanks a lot..It worked...

Thanks for all replies, I love you guys =P
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top