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

Help with my new menu
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



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

PostPosted: Tue May 19, 2009 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Tue May 19, 2009 10:49 am    Post subject: Reply with quote

Anonymous wrote:
You know, I think we really need a command like "use menu item(menu item handle)" That seems to be conspicuously missing.


What?!?!
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Tue May 19, 2009 1:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
bis_senchi




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

PostPosted: Thu May 21, 2009 9:14 am    Post subject: new command "use menu item (menu item handle)" Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Thu May 21, 2009 12:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
msw188




Joined: 02 Jul 2003
Posts: 1041

PostPosted: Thu May 21, 2009 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
bis_senchi




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

PostPosted: Mon May 25, 2009 9:06 pm    Post subject: Sorry to insist so much but... Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon May 25, 2009 9:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bis_senchi




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

PostPosted: Sun May 31, 2009 7:46 am    Post subject: After some tests on my menu... Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon Jun 01, 2009 4:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bis_senchi




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

PostPosted: Sun Jun 07, 2009 5:01 am    Post subject: Well It's a bit better with the scancodes but... Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Wed Jun 10, 2009 5:56 am    Post subject: Reply with quote

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
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
Goto page Previous  1, 2
Page 2 of 2

 
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