HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

An easy question for ya'll

05-28-2003, 12:57 PM#1
AndiH
Whats wrong with this? I want a message to be displayed when a timer expires..

- Events
- - Map initizialation
- Actions
- - Wait 2.00 seconds
- - Set Timer - (Last started timer)
- - Countdown Timer - Start timer as a One-shot timer that will expire in 15.00 seconds
- - Countdown Timer - Create a timer window for Timer with the title Timer expires in..


----

- Events
- - Time - Timer expires
- Actions
- - Game - Display to (all players) the text: Timer has ended
05-28-2003, 01:07 PM#2
Dead-Inside
Switch places with the Countdown Timer - triggers.
You start it after it is displayed.
05-28-2003, 08:24 PM#3
ChronOmega
no because he creted the timer tha created the window to show it in, a timer can exist without a window to show it in

btw sry but i cant hekp ya here
05-28-2003, 09:06 PM#4
SkylineGT[FB]
change the event to timer - elapsed time is equal to X

and remove the action wait - X secnds

i used X because i forgot what seconds u wanted heh.
05-28-2003, 09:16 PM#5
SkylineGT[FB]
here is the trigger:

time - elapsed game time is 2.00 seconds

countdown timer - start (create a atimer that is one shot , of duration 15.00
countdown timer - create a timer window for (last started timer) with tiltle XXX
countdown timer - show last created timer window

this trigger will make a timer window after 2 seconds of game time and will stop in 15 seconds.

then to do the massage do this one:

time - elapsed game time is equal to 17 seconds

game - desplay timed text
destroy timer window
stop timer

that kind of stuff.
05-28-2003, 09:24 PM#6
Guest
EVIL DOUBLE POSTER!

Anyway:
Quote:
Originally posted by ChronOmega
no because he creted the timer tha created the window to show it in, a timer can exist without a window to show it in

btw sry but i cant hekp ya here


Hes setting the variable before he creates it, and then creating the window.

Dude, try this:

- Events
- - Map initizialation
- Actions
- - Wait 2.00 seconds
- - Countdown Timer - Start timer as a One-shot timer that will expire in 15.00 seconds
- - Set Timer - (Last Started Timer)
- - Countdown Timer - Create a timer window for Timer with the title Timer expires in..


----

- Events
- - Time - Timer expires
- Actions
- - Game - Display to (all players) the text: Timer has ended
05-28-2003, 09:42 PM#7
SkylineGT[FB]
its the event that is not triggering the action. map initilization is when the game is loading, then u have to wait for other players. so u have to change the event for it to work. or if u want to set the countdown timer into a variable, then u would do that during the map initalization.

and then use the elapsed time to set it off. but i dont know y u would need to use an intiger.