Looping Triggers?

Gripen2

New Member
Reaction score
1
So yeah i got this trigger that activates all things.How can i loop it?Also.its a rick roll map Rick Roll.

So.In the end everything shuts down and you are able to leave.How can i do so everything loops at the end?I will upload the map so you can look at it.
 

robinremue

Member
Reaction score
16
Post the trigger please :) between
Code:
 Code Tags
:)

Most people aren't fond of downloading maps if it only concerns one trigger.
 

Gripen2

New Member
Reaction score
1
Post the trigger please :) between
Code:
 Code Tags
:)

Most people aren't fond of downloading maps if it only concerns one trigger.

Uhh.There is more then 1 trigger.I think :p

Code:
Init
    Events
        Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Trigger - Add to LeftKey <gen> the event (Player - (Player((Integer A))) Presses the Left Arrow key)
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Trigger - Add to RightKey <gen> the event (Player - (Player((Integer A))) Presses the Right Arrow key)
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Trigger - Add to UpKey <gen> the event (Player - (Player((Integer A))) Presses the Up Arrow key)
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Trigger - Add to DownKey <gen> the event (Player - (Player((Integer A))) Presses the Down Arrow key)
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Trigger - Add to KeyUp <gen> the event (Player - (Player((Integer A))) Releases the Down Arrow key)
                Trigger - Add to KeyUp <gen> the event (Player - (Player((Integer A))) Releases the Right Arrow key)
                Trigger - Add to KeyUp <gen> the event (Player - (Player((Integer A))) Releases the Left Arrow key)
                Trigger - Add to KeyUp <gen> the event (Player - (Player((Integer A))) Releases the Up Arrow key)
        Visibility - Disable fog of war
        Visibility - Disable black mask
        Game - Set the time of day to 13.00
        Game - Turn the day/night cycle Off
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Value Not equal to -1
                    Then - Actions
                        Cinematic - Turn cinematic mode On for (Player group((Player((Integer A)))))
                    Else - Actions
        Sound - Reset all volume channels to 100%
        Sound - Play war3mapImported\NGLYD.mp3
        Trigger - Add to FlipImage <gen> the event (Time - Every 1.00 seconds of game time)
        For each (Integer A) from 1 to 212, do (Actions)
            Loop - Actions
                Wait 1.00 seconds
                Set frame = (Integer A)
                Set filename = ((Substring(000, 1, (3 - (Length of (String(frame)))))) + (String(frame)))
                Set path = (war3mapImported\ + (filename + .blp))
                Game - Display to (All players) for 30.00 seconds the text: path
                Custom script:   call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.00, udg_path, 100.00, 100.00, 100.00, 0 )
        Cinematic - Fade out over 0.00 seconds using texture war3mapImported\001.blp and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
        Cinematic - Turn cinematic mode Off for (All players)
        Trigger - Turn off Escape <gen>
        Wait 3.00 seconds
        Custom script:   call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.00, "war3mapImported\\001.blp", 100.00, 100.00, 100.00, 0 )
        Cinematic - Fade in over 0.00 seconds using texture war3mapImported\001.blp and color (100.00%, 100.00%, 100.00%) with 0.00% transparency




Code:
FlipImage
    Events
    Conditions
    Actions
        Game - Enable selection and deselection functionality (Enable selection circles)
        Set frame = (frame + 1)
        Set filename = ((Substring(000, 1, (3 - (Length of (String(frame)))))) + (String(frame)))
        Set path = (war3mapImported\ + (filename + .blp))
        Custom script:   call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.00, udg_path, 100.00, 100.00, 100.00, 0 )
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                frame Equal to 212
            Then - Actions
                Cinematic - Turn cinematic mode Off for (All players)
                Trigger - Turn off (This trigger)
                Trigger - Turn off Escape <gen>
            Else - Actions



Code:
Escape
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Game - Unpause the game
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
            Then - Actions
            Else - Actions
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        And - All (Conditions) are true
                            Conditions
                                left[(Integer A)] Equal to True
                                right[(Integer A)] Equal to True
                                up[(Integer A)] Equal to True
                                down[(Integer A)] Equal to True
                    Then - Actions
                        Set unlock[(Integer A)] = True
                    Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        unlock[(Integer A)] Not equal to True
                    Then - Actions
                        Game - Force (Player((Integer A))) to press Escape/Cancel
                    Else - Actions
 

OneBadPsycho

10100111001
Reaction score
93
What are you asking for?
-If you want to "replay" all the triggers at the end u can just do this:
Code:
Trigger - Run ([COLOR="Red"]Trigger[/COLOR]) (checking conditions)
or (If it hasn't got any conditions)
Trigger - Run ([COLOR="Red"]Trigger[/COLOR]) (ignoring conditions)

Change this to the trigger u want.
 

Gripen2

New Member
Reaction score
1
What are you asking for?
-If you want to "replay" all the triggers at the end u can just do this:
Code:
Trigger - Run ([COLOR="Red"]Trigger[/COLOR]) (checking conditions)
or (If it hasn't got any conditions)
Trigger - Run ([COLOR="Red"]Trigger[/COLOR]) (ignoring conditions)

Change this to the trigger u want.

Doesent work.Nothing happends after that. :\
 

OneBadPsycho

10100111001
Reaction score
93
You use it correct? Example:
Code:
Trigger - Run (Restart) (checking conditions)

Will run the trigger named "Restart" and check its conditions.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top