How come this trigger not working??

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

How come this trigger not working??

Post by Black-Hole »

lol i got the trigger to work after 40 min of testing different things. Here is the working code lol

Code: Select all

Beat Up A Cop
    Events
        Unit - A unit Begins casting an ability
    Conditions
        And - All (Conditions) are true
            Conditions
                (Ability being cast) Equal to beat up a cop 
                (Unit-type of (Target unit of ability being cast)) Equal to Cop
    Actions
        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Other\Charm\CharmTarget.mdl
        Sound - Play RockHeavyBashMetal1 <gen>
        Unit - Remove (Target unit of ability being cast) from the game
        Unit - Replace (Casting unit) with a Wanta Be Guard using The old unit's relative life and mana
Now i need help though? I want to make a trigger where when a unit casts this spell if there is a cop with in 500range of the unit casting the spell the cop attacks him.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: How come this trigger not working??

Post by Xantan »

This with a few changes should work:
http://img176.imageshack.us/img176/7/scr1b65cc3wm4.png

Just change the 'unit type equal to footman' to unit type equal to cop... Then I think it should do well.