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 issue

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Meatballsub
Divine Bovine




Joined: 16 Jun 2003
Posts: 437
Location: Northwest Georgia

PostPosted: Mon Jul 14, 2008 10:39 am    Post subject: Timer issue Reply with quote

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
View user's profile Send private message Visit poster's website
msw188




Joined: 02 Jul 2003
Posts: 1041

PostPosted: Mon Jul 14, 2008 2:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Mon Jul 14, 2008 3:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
msw188




Joined: 02 Jul 2003
Posts: 1041

PostPosted: Mon Jul 14, 2008 6:33 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Mon Jul 14, 2008 8:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Tue Jul 15, 2008 2:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Meatballsub
Divine Bovine




Joined: 16 Jun 2003
Posts: 437
Location: Northwest Georgia

PostPosted: Tue Jul 15, 2008 12:55 pm    Post subject: Reply with quote

Thanks, the left out argument was the problem. I forgot that I had erased it and never set it back to something.
_________________
MOCBJ Software - My Games
The Hamster Wheel - OHRRPGCE Information Database
Back to top
View user's profile Send private message Visit poster's website
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