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

How to combine bash and critical, and banish and shockwave???

Status
Not open for further replies.
Level 3
Joined
May 2, 2013
Messages
56
For the guys who are confuse, first, how to create an ability out of bash and critical strike?

I tried to create the ability Critical Strike with a "Stunned-Paused" buff (i forgot whatit really spells) because it's the buff of Bash ability. I figured out that this buff gives you the "stun" ability. I was wrong, it doesn't work, the critical stike part works only.

Second, to create ability out of banish and shockwave.

I tried to do the same if it works (let's face it, i don't learn XD).... I create Banish, then, make the art effect like Shockwave ability and add Shockwave buff.

I know that I asked two things for help... But they're just the same, right... Maybe I will use headaching triggers.... Please help...
:thumbs_up:
 
Level 16
Joined
Dec 15, 2011
Messages
1,423
Stuff involving missles is a bit tricky for beginners. This is the basic principle:

Event Start ability effect
Cond Ability = Banish (missle)
Action
Create a dummy unit acting as the missle
Turn on a periodic trigger to move the dummy

Periodic Trigger

Event Every 0.03s
Action
If distance between missle and target < 100
Then
Order dummy to cast Banish on target
Kill missle
Turn off This trigger
Else
Locate the to-move-to point based on the angle between the dummy and the target
Move the dummy to it

I am on a phone so I can only post pseudo-code. I am sorry for the inconvenience.

Request this in a spell workshop if you can't do it yourself.
 
Level 16
Joined
Jul 31, 2012
Messages
2,217
Like this? (this is just doomlord's technique)
  • Cast Trigger
  • Events -
    • Unit - A unit starts the effect of an ability
  • Conditions -
    • (Ability being cast) equal to your ability
  • Actions -
    • Set Missile Speed = 1000 (the speed of the custom missle)
    • Set temp location = Position of triggering unit
    • Set temp location 1 = Position of target unit of ability being cast
    • Unit - create 1 dummy for (owner of (triggering unit) at (temp location) facing (Angle between temp location and temp location 1)
    • Trigger - Turn (Move Trigger) On
    • Set TARGET = target unit of ability being cast
    • Set DUMMY = Last Created Unit
    • Custom script: Call RemoveLocation(udg_temp location)
    • Custom script: Call RemoveLocation(udg_temp location 1)
  • Move Trigger
  • Events -
    • Time - Every 0.03 of game time
  • Conditions -
  • Actions -
    • Set temp location = Position of (DUMMY)
    • Set temp location 1 = Position of (TARGET)
    • Set temp location 2 = (temp location 1 offset by (Missile Speed) * 0.03 with angle (Angle between temp location and temp location 1
    • Unit - Move TARGET to temp location 2 instantly
    • If (Conditions) Then (Actions) Else (Actions) -
      • Conditions -
        • Distance between temp location and temp location 1 less than or equal to 60
      • Then -
        • Unit - Issue DUMMY to Human - Blood Mage - Banish TARGET
        • Unit - Kill DUMMY
        • Trigger - Turn (This Trigger) Off
      • Else -
    • Custom script: Call RemoveLocation(udg_temp location)
    • Custom script: Call RemoveLocation(udg_temp location 1)
    • Custom script: Call RemoveLocation(udg_temp location 2)
 
Last edited:
Level 3
Joined
May 2, 2013
Messages
56
Like this? (this is just doomlord's technique)
  • Cast Trigger
  • Events -
    • Unit - A unit starts the effect of an ability
  • Conditions -
    • (Ability being cast) equal to your ability
  • Actions -
    • Set Missile Speed = 1000 (the speed of the custom missle)
    • Set temp location = Position of triggering unit
    • Set temp location 1 = Position of target unit of ability being cast
    • Unit - create 1 dummy for (owner of (triggering unit) at (temp location) facing (Angle between temp location and temp location 1)
    • Trigger - Turn (Move Trigger) On
    • Set TARGET = target unit of ability being cast
    • Set DUMMY = Last Created Unit
    • Custom Script: Call RemoveLocation(udg_temp location)
    • Custom Script: Call RemoveLocation(udg_temp location 1)
  • Move Trigger
  • Events -
    • Time - Every 0.03 of game time
  • Conditions -
  • Actions -
    • Set temp location = Position of (DUMMY)
    • Set temp location 1 = Position of (TARGET)
    • Set temp location 2 = (temp location 1 offset by (Missile Speed) * 0.03 with angle (Angle between temp location and temp location 1
    • Unit - Move TARGET to temp location 2 instantly
    • If (Conditions) Then (Actions) Else (Actions) -
      • Conditions -
        • Distance between temp location and temp location 1 less than or equal to 60
      • Then -
        • Unit - Issue DUMMY to Human - Blood Mage - Banish TARGET
        • Unit - Kill DUMMY
        • Trigger - Turn (This Trigger) Off
      • Else -
    • Custom Script: Call RemoveLocation(udg_temp location)
    • Custom Script: Call RemoveLocation(udg_temp location 1)
    • Custom Script: Call RemoveLocation(udg_temp location 1)
Thanks.... Jad..... I'll be editing on Saturday... I got a busy week... :ogre_haosis:
 
Level 3
Joined
May 2, 2013
Messages
56
Got an another one.... How to make a shockwave that makes enemy units affcted moves backward.... Please help!!
:vw_sad:
 
Level 2
Joined
Jun 15, 2013
Messages
10
well thats even more triggering^^
i'd suggest you reading a tutorial on trigger enhanced abilitys in general

for this one you need one starttrigger and a second trigger that activates every 0.0? seconds
the first one activates the second when your ability is cast (wich is off at gamestart by default)
the other one creates a dummie that is moved a little away from your hero every time the trigger is proced (every 0.0? seconds) and all units in range ar added to a group to be also affected
these kind of triggers are extremely limited when you don't use hastables

but there are tons of good tutorials for stuff like this
check here: http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/
 
Status
Not open for further replies.
Top