A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »countdown timer script --HELP--

Author Topic: countdown timer script --HELP-- (5 messages, Page 1 of 1)
Moderators: Dennis

didymus
Joined: May 17, 2011


Posted: May 19, 2011 02:16 PM    Msg. 1 of 5       
I was wondering if you were willing to help me on this small matter. I am confused as to why this script is not working. I was wondering if you could help me with this sort of thing.



(script continuous timer_begin
(hud_set_timer_position 0 0 bottom_right )
(hud_set_timer_time timer_minutes timer_seconds )
(hud_set_timer_warning_time 1 0 )
(show_hud_timer true )
(set timer_active true )
)









when I check debug it says


"
05.19.11 10:18:49 sapien pc 01.00.00.0609 ----------------------------------------------
05.19.11 10:18:49 reference function: _write_to_error_file
05.19.11 10:18:49 reference address: 401b13
05.19.11 10:18:49 Couldn't read map file './sapienbeta.map'
05.19.11 10:18:49 CreateDevice succeeded with refresh rate = 0
05.19.11 10:18:50 Increasing sound decompression buffer size to 1048576 bytes
05.19.11 10:18:51 local player 0, weapon (0x0), deleted unexpectedly
05.19.11 10:18:54 [b40 line 19] this is not a valid integer.: timer_minutes timer_seconds )

05.19.11 10:18:54 recompiling scripts after scenarios were merged.
05.19.11 10:18:54 [b40 line 17] this left parenthesis is unmatched.: (script continuous timer_begin"



I don't understand. I did it just like it was done in d40 (the maw.) What am I doing wrong?










I am planning on designing a new game mode that requires players to occupy a certain volume until the time runs out and they get a special prize (such as an overshield.) If they take over every territory they get more spawns plus better weapons and vehicles.


UBE Chief
Joined: Sep 28, 2009

Raising the bar, one kill at a time.


Posted: May 19, 2011 02:47 PM    Msg. 2 of 5       
When all else fails, just add another ending parenthesis.


didymus
Joined: May 17, 2011


Posted: May 19, 2011 02:56 PM    Msg. 3 of 5       
"When all else fails, just add another ending parenthesis."


I have tried that a couple times now. Doesn't work. I don't get it. I have parenthesis that match up with the other parenthesis's but still it doesn't work. It also claims


"[b40 line 10] this is not a valid integer.:"


what is going on?


rerout343
Joined: Aug 7, 2010

Targeted and Firing


Posted: May 19, 2011 04:12 PM    Msg. 4 of 5       
Quote: --- Original message by: didymus

(script continuous timer_begin
(hud_set_timer_position 0 0 bottom_right )
(hud_set_timer_time timer_minutes timer_seconds )
(hud_set_timer_warning_time 1 0 )
(show_hud_timer true )
(set timer_active true )
)


There is the problem. I'm guessing that "timer minutes" and "timer seconds" were globals defined in bungie's original script. You need a number or the name of a value that contains a number.

So, you either need to change the line to something like this:

(hud_set_timer_time 0 45)

Or you could add these two lines to the beginning of your script(above the "(script continuous timer_begin" ):

(global short timer_minutes 0)
(global short timer_seconds 45)

That will set the timer for 0 minuets and 45 seconds, obviously you can change the numbers to get any time you want, I was just using 45 seconds as an example.


didymus
Joined: May 17, 2011


Posted: May 19, 2011 05:16 PM    Msg. 5 of 5       
Cool. Thanks for the help. I will go test it out right now.

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 2:29 PM 141 ms.
A Halo Maps Website