Last active: Never
Not logged in [Login - Register]
Portal Portal   Search the forums Search   Frequently Asked Questions FAQ   View member list Member List   Staff Staff List   View Topic Activity Topic Activity   Forum Stats Stats   Board Rules Board Rules   Downloads Downloads
Go To Bottom

Printable Version | Subscribe | Add to Favorites  
Author: Subject: IN-Game Counter
Iceman
Owner/Admin
*********

Avatar

Avatar


Posts: 1272
Registered: 2-4-06
Location: Adelaide South Australia
Member Is Offline

Mood: Very happy

smug.gif posted on 24-5-09 at 07:21
IN-Game Counter


These scripts create an in-game counter during game play.
(This script was created by GENERAL ELECTRIC at 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")
endif


D.) making a timer instead of countdown

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


E.) trigger for countdown

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






http://www.dfreload.com/eagle/sigs/16.gif

http://www.dfreload.com/sigs/doc_bar.gif

http://www.dfreload.com/sig/teamreload3.gif

View user's profile Visit user's homepage View All Posts By User U2U Member

  Go To Top





Powered by XMB
Developed By The XMB Group © 2001-2008