| 12-05-2003, 08:52 PM | #1 |
Me and someone else are trying to make soem triggered based spell. first off we cAME up with CHARM which affects the units around it also. So basicaly in the game when u target a unit with it the units around will also be charmed But NOT HEROES STRUCTURES OR SUMMONS, i tried and tried but cant get it to work this is what i have: EVENTS:Unit - A unit Begins casting an ability CONDTIONS:(Ability being cast) Equal to Black Arrow A C T I O N S : Unit Group - Pick every unit in (Units within 500.00 of (Position of (Targeted unit))) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Unit-type of (Picked unit)) Equal to Footman Then - Actions Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color Else - Actions Do nothing I heard something about storing the action in a diff triger but dont have a clue. IM NOT INTRESTED IN STORING TRIGGER, ONLY ANSWER IF U CAN HELP NOT THIN BUT HELP PLS THX! |
| 12-05-2003, 08:56 PM | #2 |
that should work....i dont get whats going on. |
| 12-05-2003, 09:15 PM | #3 |
Why don't you just edit the ability "black arrows". Just change the "targets allowed" field in the object editor to not allow the ability to target heros, summons, and structures. |
| 12-05-2003, 09:24 PM | #4 |
becuz in the trigger.....its different, it slecelets everyone AROUND HIM. Not the target.:P |
| 12-05-2003, 09:28 PM | #5 |
Targetted unit? that's the mistake you need to save the unit with a unit is issued an order targetting an unit better and a Target[Player number of owner of triggering unit] array |
| 12-05-2003, 09:52 PM | #6 |
as Lord Vexorian said, 'targeted unit' is not the event response for that trigger. Also WE doesnt know 'who' the targeted unit is, to find out how to set the target unit of issue order to a variable, look here ---> http://www.wc3campaigns.com/forums/s...t=spell+target I've heard UWE have a event response for that trigger, but I havent used UWE before.. ' |
| 12-05-2003, 11:56 PM | #7 |
DARN** i should have had that one. Set the target to a variable then go ahead and work with it. THere i said it. Bwahahaha. |
| 12-06-2003, 09:38 AM | #8 |
OH SHITE i copy pasted the wrong one....Its ment to be CHARM AREA OF EFFECT....u target one unit and all the units around it turn on ur side EDIT: when i clicked on the link and it said make a orther trigger...so i did......one of the conditions was too make it Order comparison so i set it up like so (Issued order) Equal to .....Looked for charm and it isnt THERE! |
| 12-06-2003, 02:36 PM | #9 |
mmm... why dont you do this and screw the buggy trigger... Use the spell Animate dead or Ressurect (I forget which one) and have it target living enemy units... it works I tried, but only works for 1 of them, I forget which |
| 12-06-2003, 02:44 PM | #10 |
Perhaps you could make a dummy summon spell, and order the summoned unit to cast Charm on everything within range of itself, and then remove the summon. It should only succeed in Charming legal targets. |
| 12-06-2003, 05:00 PM | #11 |
Here, I was bored :gsmile: |
| 12-06-2003, 08:04 PM | #12 |
thx and its all workin now :) ........hey nice spell :) |
| 12-06-2003, 08:05 PM | #13 |
Here is the my ver :) |
