 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner


Joined: 12 Jul 2003 Posts: 1459
|
Posted: Sun Jul 27, 2003 2:15 am Post subject: Timer Time/ Point Tracker |
|
|
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 |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sun Jul 27, 2003 11:32 am Post subject: |
|
|
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 |
|
 |
|
|
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
|