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

Importing error

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




Joined: 14 Dec 2007
Posts: 2

PostPosted: Fri Dec 14, 2007 3:02 pm    Post subject: Importing error Reply with quote

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
View user's profile Send private message
Calehay
...yeah.
Class B Minstrel



Joined: 07 Jul 2004
Posts: 549

PostPosted: Fri Dec 14, 2007 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
exodia91




Joined: 14 Dec 2007
Posts: 2

PostPosted: Fri Dec 14, 2007 3:26 pm    Post subject: Reply with quote

yay it worked
Back to top
View user's profile Send private message
Bob the Hamster
OHRRPGCE Developer




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

PostPosted: Fri Dec 14, 2007 7:14 pm    Post subject: Reply with quote

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