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

Casting ability or buff with trigger?

Status
Not open for further replies.
Level 1
Joined
Sep 4, 2010
Messages
6
Hi, I'm new to this forum. As well as the World Editor itself. But I'm practicing myself. I've improved a lot. But still, I have some question. Please help me:
1. How to cast an ability or buff by trigger. Like:
When we use Metamorphosis, all enemy units near me are stunned.
And I know we should use a trigger for this, shouldn't we?
But I can't figure what trigger to use.
2. How to make a spell like DotA - Yurnero's omnislash?
3. How to create a hero's image when we use a trigger to instantly moves our
hero from one place to another?
Example : We have our hero at position A, and we use trigger to moves it to
position B. When moved, it leaves an image of itself at position A for a short
amount of time. Can we?

Thanks...
 
Level 1
Joined
Sep 4, 2010
Messages
6
ok, done with that one. how about editing a missile? I edited a missile (skeletonmage), resize it, it worked. but i want to change the color, how can I?
 
Level 1
Joined
Sep 4, 2010
Messages
6
1st.
  • Stun
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Metamorphosis
    • Actions
      • Set Point_Temp[1] = (Position of (Triggering unit))
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Point_Temp[1] facing Default building facing degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
      • Custom script: call RemoveLocation (udg_Point_Temp[1])
2nd.
Link above
3th.
  • Blink
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Blink
    • Actions
      • Set Point_Temp[2] = (Position of (Triggering unit))
      • Unit - Create 1 Dummy Hero Image for (Owner of (Triggering unit)) at Point_Temp[2] facing Default building facing degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
      • Custom script: call RemoveLocation (udg_Point_Temp[2])
and
  • Blink Clean Up
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Dummy Hero Image
    • Actions
      • Unit - Remove (Triggering unit) from the game
 

Attachments

  • Test map.w3x
    13.8 KB · Views: 96
Level 1
Joined
Sep 4, 2010
Messages
6
ok. I understand now. Now I'm practicing on modeling. In modeling, can we change a unit's attack/run motion? or we have to completely create a new unit with GMAX?
 
ok. I understand now. Now I'm practicing on modeling. In modeling, can we change a unit's attack/run motion? or we have to completely create a new unit with GMAX?
But you didn't downloaded map how can you understand code (first time) without checking map?

Yes you can do that but this isn't place for asking things like that ^^
Use another forum: ↓
Modeling & Animation
 
Level 1
Joined
Sep 4, 2010
Messages
6
hehe, sorry sir. It feels like my blood's running to high to learn and to become an advanced map maker. ok. I'll read that section. thanks.
 
-Kobas-, you need to make many calculations to make a custom illusion. You need to a) add the items carried by the original hero to the new one, you need to make him tinted as blue in the allies' eyes, you need to disable items from being used, you need to make him receive x damage of the original hero and deal y damage, you need to add the Ward classification so that the abilities are invisible, you need to make the illusion special effect, when an illusion dies and so on.

To make an illusion:
  • Unit - Add Wand of Illusions to (Last created unit)
  • Custom script: call IssueTargetOrderById (GetLastCreatedUnit(), 852274, GetTriggerUnit())
 
Level 1
Joined
Sep 4, 2010
Messages
6
yes. for now. I just want to make a simple shadow. Just like Mr.Kobas said. But I appreciate Mr.Pharaoh's idea. And it'll be useful when I completely make my map.

I'm having trouble with trigger ability. I'm making a double cast spell chance with trigger. I know I must use a dummy ability, give it the same ability for the double cast.
But the problem, whenever I use the ability, the dummy doesn't show up and not even cast an ability.

My ability based on shockwave.

The trigger is the same as Stunning Metaporph.
 
Status
Not open for further replies.
Top