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

"0 scripts imported"

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




Joined: 22 Jan 2008
Posts: 50

PostPosted: Wed May 30, 2012 7:52 pm    Post subject: "0 scripts imported" Reply with quote

Hi gang, I have NEVER successfully made up a plotscript. Amidst compiling problems, I gave up years ago and have been building the story sequences of my games as cleverly as possible over and around plotscripting.

HOWEVER... one thing that I figure is simple enough even for me to figure out, and something that I really need for my game, is a Game Over script.

All I want to do is show a backdrop, play some music, and that's it. But the OHR engine won't let me. I spent an hour FINALLY figuring out how to actually compile the script, and HamsterSpeak even says it compiles successfully; however, when I try to import it into my game, it says 0 scripts imported.

Please help. All I want is this stupid plotscript. I can live without awesome cutscenes and whatnot, but I really just want a Game Over screen. Here's my script:

Code:
include, plotscr.hsd
include, XXXX.hsi

script,gamedeath,begin
 suspendplayer
 play song (song:Game Over)
 show backdrop (11)
 wait for key (anykey)
 fade screen out (0,0,0)
 game over
end


Any help is greatly appreciated. I just want to get past this step. ><
_________________
'Wyrd bið ful aræd.'
Back to top
View user's profile Send private message Send e-mail
Bob the Hamster
OHRRPGCE Developer




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

PostPosted: Wed May 30, 2012 8:36 pm    Post subject: Reply with quote

Hello! You want "plotscript", not "script"

Code:
plotscript, gamedeath, begin


"script" is only used for scripts that are only called from other scripts (or for old-style scripts)

the "plotscript" keyword creates a new-style plotscript that you will be able to attach to plotscript triggers in your game
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: Thu May 31, 2012 2:19 am    Post subject: Re: "0 scripts imported" Reply with quote

Abelhawk wrote:
I spent an hour FINALLY figuring out how to actually compile the script,


By the way, since Zenzizenzic you can compile and import in one step from the Script Management menu. Is there some documentation/wiki pages that need updating?
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Abelhawk
Professional Procrastinator




Joined: 22 Jan 2008
Posts: 50

PostPosted: Thu May 31, 2012 4:20 pm    Post subject: Reply with quote

Thank you James! I knew it had to be something small and stupid. It finally works!

And TMC, what I meant when I said "compile" was 'import successfully.' It still said it had errors and everything. I finally got it to work when I realized I had to use the "include" commands. But yeah, I used the "Compile/Import" command.

Thanks for your help everyone!
_________________
'Wyrd bið ful aræd.'
Back to top
View user's profile Send private message Send e-mail
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