Dynamic Menus, anyone?
wsquires
29 Apr 2008, 13:39Is it possible to create a dynamic menu that adjusts its contents based on the contents of a container?
I've made a "journal" object using the same trick before - limited containerism - so that only journal pages can be put in it (but not taken out). I'd like it so that, when the player types:
>Read Journal
a menu will be displayed showing all the journal pages added. I've already added the script logic to prevent reading the journal in case there are no pages in it yet, so the menu won't have to deal with the case where there is nothing in the journal. Thus the menu can start with one item in it "Chapter 1", which the player can select. But how to add the other menu items as the player finds (and inserts) more pages into the journal?
I've made a "journal" object using the same trick before - limited containerism - so that only journal pages can be put in it (but not taken out). I'd like it so that, when the player types:
>Read Journal
a menu will be displayed showing all the journal pages added. I've already added the script logic to prevent reading the journal in case there are no pages in it yet, so the menu won't have to deal with the case where there is nothing in the journal. Thus the menu can start with one item in it "Chapter 1", which the player can select. But how to add the other menu items as the player finds (and inserts) more pages into the journal?
paul_one
29 Apr 2008, 21:36If you're using Quest-menu's, then no.
I think it's on one of Alex's 'to do' lists.
But hey - you can always create your own text-based dynamic menu!
I think it's on one of Alex's 'to do' lists.
But hey - you can always create your own text-based dynamic menu!
wsquires
30 Apr 2008, 13:30Poo. Oh, well, I took a different approach anyway in which I list all the "pages" that the player could find and pick up in the menu as a sort of 'index page' of the journal. Then, in each menu item, I put an "If" conditional action to check a flag ("page_1", "page_2", etc...) to see if the user found that page and put it in the journal. If not, it just tells them that they haven't found that chapter yet, if so, then it displays a text block.
Not ideal, but it works.
Not ideal, but it works.