|
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
Bird Guest
|
Posted: Mon Jan 02, 2012 12:02 pm Post subject: Problem with Script |
|
|
Hello OHRRPGCE community,
I want to this script, but an error occures and I don't know why. I am using the hasta-la-qb+ version of OHRRPGCE. Is there a difference in the way of scripting between the old and the newer versions?
Script:
include, plotscr.hsd
include, legendia.hsi
plotscript, box, begin
suspend box advance
show text box (102)
wait (70) # 70 ticks = approximately 4.5 seconds.
advance textbox #go on the the next textbox, if one has been linked in CUSTOM
wait (70)
show texbox (170) # display the next textbox if it is not linked
wait (70)
advance textbox #remove the last textbox
resume box advance
end
Error:
... parsing top-level
ERROR: in line 4 of C:\WINDOWS\DESKTOP\OHRDOS\SCRIPT.txt
plotscript, box, begin
Expected top-level declaration but found plotscript
Is somebody knowing, what I did wrong? |
|
Back to top |
|
|
Bob the Hamster OHRRPGCE Developer
Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Mon Jan 02, 2012 6:39 pm Post subject: |
|
|
When I try to compile your script, I do not get the same error as you. I get:
Quote: | ERROR: in script box on line 10 in /home/james/src/ohr/wip/tmp/legendia.hss
show texbox (170) # display the next textbox if it is not linked
^
Unrecognised name showtexbox. It has not been defined as script, constant,
variable, or anything else
|
The error message you posted suggests to me that you might be using an old version of the OHRRPGCE, from back before the plotscript command had been added, and scripts required the now obsolete "define script" command.
This suspicion is reinforced by the fact that you are using a folder named "OHRDOS". Are you using the ancient DOS version of the OHRRPGCE? or are you using a current version? |
|
Back to top |
|
|
Bird Guest
|
Posted: Tue Jan 03, 2012 10:21 am Post subject: |
|
|
Thank you a lot, Mr. Paige! Thanks to your hint with the "define script" command, my script is now running perfectly! And yes, it's true that I am using the DOS version (hasta-la-qb+). I found the DOS version on a DOS gaming site and it runs on Windows 98 very well.
At this point, I want to thank you for creating OHRRPGCE. Since many years, I dream of creating a RPG, but thank to your simple DOS program, I am going to make it true. Thank you very much, Mr. Paige! |
|
Back to top |
|
|
Bob the Hamster OHRRPGCE Developer
Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Jan 03, 2012 12:48 pm Post subject: |
|
|
Does the current version (Zenzizenzic) not work on Windows 98? I don't have a Windows 98 computer anymore, so I haven't tested in a long time. It seems like it should work. |
|
Back to top |
|
|
Bird Guest
|
Posted: Tue Jan 03, 2012 1:16 pm Post subject: |
|
|
Oh! That's quite stupid, that I didn't tested that before, because the newest version also works with Windows 98. |
|
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
|