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
|
|
Back to top |
|
 |
Camdog
Joined: 08 Aug 2003 Posts: 606
|
Posted: Mon Jul 28, 2008 5:13 pm Post subject: |
|
|
"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...
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.
and
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 |
|
 |
MADSOFT Games Representing more than 80% of the internet!

Joined: 06 Nov 2004 Posts: 221 Location: AWESOME land
|
|
Back to top |
|
 |
|