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

PSTUTOR and hsi?

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






PostPosted: Mon Sep 28, 2009 2:51 am    Post subject: PSTUTOR and hsi? Reply with quote

i'm supposed to insert
Use your HSI file in your script with an include command.

include, mygame.hsi

but where do i insert it? before the "end" right? but before the "define constant, begin"? or after? if after, do i need a space?
Back to top
Guest
Guest






PostPosted: Mon Sep 28, 2009 3:03 am    Post subject: Reply with quote

I'm sorry that was stupid of me i wish to delete that post or edit it to prevent double post but oh well. I inserted the hello world script but the only thing that appears is the text box. Nothing more. No words no letters nothing. why is this?
Back to top
JSH357




Joined: 02 Feb 2003
Posts: 1705

PostPosted: Mon Sep 28, 2009 4:57 am    Post subject: Reply with quote

Does the text box have text in your RPG file? I remember when I first used the OHR, I didn't realize this had to be the case.

Basically, it's going to work like this. Say you go in to Custom.exe and make Text Box 1 say "Hello World." This defines what the text box will contain.

Now, you make an hss file that looks like this.

Code:

include, plotscr.hsd
include, yourgame.hsi

define script(
1, HelloWorld, none
)

script, HelloWorld, begin
showtextbox(1)
waitfortextbox
end


That script, when called, will display the text box that you edited to contain the text "Hello World" in Custom.

(Be aware that I am using the older script format here. I believe in the new one, you don't have to define your scripts, but I'm not sure where the documentation is on it. I prefer the old one, anyway.)
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: Mon Sep 28, 2009 5:54 am    Post subject: Reply with quote

'plot:plotscript' (sorry for the bad formatting)
Yes, the define script block isn't needed if instead you change "script, HelloWorld" to "plotscript, HelloWorld"
_________________
"It is so great it is insanely great."
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