• 🏆 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!

I need help with improving my skill appearance!!

Status
Not open for further replies.
Level 3
Joined
Aug 12, 2010
Messages
22
I wanted to make some other "effects" for my skill!So I modified a swordman to look like a shockwave!And I put it into my skill!I set its facing degree to 0,45,90,135,180,225,270 and 315 degree!It all works well with the skill but that unit I have put into the skill stays on the casting location forever!I cant remove it except in editor!!So that is my problem!!
 
Level 11
Joined
Jul 7, 2010
Messages
709
Maybe if you tried using an special effect like this
  • Actions:
  • Set Loc = Position of(Triggering unit)
  • Unit - Create 1 Divine Punishment for (Owner of(Triggering unit))at Loc facing Default building facing degrees.
  • Special Effect - Create a special effect at (Loc) using ( Your model).
  • Set Effect = Last created special effect
  • Custom script: call RemoveLocation (udg_Loc)
  • Custom script: call DestroyEffect(udg_Effect)
 
Level 3
Joined
Aug 12, 2010
Messages
22
It doesn't work!I think it's because those "effects" are not quite effects!They are units with changed appearance and some other features!!:confused:
spells_3508_screenshot.jpg
 
Level 15
Joined
Jul 9, 2008
Messages
1,552
ok then here

right click on on the triggers name where your events ect is
  • trigger name
    • Events
    • Conditions
    • Actions
is and go copy as text then past it inbatween [TRIGGER(nothing here)][/TRIGGER]

there is also a icon you can click on that automaticly adds the [TRIGGER(nothing here)][/TRIGGER] text but i cant show you it i dunno how to upload images that way
 
  • Set Points[1] = (Position of (Triggering unit))
  • For each (IntegerA) from 1 to 8, do (Actions)
    • Loop - Actions
      • Set Points[2] = (Points[1] offset by 250.00 towards (Real(IntegerA)) x 36.00) degrees)
      • Special Effect - Create a special effect at Points[2], using xxx.mdx
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation (udg_Points[2])
  • Custom script: call RemoveLocation (udg_Points[1])
The same with units:

  • Set Points[1] = (Position of (Triggering unit))
  • For each (IntegerA) from 1 to 8, do (Actions)
    • Loop - Actions
      • Set Points[2] = (Points[1] offset by 250.00 towards (Real(IntegerA)) x 36.00) degrees)
      • Unit - Create 1 Swordman for (Owner of (Triggering unit)) at Points[2] facing ((Real(IntegerA)) x 36.00) degrees
      • Unit - Add a 3.00 seconds Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation (udg_Points[2])
  • Custom script: call RemoveLocation (udg_Points[1])
 
Level 3
Joined
Aug 12, 2010
Messages
22
  • Set Points[1] = (Position of (Triggering unit))
  • For each (IntegerA) from 1 to 8, do (Actions)
    • Loop - Actions
      • Set Points[2] = (Points[1] offset by 250.00 towards (Real(IntegerA)) x 36.00) degrees)
      • Special Effect - Create a special effect at Points[2], using xxx.mdx
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation (udg_Points[2])
  • Custom script: call RemoveLocation (udg_Points[1])
The same with units:

  • Set Points[1] = (Position of (Triggering unit))
  • For each (IntegerA) from 1 to 8, do (Actions)
    • Loop - Actions
      • Set Points[2] = (Points[1] offset by 250.00 towards (Real(IntegerA)) x 36.00) degrees)
      • Unit - Create 1 Swordman for (Owner of (Triggering unit)) at Points[2] facing ((Real(IntegerA)) x 36.00) degrees
      • Unit - Add a 3.00 seconds Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation (udg_Points[2])
  • Custom script: call RemoveLocation (udg_Points[1])
It works!!Thank you man!!! And thank you all for helping!
 
Level 3
Joined
Aug 12, 2010
Messages
22
  • Divine punishment
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Divine Punishment
    • Actions
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
      • Set Loc_2 = (Loc offset by 250.00 towards (Real((Integer A))) degrees)
      • Set Loc = (Position of (Triggering unit))
      • Unit - Create 1 Divine Punishment for (Owner of (Triggering unit)) at Loc facing Default building facing degrees
      • Special Effect - Destroy (Last created special effect)
      • Unit - Create 1 Divine Punishment Posebni for (Owner of (Triggering unit)) at Loc facing 315.00 degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Divine Punishment Posebni for (Owner of (Triggering unit)) at Loc facing 270.00 degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Divine Punishment Posebni for (Owner of (Triggering unit)) at Loc facing 225.00 degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Divine Punishment Posebni for (Owner of (Triggering unit)) at Loc facing 180.00 degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Divine Punishment Posebni for (Owner of (Triggering unit)) at Loc facing 135.00 degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Divine Punishment Posebni for (Owner of (Triggering unit)) at Loc facing 90.00 degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Divine Punishment Posebni for (Owner of (Triggering unit)) at Loc facing 45.00 degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Divine Punishment Posebni for (Owner of (Triggering unit)) at Loc facing 0.00 degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Special Effect - Create a special effect at Loc using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
 
Status
Not open for further replies.
Top