HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ability Question

11-04-2003, 12:25 AM#1
Bolt
Say a unit cast an ability like impale. And you use the event A unit begins to cast an ability. Is it possible to use a trigger to do something to the unit being targeted?

and

How do you order a unit to cast a spell on another unit? There's a few spells I could find in casting.

Any help?
11-04-2003, 12:28 AM#2
AllPainful
To your first question: In WEU you can, (you just use "advanced - get target of last issued order of casting unit") but in the regular WE, no. you would have to make 2 triggers, one "Unit Issued an order targeting unit" that will store the "target" in a variable, and the second trigger you would call apon said variable...

I HIGHLY recommend getting WEU if you want to call apon a target of a spell.... You can find its download in the "Map making tools" forum.

To your second question: The trigger is "Unit - Issue order targeting unit". If its a custom spell you would have to convert the trigger to custom text and then find the 4 digit code for your custom spell and put it in the trigger (AGAIN, UNLESS YOUR USING WEU, WEU will let you choose custom spells in the trigger editor.)
11-04-2003, 04:32 AM#3
Bolt
How would you find a 4 digit code for your custom spell.

I tried WEU, but it did not show any of the functions you mentioned.

1.04.2 is the latest ver right?

If you have to do something special to get those function, do tell.
11-04-2003, 06:53 AM#4
AllPainful
I use WEU and I know the fuctions are there... I will look to see EXACTLY where they are in a minute and edit this post.

As for getting the 4 digit code, you have to go into the object editor and then choose to view the RAW data.



EDIT: Ok, where the "Advanced" thing I was talking about is, just go about setting up your triggers, and when you come to where you want to access the targeted unit it will prolly defualt to "(triggering unit)" seems how thats what the mostly defualt to. Click on the "triggering Unit" and scroll to the VERY BOTTOM and thats where you will find the advanced triggers. The one you want is "Advanced - Get units last ordered target" and below it will say "Get last order target of unit" and you just change the "unit" to casting unit and you will have the target of the casters spell.

PS. If you didn't make the map with WEU I think you MIGHT (Ask PitzerMike to be sure) have to import the Blizzard.j that comes with WEU into your map.
11-04-2003, 03:02 PM#5
Bolt
When I patch the WEU, it doesn't show any of those advance triggers though.. Even when I tried to make a new map. How do you import that blizzard.j? As in through import manager?
11-04-2003, 04:58 PM#6
35263526
Use WEU Enhancer to make your map. Make sure you check all the function except for Protect unless you want that.