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

Quite stupid...

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
MADSOFT Games
Representing more than 80% of the internet!




Joined: 06 Nov 2004
Posts: 221
Location: AWESOME land

PostPosted: Mon Jul 28, 2008 2:15 pm    Post subject: Quite stupid... Reply with quote

Ok, this is quite stupid but I don't know what to do with this:
"Load Menu (reallyload).
What should I put in the "reallyload" area, the plotdictionary doesn't say anything about that and when I compile it says that "reallyload" is wrong....
_________________
http://www.madsoftgames.net/
http://www.madsoftgames.org/
http://www.andrewdavid.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Camdog




Joined: 08 Aug 2003
Posts: 606

PostPosted: Mon Jul 28, 2008 5:13 pm    Post subject: Reply with quote

"reallyload" is an optional argument, so you don't need it at all. If you pass the load menu function that argument, it should be either true or false. If it's false, load menu will show the load menu, but rather than executing whatever option the player chose, it will return a value based on their choice and just return to the plotscript. So...

Code:
load menu(false)


Will show the load menu, but nothing will happen regardless of what is selected.

Code:
variable(choice)
choice := load menu(false)

if (choice == -1) then(#do something special when the user selects quit)
else (#do something else for any other choice)


Will do something special when the user selects quit, since load menu returns a value based on the user's choice but does nothing else when you pass it the value false.

Code:
load menu(true)


and

Code:
load menu


both do the same thing; since the argument is optional and defaults to true, you don't need to pass it, but it won't hurt anything if you do. This is probably what you want.
Back to top
View user's profile Send private message
MADSOFT Games
Representing more than 80% of the internet!




Joined: 06 Nov 2004
Posts: 221
Location: AWESOME land

PostPosted: Mon Jul 28, 2008 5:28 pm    Post subject: Reply with quote

Thank you ^^
_________________
http://www.madsoftgames.net/
http://www.madsoftgames.org/
http://www.andrewdavid.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
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