| View previous topic :: View next topic |
| Author |
Message |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Tue May 19, 2009 9:46 am Post subject: |
|
|
Like your login amirite?
(As an aside, I've noticed browsing certain topics in Paradox Lounge gets you logged out. (edit) and those topics have been wiped.) _________________
|
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue May 19, 2009 10:49 am Post subject: |
|
|
| Anonymous wrote: | | You know, I think we really need a command like "use menu item(menu item handle)" That seems to be conspicuously missing. |
 _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue May 19, 2009 1:17 pm Post subject: |
|
|
That was me. I didn't notice I had been logged out by IM's recent fixes to the archive.
Yeah. There is no command for script-triggering a menu item handle.
I vaguely remember somebody asking for it, but I can't remember who.
I probably argued against it for some silly reason, and the person who asked for it was probably you TMC, so just in case I am correct on that hunch, I am just going to go ahead and commence feeling embarrassed as hell right now. ;) |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Thu May 21, 2009 9:14 am Post subject: new command "use menu item (menu item handle)" |
|
|
It appears that "use menu item(menu item handle)" may be what I need. It would a good thing to implement this command that enables to handle a new item.
Where are we supposed to send new feature propositions? Is there a way to implement it on his own adding lines in ploscript.hsd?
Thanks in advance for information! _________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Thu May 21, 2009 12:56 pm Post subject: |
|
|
Ah! I should have recognised you!
| James Paige wrote: | | I probably argued against it for some silly reason, and the person who asked for it was probably you TMC, so just in case I am correct on that hunch, I am just going to go ahead and commence feeling embarrassed as hell right now. ;) |
If it was me, then I should feel silly for not remembering anything about it; it does seem like the sort of thing I would complain about :P
| Quote: | | Where are we supposed to send new feature propositions? Is there a way to implement it on his own adding lines in ploscript.hsd? |
Well, James and I both know about it now, but you could still lodge a request if you think that we will forget about it ;) You can post feature requests on 'Bugzilla' _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Thu May 21, 2009 7:20 pm Post subject: |
|
|
That might have been me asking to trigger menu items by handle. But I can't remember at the moment. I was a pioneer in (asking for things dealing with) custom menues, ha ha _________________ My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161
This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Mon May 25, 2009 9:06 pm Post subject: Sorry to insist so much but... |
|
|
I know that I need the handle variable but I don't know with what command to combine it to use menu items using plotscriting.
| Code: |
script, test menu, begin
suspend player
variable (handle)
handle:= open menu (5)
wait for key (key:s)
#???? what should I put here? use menu item?
close menu (handle)
resume player
end #end of the script
|
As always thanks very much for your help! _________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Mon May 25, 2009 9:57 pm Post subject: |
|
|
James added a new command a couple of days ago to activate menu items, "use menu item (menu handle)". It was accidently called "activate menu item" in the dictionary, but this is fixed now.
What exactly do you want to do? Activate the currently selected menu item when the player presses s? That's pretty easy:
| Code: | variable (handle)
handle:= open menu (5)
wait for key (key:s)
use menu item (selected menu item (handle)) |
_________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun May 31, 2009 7:46 am Post subject: After some tests on my menu... |
|
|
Hello! I've made some tests and...
| Code: |
plotscript, menu test, begin
suspend player
wait for key (key:s)
variable (handle)
handle:= open menu (5)
wait for key (key:s)
use menu item (selected menu item (handle))
wait for key (key:s)
close menu (handle)
wait for key (key:s)
resume player
end #end for the script
|
I've modified the menu script to the one above. I've got 2 mains problems : first one when I use the arrow key 2 times consecutively, the menu closes automatically
The second one is that I have to press the space to activate the menu item.
The bitsets I've activated for menu 5 are the following
allows gameplay and scripts
suspend player even if gameplay allows
cancel button doesn't close the menu
I feel that I may need to activate others .Could you please give sme advises about it?
Thanks in advance for the help! _________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Mon Jun 01, 2009 4:25 am Post subject: |
|
|
Oh! Sorry, I didn't notice notice that "wait for key(key:s)" is wrong. "wait for key" uses constants like usekey and anykey, NOT constants like key:s. You need to replace every "wait for key(key:s)" with "wait for scancode(key:s)"
Does changing that fix both problems? _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun Jun 07, 2009 5:01 am Post subject: Well It's a bit better with the scancodes but... |
|
|
Well it's better with the command
wait for scancode
but the space bar still interfer with the s key. I think I finally need to suspend totally player control for the menu.
I see how to activate the bitset but not how to stop it Could you tell me how to gives control back to the player once the script ends?
I think I also need to use the handle variable differently. I'm also counting on you to give me advice!
As always thanks very much for the help! _________________ It's time to make games! |
|
| Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Jun 10, 2009 5:56 am Post subject: |
|
|
You can use
set menu bit (handle, menubit:no controls, off)
set menu bit (handle, menubit:no controls, on)
To turn on and off normal player control of the menu.
It looks like you are using 'handle' correctly. Is there a problem? _________________ "It is so great it is insanely great." |
|
| Back to top |
|
 |
|