Newbie Quiestion

SeekDestroy16

Member!
Joined
Nov 19, 2004
Messages
27
Reaction score
0
How do i make a trigger to play every 3 minutes forever? i can get it to do it over and over again but not for 3 minutes like i want it to do.
 

Wing Zero

lol just as planned
Joined
Oct 27, 2002
Messages
12,206
Reaction score
16
wait for uh i think 18000
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
The easiest way to do it is to wait 180000 millieseconds.
1000 millieseconds = 1 second.
3 minutes = 180 seconds.
180000 = 180 seconds.

EX:
PLAYERS
-
CONDITIONS
-
ACTIONS
-
-
-
-Wait 180000 millieseconds.
-Preserve Trigger.
 

SeekDestroy16

Member!
Joined
Nov 19, 2004
Messages
27
Reaction score
0
I want to play a wav sound every 3 minutes, but it isnt 3 minutes long. this is how i did it and it didnt work.

PLAYERS: ALL PLAYERS

CONDITIONS: ALWAYS

ACTIONS: PLAY WAV: SOUND.WAV
WAIT FOR 180000 MILLISECONDS
PRESERVE TRIGGER
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
Could you post the map so I can take a look at it?
Click 'Manage Attachments' after you clicked on 'Post Reply' at the bottom of this thread.
 

Wing Zero

lol just as planned
Joined
Oct 27, 2002
Messages
12,206
Reaction score
16
what i recalled u cant have waits or sumething
 

SeekDestroy16

Member!
Joined
Nov 19, 2004
Messages
27
Reaction score
0
it is only a play around map, im just experimenting my trigger abilities with it. look in all players at the very bottom.
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
SeekDestroy16 said:
it is only a play around map, im just experimenting my trigger abilities with it. look in all players at the very bottom.
First off, I just want to state that any settings you make(triggers, brief, unit settings, etc) to a map does not apply to any games other than UMS typed maps.

The problem I see is the condition.
When you have a condition "Elapsed game scenario is atleast 180 seconds", it means that none of the actions will fire until 180 seconds into the game.
You had it fine the way before:
SeekDestroy16 said:
PLAYERS: ALL PLAYERS

CONDITIONS: ALWAYS

ACTIONS: PLAY WAV: SOUND.WAV
WAIT FOR 180000 MILLISECONDS
PRESERVE TRIGGER
 

SeekDestroy16

Member!
Joined
Nov 19, 2004
Messages
27
Reaction score
0
thats the problem, for some reason it wont always work on the trigger you suggested. or maybe i need to turn the sound up? i dont know. maybe its a MAC problem.
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
A problem with a wait trigger is that it interferes with other wait triggers. I didn't want to have to explain that but I guess I have to do some explaining.
The trigger under 'All Players' is the same thing as have the trigger under 'Players 1 - 8'
If you have a wait action, it stops the trigger for X amount of millieseconds. During that time, the game checks through every other trigger before continuing on. That can interfere with other wait triggers.
So if you have a wait trigger under 'All Players', you're having a wait trigger under 'Players 1 - 8' which can interfere with all wait triggers.


Another way to do it if you understand this way:
PLAYERS
-
CONDITIONS
-Always
ACTIONS
-Set 'Switch 1'.
-Wait 180000 millieseconds.
-Preserve trigger.

PLAYERS
-
CONDITIONS
-'Switch 1' is set.
ACTIONS
-Player Wav: Lwek is the Best.wav
-Clear 'Switch 1'.
-Preserve Trigger.
 

Bolt Head

Member!
Joined
May 20, 2003
Messages
1,194
Reaction score
0
Website
www.shadowfortress.net
Lwek said:
A problem with a wait trigger is that it interferes with other wait triggers. I didn't want to have to explain that but I guess I have to do some explaining.
The trigger under 'All Players' is the same thing as have the trigger under 'Players 1 - 8'
If you have a wait action, it stops the trigger for X amount of millieseconds. During that time, the game checks through every other trigger before continuing on. That can interfere with other wait triggers.
So if you have a wait trigger under 'All Players', you're having a wait trigger under 'Players 1 - 8' which can interfere with all wait triggers.


Another way to do it if you understand this way:
PLAYERS
-
CONDITIONS
-Always
ACTIONS
-Set 'Switch 1'.
-Wait 180000 millieseconds.
-Preserve trigger.

PLAYERS
-
CONDITIONS
-'Switch 1' is set.
ACTIONS
-Player Wav: Lwek is the Best.wav
-Clear 'Switch 1'.
-Preserve Trigger.
That trigger only works for one player. :)
 

NewPosts

New threads

Top