View previous topic :: View next topic |
Author |
Message |
Meatballsub Divine Bovine

Joined: 16 Jun 2003 Posts: 437 Location: Northwest Georgia
|
Posted: Mon Jul 14, 2008 10:39 am Post subject: Timer issue |
|
|
Code: | set timer (0,1800,timer:default,1,timer flag:battle)
$2="DQ Time: "
show string at (2,30,190)
show string at (1,280,190) |
I would like for the strings to be next to each other. Instead, DQ Time shows up for a half second, and is erased over by the timer itself. Any suggestions? _________________ MOCBJ Software - My Games
The Hamster Wheel - OHRRPGCE Information Database |
|
Back to top |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Mon Jul 14, 2008 2:40 pm Post subject: |
|
|
I'm pretty sure you can only show one string at a time (this should be made clear in the Plotdictionary). I'd say that you should append the value of the timer, but then the string won't display the timer's values in real time. As of right now (30 seconds after reading post), I'm not sure how to accomplish this without a script-pausing for loop... (as in, no other scripts would be able to run while this timer is going). _________________ My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161
This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Mon Jul 14, 2008 3:31 pm Post subject: |
|
|
You can show multiple strings. The only exception is if you're just using "show string," which also wipes out "show value" (where applicable). _________________
|
|
Back to top |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Mon Jul 14, 2008 6:33 pm Post subject: |
|
|
Hmm, I was thinking of the whole "show value" and "show string" thing. Anyway, any idea what is causing the script problems then, Moogle (or anyone)? Maybe try moving the timer string over a little more (does a string destroy strings underneath it onscreen?). Or perhaps you should make sure that string 2 isn't getting goofed up by some other script running in the background. What happens if you take out the command to show string 1? Does string 2 exist fine on its own? _________________ My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161
This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Mon Jul 14, 2008 8:47 pm Post subject: |
|
|
Some theories to pursue:
* What happens if instead of strings 1 and 2 you try other numbers, like 5 and 10. Does it make a difference?
* Are there any other string manipulations going on? In an on-keypress or an each-step or something?
* Are there any other timers running?
I wonder if "set timer" has an off-by-one error in the string ID number or something like that (I have never personally tested the string-displaying feature of the "set timer" command)
You could try showing ALL the strings on screen at the same time in various places, and see if maybe it is getting written to the wrong one. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue Jul 15, 2008 2:25 am Post subject: |
|
|
You forgot an argument. Have another look:
set timer (id, count, speed, trigger, string, flags)
set timer (0,1800,timer:default,1,timer flag:battle) _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Meatballsub Divine Bovine

Joined: 16 Jun 2003 Posts: 437 Location: Northwest Georgia
|
|
Back to top |
|
 |
|