Need help setting up a menu in a script

Post » Thu Feb 17, 2011 1:17 pm

I'm working on a new variation of my Arrow Spells mod and want to use a menu in one of the spells. The menu will have a total of 15 options spread across 2 pages. What option you choose will determine what arrows get added to your inventory. I can make a one page menu work in a spell script, but I don't know how to get a two page menu to work. I've looked through several mods that do this and a tutorial on the CS Wiki, but I'm more confused now than when I started. Any help would be greatly appreciated.
User avatar
Alan Whiston
 
Posts: 3358
Joined: Sun May 06, 2007 4:07 pm

Post » Thu Feb 17, 2011 1:58 pm

I'm working on a new variation of my Arrow Spells mod and want to use a menu in one of the spells. The menu will have a total of 15 options spread across 2 pages. What option you choose will determine what arrows get added to your inventory. I can make a one page menu work in a spell script, but I don't know how to get a two page menu to work. I've looked through several mods that do this and a tutorial on the CS Wiki, but I'm more confused now than when I started. Any help would be greatly appreciated.
All menus are one-page menus, they simulate more than one page by having one choice in the menu result in the creation of a second menu. So in your first menu, just have a "next" choice (or something similar), and if that is selectied, create the second menu. In the second you can have a "back" choice that makes you open the first menu again.
User avatar
Phoenix Draven
 
Posts: 3443
Joined: Thu Jun 29, 2006 3:50 am

Post » Thu Feb 17, 2011 7:55 am

To further clarify, you use a variable to tell the script which menu is active so you know which menu to display, and what to do when a button is selected. Be that going to the next menu, going back a menu, or performing an action and quiting the menus.
User avatar
Hearts
 
Posts: 3306
Joined: Sat Oct 20, 2007 1:26 am

Post » Thu Feb 17, 2011 11:17 am

Thanks guys. I'll play around a bit and see what I can come up with.
User avatar
Gisela Amaya
 
Posts: 3424
Joined: Tue Oct 23, 2007 4:29 pm


Return to IV - Oblivion