Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Timer Time/ Point Tracker

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Sun Jul 27, 2003 2:15 am    Post subject: Timer Time/ Point Tracker Reply with quote

alright, this may be difficult, which im willing to take that risk, i need to set up a system of time in my game for about 10 minutes, so i need a timer to run for 10 minutes and display how much time youll have left. And I also need a system of recording points, like if you win a fight, you get a point, seperate from experience points. See I'm makin a contest, like in FF9, the festival of the hunt, I need it to run for 10 minutes and to keep track of the number of victories you've gotten.
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sun Jul 27, 2003 11:32 am    Post subject: Reply with quote

Simple with PS.

for the timer:
Sorry, this can only be done to minute accuraticy, and it can't force players out of battles if the time runs out.
Code:

script, timer, begin
 variable (start time, now time)
 start time := hours of play * 60 + minutes of play
 now time := start time
 while (nowtime << (start time + 10)) do, begin
  show value (now time -- start time)
  wait (30)
  now time := hours of play * 60 + minutes of play
 end

 # do whatever when timer run out....
end

 

The hours of play is in there in case the player happens to have, say 4 hours and 58 min of play when the minigame starts.

As for the battles, use a instead-of-battle-script that increments a GV, and then runs the battle using the passed battle no. and fight formation()

Note: fight formation returns whether or not you won the battle.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group