Trigger problems

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

Trigger problems

Post by Black-Hole »

I made this trigger its just a guards talking trigger i wanted put in the game but for some reason it picks the same one every time in every game? What did i do wrong?
Spoiler for Trigger:

Code: Select all

Guards Talk
    Events
        Unit - A unit comes within 75.00 of Cop 0015 <gen>
        Unit - A unit comes within 75.00 of Cop 0010 <gen>
        Unit - A unit comes within 75.00 of Cop 0014 <gen>
        Unit - A unit comes within 75.00 of Cop 0013 <gen>
        Unit - A unit comes within 75.00 of Cop 0020 <gen>
        Unit - A unit comes within 75.00 of Cop 0063 <gen>
        Unit - A unit comes within 75.00 of Cop 0021 <gen>
        Unit - A unit comes within 75.00 of Cop 0019 <gen>
        Unit - A unit comes within 75.00 of Cop 0018 <gen>
        Unit - A unit comes within 75.00 of Cop 0017 <gen>
        Unit - A unit comes within 75.00 of Cop 0016 <gen>
        Unit - A unit comes within 75.00 of Cop 0070 <gen>
        Unit - A unit comes within 75.00 of Cop 0069 <gen>
        Unit - A unit comes within 75.00 of Cop 0067 <gen>
        Unit - A unit comes within 75.00 of Cop 0071 <gen>
        Unit - A unit comes within 75.00 of Cop 0073 <gen>
        Unit - A unit comes within 75.00 of Cop 0072 <gen>
        Unit - A unit comes within 75.00 of Cop 0064 <gen>
        Unit - A unit comes within 75.00 of Cop 0066 <gen>
        Unit - A unit comes within 75.00 of Cop 0065 <gen>
        Unit - A unit comes within 75.00 of Cop 0068 <gen>
        Unit - A unit comes within 75.00 of Cop 0074 <gen>
        Unit - A unit comes within 75.00 of Cop 0036 <gen>
        Unit - A unit comes within 75.00 of Cop 0037 <gen>
    Conditions
        (Unit-type of (Triggering unit)) Equal to Prisioner
    Actions
        Cinematic - Turn cinematic mode On for (Player group((Owner of (Triggering unit))))
        Set RandomNumber = (Random integer number between 1 and 25)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 1
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0015 <gen> named Guard: Play No sound and display Duh.... Modify duration: Add 0.50 seconds and Wait
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0015 <gen> named Guard: Play No sound and display Hmm... shut up... g.... Modify duration: Add 2.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 2
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0010 <gen> named Guard: Play No sound and display I cant believe the .... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0010 <gen> named Guard: Play No sound and display I CALL HIS BOOTY!!!. Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 3
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0014 <gen> named Guard: Play No sound and display Shut up... Leave me.... Modify duration: Add 1.25 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 4
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0013 <gen> named Guard: Play No sound and display Im thinking of gett.... Modify duration: Add 1.50 seconds and Wait
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0013 <gen> named Guard: Play No sound and display Hmm... What do you .... Modify duration: Add 1.50 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 5
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0012 <gen> named Guard: Play No sound and display Hmm.... Modify duration: Add 1.50 seconds and Wait
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0012 <gen> named Guard: Play No sound and display I got to take a crap. Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 6
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0020 <gen> named Guard: Play No sound and display I didnt need to kno.... Modify duration: Add 1.50 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 7
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0063 <gen> named Guard: Play No sound and display Whats so important .... Modify duration: Add 2.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 8
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0021 <gen> named Guard: Play No sound and display Why da peple tnk i .... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 9
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0019 <gen> named Guard: Play No sound and display That guy over there.... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 10
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0018 <gen> named Guard: Play No sound and display I know hes the dumb.... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 11
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0017 <gen> named Guard: Play No sound and display Pop, bop, top, crop.... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 12
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0016 <gen> named Guard: Play No sound and display Neat!!. Modify duration: Add 0.75 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 13
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0070 <gen> named Guard: Play No sound and display What the hell does .... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0069 <gen> named Guard: Play No sound and display I think it stands f.... Modify duration: Add 0.75 seconds and Wait
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0069 <gen> named Guard: Play No sound and display LOL, is another way.... Modify duration: Add 2.00 seconds and Wait
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0070 <gen> named Guard: Play No sound and display hmm... Are you sure.... Modify duration: Add 2.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 14
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0069 <gen> named Guard: Play No sound and display That was a really w.... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 15
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0067 <gen> named Guard: Play No sound and display Hehe... I get to st.... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 16
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0071 <gen> named Guard: Play No sound and display YOU GOT TO HELP ME!.... Modify duration: Add 1.50 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 17
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0073 <gen> named Guard: Play No sound and display I want to go swimmi.... Modify duration: Add 2.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 18
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0072 <gen> named Guard: Play No sound and display I hear the prisoner.... Modify duration: Add 2.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 19
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0064 <gen> named Guard: Play No sound and display Y do i have to stay.... Modify duration: Add 3.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 20
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0066 <gen> named Guard: Play No sound and display Love is but short l.... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 21
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0065 <gen> named Guard: Play No sound and display I went to my counce.... Modify duration: Add 2.00 seconds and Wait
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0065 <gen> named Guard: Play No sound and display Yes i did shot her..... Modify duration: Add 1.50 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 22
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0015 <gen> named Guard: Play No sound and display How would they get .... Modify duration: Add 1.50 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 23
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0074 <gen> named Guard: Play No sound and display You should really s.... Modify duration: Add 1.20 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 24
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0036 <gen> named Guard: Play No sound and display I wonder why i have.... Modify duration: Add 1.00 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomNumber Equal to 25
            Then - Actions
                Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from Cop 0037 <gen> named Guard: Play No sound and display Last night i went h.... Modify duration: Add 2.50 seconds and Wait
                Cinematic - Turn cinematic mode Off for (Player group((Owner of (Triggering unit))))
            Else - Actions
                Do nothing
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Trigger problems

Post by Xantan »

not enough info for me... I think I may be able to help if I was given the map to test with myself, or... hmmm, not sure.


btw, which one does it always pick?