 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
Battleblaze Warrior Thread Monk

Joined: 19 Dec 2003 Posts: 782 Location: IndY OHR
|
Posted: Tue Jan 27, 2004 7:33 am Post subject: Please help me debug my script |
|
|
I've gone through OHR hell with on keypress scripts so instead of having a jump script that works on keypress I'll just make it an automatic jump (like in zelda) but the compiler won't work!!!
Please help debug my jumping scripts
include plotscr.hsd
define script (1,northjump,none)
define script (2,eastjump,none)
define script (3,southjump,none)
define script (4,westjump,none)
script,northjump, begin
suspend player
suspend obstruction
set hero picture (me,2,outsidebattle)
walk hero (me,north,5)
set hero picture (me,1,outsidebattle)
resume obstruction
wait (20)
end
script, eastjump, begin
suspend player
suspend obstruction
set hero picture (me,2,outsidebattle)
walk hero (me,east, 5)
set hero picture (me,1,outsidebattle)
resume obstruction
wait (20)
end
script,southjump, begin
suspend player
suspend obstruction
set hero picture (me,2,outsidebattle)
walk hero (me,south, 5)
set hero picture (me,1,outsidebattle)
resume obstruction
wait (20)
end
script,westjump, begin
suspend player
suspend obstruction
set hero picture (me,2,outsidebattle)
walk hero (me,west, 5)
set hero picture (me,1,outsidebattle)
resume obstruction
wait (20)
end
 _________________ Indy OHR! and National OHR Month Contest going on now!
"Aeth calls PHC an anti-semite; PHC blames anti-semitism"
-squall |
|
Back to top |
|
 |
MultiColoredWizard Come back, baby! The Breastmaster

Joined: 01 Feb 2003 Posts: 1232
|
Posted: Tue Jan 27, 2004 8:07 am Post subject: |
|
|
Well you left out a resum player. There's not much else I see wrong... Could you tell the error message from the compiler? |
|
Back to top |
|
 |
Battleblaze Warrior Thread Monk

Joined: 19 Dec 2003 Posts: 782 Location: IndY OHR
|
Posted: Tue Jan 27, 2004 8:30 am Post subject: |
|
|
the compiler flashes some red letters for a nanosecond and turns itself off. and i can't use the error counsil built into hssed because windows XP forces me to click the script and dropt it on the program. _________________ Indy OHR! and National OHR Month Contest going on now!
"Aeth calls PHC an anti-semite; PHC blames anti-semitism"
-squall |
|
Back to top |
|
 |
MultiColoredWizard Come back, baby! The Breastmaster

Joined: 01 Feb 2003 Posts: 1232
|
Posted: Tue Jan 27, 2004 8:58 am Post subject: |
|
|
Oh, hm. I forgot how to counter that. You're supposed to go to start --> run on your taskbar, but i forget where the DOS thing is. I think it's called cmd.exe, or command.exe, so look for that. When you get that up, scroll to the folder with HSPEAK.exe(put the .hss file in this DIR too). use commands like CD FOLDER(replace folder name) to get through. If you screw up do CD ..(dotdot, not just dot). When you get to that directory.. put in i thiiiiiiiiiiink Hspeak HSSFILENAME.HSS, and then WHATHSNAMEISTOBE.hs. Fill in the ovious stuff. It shoudl compile correctly, but I haven't used XP in ages so I don't remember how to work it. |
|
Back to top |
|
 |
T-Master
Joined: 10 Dec 2003 Posts: 74
|
Posted: Tue Jan 27, 2004 12:36 pm Post subject: |
|
|
Code: | include plotscr.hsd |
should be
Code: | include, plotscr.hsd |
As MCW said, suspend player. Also, you might want a wait for hero(me).
If you're having problems compiling and can't see the errors, you may want to make a .bat file to compile them, like I did. To do this, simply make a text file in your OHR folder called yourgame.txt, and edit it as such:
del hs_error.htm
hspeak.exe -wyz yourgame.hss
Rename the file to yourgame.bat, and anytime you want to compile your scripts just run this instead. If there's an error, a new file will appear called HS_ERROR.htm in your ohr folder. |
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
|
Back to top |
|
 |
Me HI.

Joined: 30 Mar 2003 Posts: 870 Location: MY CUSTOM TITLE CAME BACK
|
Posted: Tue Jan 27, 2004 6:23 pm Post subject: |
|
|
They're predefined as constants, Setu. Although, Battleblaze, there's no reason to include the "outside battle," since that function defaults to changing the outside battle sprite.
Anyway, HSSed.exe I have found to work with WinXP, at least on my computer. I hit compile, and it compiles the script just fine. However, it always asks me where the compiler is (this doesn't really get in the way, actually) and all error messages appear in an html file called HS_ERROR.htm. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue Jan 27, 2004 10:20 pm Post subject: |
|
|
Umm... look, the REALLY obvious way to stop Hspeak.exe from closing when it finishs is to right click on it and goto Properties, Program, and un-select 'Close on exit'. That way you can read the error messages.
HSpeak works for me in XP under Hssed, but same problem as you, Me. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Battleblaze Warrior Thread Monk

Joined: 19 Dec 2003 Posts: 782 Location: IndY OHR
|
Posted: Wed Jan 28, 2004 9:13 am Post subject: |
|
|
Thanx guys. I can compile my script just by drag and drop. But like Cacti said I just spelled sumthing wrong (as always)  _________________ Indy OHR! and National OHR Month Contest going on now!
"Aeth calls PHC an anti-semite; PHC blames anti-semitism"
-squall |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Jan 28, 2004 10:57 pm Post subject: |
|
|
Mis-spelling? I didn't say anything. You mean TM. _________________ "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
|