| 11-09-2004, 09:30 PM | #1 |
when i use this trigger Code:
Ally Target Tauren Chieftain
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Unit-type of (Targeted unit)) Equal to Blademaster
((Owner of (Triggering unit)) is an enemy of Player 1 (Red)) Equal to True
((Owner of (Triggering unit)) is an enemy of Player 2 (Blue)) Equal to True
(Unit-type of (Triggering unit)) Equal to Tauren Chieftain
Actions
Advanced - Morph (Triggering unit) to the unit type specified in the Polymorph (Neutral Hostile) spelli get this message wrong!??!??!?! why??? i use WE unlimited function Trig_Ally_Target_Tauren_Chieftain_Actions takes nothing returns nothing call MorphUnit( GetTriggerUnit(), 'Aply' ) endfunction i get this message wrong!??!??!?! why??? i use WE unlimited |
| 11-09-2004, 11:05 PM | #2 |
Open up the map in Wc3 enhancer and make sure the "use advanced triggerS" checkbox is checked then save the map again. You can't use some of WEU's advanced trggers if you don't do that. |
| 11-10-2004, 09:46 AM | #3 |
Isn't it "Casting unit" instead of triggering unit everywhere? |
| 11-10-2004, 04:27 PM | #4 |
Shouldn't it be an order targeting an object instead of targeting a point? |
| 11-11-2004, 02:03 PM | #5 |
The usual problem... watch out which function refers to which event. Unit - A unit Is issued an order targeting a point Conditions (Unit-type of (Targeted unit)) Equal to Blademaster it can never be true because when targeting a POINT there is no targeted unit and it is also NOT for "A unit Is issued an order targeting an object" it's for specific unit aciquires a target, nothing else. for "A unit Is issued an order targeting an object" it's "target unit of issued order" not targeted unit. that's a bit wierd sometimes you need to be realy carefull with that. Code:
Ally Target Tauren Chieftain
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Unit-type of (Target unit of issued order)) Equal to Blademaster
((Owner of (Triggering unit)) is an enemy of Player 1 (Red)) Equal to True
((Owner of (Triggering unit)) is an enemy of Player 2 (Blue)) Equal to True
(Unit-type of (Triggering unit)) Equal to Tauren Chieftain
Actions
Advanced - Morph (Triggering unit) to the unit type specified in the Polymorph (Neutral Hostile) spell |
