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

Something strange in the script
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Mike Caron
Technomancer




Joined: 26 Jul 2003
Posts: 889
Location: Why do you keep asking?

PostPosted: Sun Jul 02, 2006 8:10 am    Post subject: Reply with quote

Ok, I researched some stuff, and discovered that the command is named "load menu":

The Plotscripting Dictionary wrote:
load menu (reallyload)

Displays the load game menu. The player can load a game or select New Game or Exit/Cancel. If the player picks New Game then the calling script continues, otherwise the current game is terminated and either quits to the titlescreen (if there is one) or a game is loaded. You can optionally pass an argument of false to make the menu display without actually loading or quiting. If you do this, you'll need to interpret the return value to find out which option the player selected: positive values are save slot numbers, 0 means New Game and -1 is Quit.


So, the easiest way to use this is like this:

Code:
load menu(true)


That will show the menu, and if the player chooses a slot or starts a new game or quits, it will really happen, and you don't have to do anything at all.

To use a nightly, you first need to [url=gilgamesh.hamsterrepublic.com/wiki/ohrrpgce/index.php/Downloads]Download it[/url]. As that's downloading, you may want to make a new folder for the nightly, so as to not overwrite your regular copy of the OHR. In this new folder, extract/install Tirgoviste so you have a clean copy.

Then, extract the contents of the nightly zip into your new folder, overwriting files as it asks. Then, voila!

Also, you'll need an updated copy of Hspeak.exe (which is not included in the nightly archive any more, for some reason)
_________________
I stand corrected. No rivers ran blood today. At least, none that were caused by us.

Final Fantasy Q
OHR Developer BLOG
Official OHRRPGCE Wiki and FAQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon Jul 03, 2006 3:34 am    Post subject: Reply with quote

The reason you can't use the "load menu" command is because you don't have the lastest plotscr.hsd. You can download it here. It's not included in the nightlies. Also, if you want to read the latest dictionary with the new commands, I've uploaded it here.

About the code you posted for the illegal wait substate error: is newgame2 the new game script? It would probably be easier if you just emailed me your game and scripts instead. I will probably need all of them for this bug. If you no longer have the game the way it was, could you post introduction1?
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
bis_senchi




Joined: 08 Jun 2004
Posts: 460
Location: Reims, France

PostPosted: Mon Jul 03, 2006 10:07 pm    Post subject: Great! Reply with quote

I've got the new hsd file an I don't get any error message when I compile. Hourra!

But the only problem that left is that when I test I don't see the menu appears on screen. (I make run the command when the game is launched in a basic script may be that explain why it doesn't work.

Anyway, could somoene explains how does the (reallyload) attribute function? What is it supposed to be? A constant? A global variable?

I also would like to learn how to pass an argument, so that the menu can display without actually loading or quiting. Would somoene had an example about argument passing?

As always thanks for the help and good luck in making games!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mike Caron
Technomancer




Joined: 26 Jul 2003
Posts: 889
Location: Why do you keep asking?

PostPosted: Wed Jul 05, 2006 5:27 pm    Post subject: Reply with quote

Arguments 101

Arguments are easy, you use them all the time! To liven up this post, I'll make most sentences rhyme!

(ok, no I won't)

Code:
load menu(really load)


That is the "definition" from the plotscripting dictionary. It takes one argument (aka parameter), called "really load". It is intended to be either true/yes or false/no, as in:

"Really Load the save game? No!"

So, to answer all your questions simultaneously, you want:

Code:
load menu(false)

_________________
I stand corrected. No rivers ran blood today. At least, none that were caused by us.

Final Fantasy Q
OHR Developer BLOG
Official OHRRPGCE Wiki and FAQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
bis_senchi




Joined: 08 Jun 2004
Posts: 460
Location: Reims, France

PostPosted: Wed Jul 05, 2006 10:40 pm    Post subject: That's really interesting Reply with quote

When I compile I get the following message :

Quote:
Unrecognised name "really load". It has not been defined as script, constant variable or anything else.


I've downloaded and used the version of hspeak.exe recommended by the Mad Cacti.

By the way do I get a special version of game.exe to make the command works?

Thanks for the help!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Thu Jul 06, 2006 6:29 am    Post subject: Reply with quote

Yeaaaah... instead of "really load," you should put "true" or "false," depending on if you really want to load. Otherwise, it'll return the save slot of the file they selected.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
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