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

How to make dummy units cast spell

Status
Not open for further replies.
Level 3
Joined
Aug 29, 2016
Messages
56
uhh. i dont know how to upload that trigger image thing. i would just write the triggers.
Event:.Unit starts the effect of an ability
Condition:.Ability (being cast) equal to MySpell
Action:.Set Caster= Casting unit
.Set Target= Target unit of aibility being cast
.Create 1 dummy for caster facing target
.Add dummyspell for unit
.Order unit to Human-Aerial Shackles Target

i put dots to identify the actions
 
Level 3
Joined
Aug 29, 2016
Messages
56
dummyshackles
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Bind
Actions
Set Caster = (Triggering unit)
Set Target = (Target unit of issued order)
Unit - Create 1 dummycaster for (Owner of Caster) at (Position of Caster) facing (Position of Target)
Unit - Add Binddummy to (Last created unit)
Unit - Order (Last created unit) to Human Dragonhawk Rider - Aerial Shackles Target
so this?
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
  • dummyshackles
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bind
    • Actions
      • Set TempUnit = (Triggering Unit)
      • Set TempPoint = (Position of TempUnit)
      • Set TempUnit2 = (Target unit of ability being cast)
      • Unit - Create 1 Dummy for (Owner of TempUnit) at TempPoint facing (Facing of TempUnit) degrees
      • Set TempUnit3 = (Last created unit)
      • Unit - Add BindDummy to TempUnit3
      • Unit - Add a X second Generic expiration timer to TempUnit // something at least as long as the duration.
      • Unit - Order TempUnit3 to Human Dragonhawk Rider - Aerial Shackles TempUnit2
      • Custom script: call RemoveLocation(udg_TempPoint)
The dummy should have the Can't Raise, Does not decay death type.
 
Level 4
Joined
Jul 26, 2016
Messages
88
@makeranj



I think what he means by manually do it is create the dummy unit for yourself, and from the command card click the ability and select the target in game to verify if the ability itself isnt broken
 
Level 3
Joined
Aug 29, 2016
Messages
56
  • dummyshackles
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bind
    • Actions
      • Set TempUnit = (Triggering Unit)
      • Set TempPoint = (Position of TempUnit)
      • Set TempUnit2 = (Target unit of ability being cast)
      • Unit - Create 1 Dummy for (Owner of TempUnit) at TempPoint facing (Facing of TempUnit) degrees
      • Set TempUnit3 = (Last created unit)
      • Unit - Add BindDummy to TempUnit3
      • Unit - Add a X second Generic expiration timer to TempUnit // something at least as long as the duration.
      • Unit - Order TempUnit3 to Human Dragonhawk Rider - Aerial Shackles TempUnit2
      • Custom script: call RemoveLocation(udg_TempPoint)
The dummy should have the Can't Raise, Does not decay death type.
ok ok , i got it now :)
 
Status
Not open for further replies.
Top