Go Back   Novahq.net Forum > Games > Delta Force

Delta Force Anything to do with the Delta Force series of games, DF1, DF2, LW, TFD, BHD, DFX, AF etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-25-2006, 09:35 AM
Gene starwind is offline Gene starwind
Registered User

Join Date: Nov 2003
Posts: 50

Wac Programming for a countdown timer

although i know some basic wac commands like getting music to play and text to appear and make certain Decorations look like they are flying i cannot for the life of me figure out how to get a countdown timer to appear can anyone help me with this?
__________________
Gene
Reply With Quote
  #2  
Old 06-25-2006, 04:59 PM
dave61 is offline dave61
dave61's Avatar
I.C.U.

Join Date: Jul 2005
Location: Here & There
Posts: 2,155

Send a message via Yahoo to dave61
IN-GAME COUNTER
These scripts create an in-game counter during game play.

This script was created by GENERAL ELECTRIC (NOVAWORLD FORUM)

A.) counter that counts the seconds into the game:

if never then
set(v60,0) ; s into game
set(v70,0) ; helpvar s
set(v80,0) ; m into game
set(v90,30) ; cd m Minutes for countdown
set(v100,59) ; cd s
endif

if elapse(1) then
inc(v60)
inc(v70)
dec(v100)
endif

B.) converting seconds into minutes

if eq(v70,60) or eq(v60,1) and ne(v90,0) then
inc(v80)
set(v70,0)
dec(v90)
set(v100,59)
endif

C.) Making a countdown

if elapse(2) then
consol#("Minutes left",v90)
consol#("Seconds left",v100)
consol("Countdown")

D.) making a timer instead of countdown

if elapse(3) then
consol#("Minutes played",v80)
consol#("Seconds played",v70)
consol("Gametimecounter")



E.) trigger for countdown

if eq(v90,0) and eq(v100,0) and never then
text("Countdown finished")
endif



or do a simple counter using chain (this is my script)

if ssnarea(10000,1) and never() then
text("You have 1:00 minute left")
Wave("happy1.wav",1000)
endif

if chain(30) and never() then
text("You have :30 seconds left")
Wave("happy1.wav",1000)
endif

if chain(20) and never() then
text("0:10")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:09")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:08")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:07")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:06")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:05")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:04")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:03")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:02")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:01")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then // player is dead
killSSN(10000)
text("You're dead")
endif
__________________
Reply With Quote
  #3  
Old 06-29-2006, 06:35 AM
Gene starwind is offline Gene starwind
Registered User

Join Date: Nov 2003
Posts: 50

Quote:
Originally posted by dave61
IN-GAME COUNTER
These scripts create an in-game counter during game play.

This script was created by GENERAL ELECTRIC (NOVAWORLD FORUM)

A.) counter that counts the seconds into the game:

if never then
set(v60,0) ; s into game
set(v70,0) ; helpvar s
set(v80,0) ; m into game
set(v90,30) ; cd m Minutes for countdown
set(v100,59) ; cd s
endif

if elapse(1) then
inc(v60)
inc(v70)
dec(v100)
endif

B.) converting seconds into minutes

if eq(v70,60) or eq(v60,1) and ne(v90,0) then
inc(v80)
set(v70,0)
dec(v90)
set(v100,59)
endif

C.) Making a countdown

if elapse(2) then
consol#("Minutes left",v90)
consol#("Seconds left",v100)
consol("Countdown")

D.) making a timer instead of countdown

if elapse(3) then
consol#("Minutes played",v80)
consol#("Seconds played",v70)
consol("Gametimecounter")



E.) trigger for countdown

if eq(v90,0) and eq(v100,0) and never then
text("Countdown finished")
endif



or do a simple counter using chain (this is my script)

if ssnarea(10000,1) and never() then
text("You have 1:00 minute left")
Wave("happy1.wav",1000)
endif

if chain(30) and never() then
text("You have :30 seconds left")
Wave("happy1.wav",1000)
endif

if chain(20) and never() then
text("0:10")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:09")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:08")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:07")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:06")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:05")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:04")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:03")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:02")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then
text("0:01")
text("")
text("")
Wave("happy1.wav",1000)
endif

if chain(1) and never() then // player is dead
killSSN(10000)
text("You're dead")
endif
Ah Nice, This should Enable me to setup the countdiown to launch a rocket in game for both DFX and JOPS/JOIC/JOE thanks
__________________
Gene
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
map timer imtheone Tech Support 17 05-27-2009 08:37 AM
Greetings from an old timer Nap Feedback / Novahq.net Support 1 05-13-2007 01:22 AM
countdown Grenademan General Chat 14 04-13-2007 02:34 AM
wac programming (women Are Cute ) bigsmellyfart Humor & Jokes 1 08-06-2005 02:26 PM
Countdown star dies -Tigger- General Chat 6 06-28-2005 06:18 AM


All times are GMT -5. The time now is 05:54 AM.




Powered by vBulletin®