View previous topic :: View next topic |
Author |
Message |
exodia91
Joined: 14 Dec 2007 Posts: 2
|
Posted: Fri Dec 14, 2007 3:02 pm Post subject: Importing error |
|
|
I'm trying to make my first script for my game, and it complies fine but when I try to import it it says 0 scripts imported and I can't set it. Its my game over.
heres the full script:
Code: |
include,plotscr.hsd
include,proto.hsi
script,game over,begin
play song (8)
showbackdrop (3)
wait for key (anykey)
game over
end
|
|
|
Back to top |
|
 |
Calehay ...yeah. Class B Minstrel

Joined: 07 Jul 2004 Posts: 549
|
Posted: Fri Dec 14, 2007 3:17 pm Post subject: |
|
|
If you want to use the old syntax, you will need to change your script to this:
Code: | include,plotscr.hsd
include,proto.hsi
Define Script (1, game over, none)
script,game over,begin
play song (8)
showbackdrop (3)
wait for key (anykey)
game over
end |
However, if you want to use the new syntax, which doesn't require you to define scripts, you have to change it to this:
Code: | include,plotscr.hsd
include,proto.hsi
Plotscript, game over, begin
play song (8)
showbackdrop (3)
wait for key (anykey)
game over
end |
http://gilgamesh.hamsterrepublic.com/wiki/ohrrpgce/index.php/How_do_I_convert_my_scripts_from_old_to_new_syntax%3F _________________ Calehay |
|
Back to top |
|
 |
exodia91
Joined: 14 Dec 2007 Posts: 2
|
Posted: Fri Dec 14, 2007 3:26 pm Post subject: |
|
|
yay it worked |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Fri Dec 14, 2007 7:14 pm Post subject: |
|
|
I am mildly surprised that you are not having a problem with the name of the plotscript. "game over" is the name of a built-in command, so your script named "game over" collides with it. |
|
Back to top |
|
 |
|