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

(Owner of (Target unit of ability being cast))

Status
Not open for further replies.
Level 2
Joined
Mar 17, 2005
Messages
10
this condition does not work! Why? anybody know?
here is my code:

Event: Unit - A unit owned by Player 1 (Red) Begins casting an ability

Condition: (Owner of (Target unit of ability being cast)) Equal to Player 2 (Blue)


Action: Game - Display to (All players) the text: trigger

Action: Unit - Order (Casting unit) to Stop



if i take out the conditon, it works fine, but when i insert the condition, it does not trigger?

the first action is just a visual to see if it is triggered

Thanks in advance
Jeff
 
Level 2
Joined
Mar 17, 2005
Messages
10
That doesnt work either, I think you are right though, about it not aquiring the target. If I remove the condition, it works fine. How can I accomplish this task?
The map we are writing is a collosium, and we dont want players attacking OR casting on each other until they capture the flag in the middle of a butt load of creeps. At that point the no attack and or spells triggers are disabled. I wonder what conditions are met when a spell targets a unit?
Thanks for your help.
 
Level 7
Joined
Feb 15, 2005
Messages
183
try this

Generic Unit Event:
Unit-A unit is issued an order targeting an object
Conditions
Owner of triggering unit equal to Player 1 (Red)
Owner of (Target unit of issued order)) equal to Player 2 (Blue)
Action:
Order triggering unit to stop.
 
Untitled Trigger 001
Events
Unit - A unit owned by Player 1 (Red) Begins casting an ability
Conditions
(Owner of (Target unit of ability being cast)) Equal to Player 2 (Blue)
Actions
Game - Display to (All players) the text: trigger
Unit - Order (Casting unit) to Stop


i used this, same as you as i can see, and it works, i put a Mountain king for player 1 (red) and 3 peasants for player 2 (blue) and it works.

he beggins casting but the missle doesn't come out, the message does and as it should, he stops for a moment.

It hepened to me once, try creating the trigger again.
 
Level 2
Joined
Mar 17, 2005
Messages
10
I have a hard time with names and I am fairly new to the game, but I love logical programing. My hero is casting a spell, one spell has a small targeting curser, that pinpoints a specific target, such as a chain lightning, and one spell has a large elaberate curser that covers an entire area, such as a raining spell. What is the difference between these 2 "target areas"? Which did your work with, both? Mine did not work with the area target, I will try the specific target today.
Thanks for helping me figure this out.
 
Level 13
Joined
Dec 29, 2004
Messages
597
Jeffiec said:
No, that doesn't work either, they just cast away. Seems like the condition I had to start would work, but it doesn't? anyone know why? any other suggestions?
Thanks again for helping.

Hmm.. i think you should change "begins casting an ability" with "start the effect of an ability". I always use this for my single target, area target, and channeling spell, and it always work.
 
Level 2
Joined
Mar 17, 2005
Messages
10
Just like begins casting an ability , start the effect of an ability works, until I put a condition in thats says dont triger if it is another player. I want to be able to cast abilities on creeps around the board, but, neither player can do damage to another player until they capture the flag! I got the attack part working, but its the abilites that I cant get figured out.
Thanks again.
 
Status
Not open for further replies.
Top