• 🏆 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] Blink & Damage

Status
Not open for further replies.
Level 4
Joined
Sep 12, 2008
Messages
111
I can only see the special effects and can blink but I cannot damage them.....Here is the trigger
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Blink
  • Actions
    • Set Position_Caster = (Position of (Casting unit))
    • Set Picked_Point = (Position of (Picked unit))
    • Set Target_Ability = (Target point of ability being cast)
    • Set Special_Inter = (Special_Inter + 1)
    • Special Effect - Create a special effect at Position_Caster using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    • Set Special_Effect[Special_Inter] = (Last created special effect)
    • Set Unit_Group = (Units within 250.00 of Position_Caster matching ((Booleans_Enemy Equal to True) and ((Booleans_Alive Equal to True) and (((Matching unit) is A flying unit) Equal to False))))
    • Unit Group - Pick every unit in Unit_Group and do (Actions)
      • Loop - Actions
        • Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 250.00 at Position_Caster, dealing 0.00 damage of attack type Hero and damage type Normal
        • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 100.00)
    • Custom script: call DestroyGroup (udg_Unit_Group)
    • Set Unit_Group = (Units within 250.00 of Target_Ability matching ((Booleans_Enemy Equal to True) and ((Booleans_Alive Equal to True) and (((Matching unit) is A flying unit) Equal to False))))
    • Set Special_Inter = (Special_Inter + 1)
    • Special Effect - Create a special effect at Target_Ability using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    • Set Special_Effect[Special_Inter] = (Last created special effect)
    • Unit Group - Pick every unit in Unit_Group and do (Actions)
      • Loop - Actions
        • Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 250.00 at Target_Ability, dealing 0.00 damage of attack type Hero and damage type Normal
        • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 100.00)
    • Custom script: call RemoveLocation (udg_Position_Caster)
    • Custom script: call DestroyGroup (udg_Unit_Group)
    • Wait 0.35 seconds
    • Trigger - Run Spell Effect Buffer <gen> (ignoring conditions)
Please help me if you can...Thanks =)
 
Level 5
Joined
Jan 4, 2007
Messages
103
Ignore it, just saw, Set Life of Picked Unit to Life of Picked Unit - 100. Anyway, you've put Set Life of Picked Unit ect. and damage Target area. Better to use target because if you use Set Life of Picked Unit ect. if the Unit dies you will not get the bounty for it. Also you used pick every unit in group and then instead of damage Target (picked Unit) you've put Damage Target Area.:) Hope it helps:)
 
Level 4
Joined
Sep 12, 2008
Messages
111
The DooM said:
Ignore it, just saw, Set Life of Picked Unit to Life of Picked Unit - 100. Anyway, you've put Set Life of Picked Unit ect. and damage Target area. Better to use target because if you use Set Life of Picked Unit ect. if the Unit dies you will not get the bounty for it. Also you used pick every unit in group and then instead of damage Target (picked Unit) you've put Damage Target Area.:) Hope it helps:)
Do you mean
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Blink
  • Actions
    • Set Position_Caster = (Position of (Casting unit))
    • Set Picked_Point = (Position of (Picked unit))
    • Set Target_Ability = (Target point of ability being cast)
    • Set Special_Inter = (Special_Inter + 1)
    • Special Effect - Create a special effect at Position_Caster using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    • Set Special_Effect[Special_Inter] = (Last created special effect)
    • Set Unit_Group = (Units within 250.00 of Position_Caster matching ((Booleans_Enemy Equal to True) and ((Booleans_Alive Equal to True) and (((Matching unit) is A flying unit) Equal to False))))
    • Unit Group - Pick every unit in Unit_Group and do (Actions)
      • Loop - Actions
        • Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 250.00 at Position_Caster, dealing 100.00 damage of attack type Magic and damage type Normal
    • Custom script: call DestroyGroup (udg_Unit_Group)
    • Set Unit_Group = (Units within 250.00 of Target_Ability matching ((Booleans_Enemy Equal to True) and ((Booleans_Alive Equal to True) and (((Matching unit) is A flying unit) Equal to False))))
    • Set Special_Inter = (Special_Inter + 1)
    • Special Effect - Create a special effect at Target_Ability using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    • Set Special_Effect[Special_Inter] = (Last created special effect)
    • Unit Group - Pick every unit in Unit_Group and do (Actions)
      • Loop - Actions
        • Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 250.00 at Target_Ability, dealing 100.00 damage of attack type Magic and damage type Normal
    • Custom script: call RemoveLocation (udg_Position_Caster)
    • Custom script: call DestroyGroup (udg_Unit_Group)
    • Wait 0.35 seconds
    • Trigger - Run Spell Effect Buffer <gen> (ignoring conditions)
? I can't damage them...??
 
Last edited:
Level 5
Joined
Jan 4, 2007
Messages
103
I can't damage them...??

Hm...try Damage Target action instead of Damage Area. It's just 1 below Damage Area, your action.:)

Also try this, istead of your Unit_Group= put this:

  • Set Position_Caster_Dmg = (Region centered at (Position_Caster)) with size (300.00, 300.00))
  • Set Unit_Group = (Units in Position_Caster_Dmg) matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching) is A flying Unit Equals to False)
  • Custom script: call RemoveRect (udg_Position_Caster_Dmg)
 
Level 4
Joined
Sep 12, 2008
Messages
111
o_O

  • Actions
    • Set Position_Caster = (Position of (Casting unit))
    • Set Picked_Point = (Position of (Picked unit))
    • Set Target_Ability = (Target point of ability being cast)
    • Set Special_Inter = (Special_Inter + 1)
    • Special Effect - Create a special effect at Position_Caster using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    • Set Special_Effect[Special_Inter] = (Last created special effect)
    • Set Unit_Group = (Units within 250.00 of Position_Caster matching ((Booleans_Enemy Equal to True) and ((Booleans_Alive Equal to True) and (((Matching unit) is A flying unit) Equal to False))))
    • Unit Group - Pick every unit in Unit_Group and do (Actions)
      • Loop - Actions
        • Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 250.00 at Position_Caster, dealing 100.00 damage of attack type Magic and damage type Normal
        • Unit - Cause (Casting unit) to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
    • Custom script: call DestroyGroup (udg_Unit_Group)
    • Set Unit_Group = (Units within 250.00 of Target_Ability matching ((Booleans_Enemy Equal to True) and ((Booleans_Alive Equal to True) and (((Matching unit) is A flying unit) Equal to False))))
    • Set Special_Inter = (Special_Inter + 1)
    • Special Effect - Create a special effect at Target_Ability using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    • Set Special_Effect[Special_Inter] = (Last created special effect)
    • Unit Group - Pick every unit in Unit_Group and do (Actions)
      • Loop - Actions
        • Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 250.00 at Target_Ability, dealing 100.00 damage of attack type Magic and damage type Normal
        • Unit - Cause (Casting unit) to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
    • Custom script: call RemoveLocation (udg_Position_Caster)
    • Custom script: call DestroyGroup (udg_Unit_Group)
    • Wait 0.35 seconds
    • Trigger - Run Spell Effect Buffer <gen> (ignoring conditions)
I Still Can't Get It Right..T_T
EDIT :
  • Actions
    • Set Position_Caster = (Position of (Casting unit))
    • Set Picked_Point = (Position of (Picked unit))
    • Set Target_Ability = (Target point of ability being cast)
    • Set Special_Inter = (Special_Inter + 1)
    • Special Effect - Create a special effect at Position_Caster using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    • Set Special_Effect[Special_Inter] = (Last created special effect)
    • Set Position_Caster_Dmg = (Region centered at Position_Caster with size (300.00, 300.00))
    • Set Unit_Group = (Units in Position_Caster_Dmg matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is A flying unit) Equal to False))))
    • Unit Group - Pick every unit in Unit_Group and do (Actions)
      • Loop - Actions
        • Unit - Cause (Casting unit) to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
    • Custom script: call DestroyGroup (udg_Unit_Group)
    • Set Special_Inter = (Special_Inter + 1)
    • Special Effect - Create a special effect at Target_Ability using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    • Set Special_Effect[Special_Inter] = (Last created special effect)
    • Unit Group - Pick every unit in Unit_Group and do (Actions)
      • Loop - Actions
        • Unit - Cause (Casting unit) to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
    • Custom script: call RemoveLocation (udg_Position_Caster)
    • Custom script: call DestroyGroup (udg_Unit_Group)
    • Custom script: call RemoveRect (udg_Position_Caster_Dmg)
    • Wait 0.35 seconds
    • Trigger - Run Spell effect buffer <gen> (ignoring conditions)
Some times can,some times cannot o_O ..I Attached a test map
 

Attachments

  • Test.w3x
    14 KB · Views: 64
Last edited:
Level 5
Joined
Jan 4, 2007
Messages
103
Here, didn't try but should be fixed. Also I've put Target_Ability instead of Position_Caster, don't know if you want it at the postion of the caster when you cast it or at the Target Area of Ability Being Cast.:)

Now download, sorry:)
 

Attachments

  • Test.w3x
    14.3 KB · Views: 62
Level 4
Joined
Sep 12, 2008
Messages
111
THANKS For wasting your time o.o

Your reward,The DooM =) Attached
EDIT : Did you download it???
 

Attachments

  • The DooM.gif
    The DooM.gif
    86.4 KB · Views: 113
Status
Not open for further replies.
Top