Newbie question: stuck on menu (GUI)

Paolo
There is an option when adding a Menu via GUI called "Options from list/dictionary"
I guess there I should type the options to appear in the menu. However I could not figure out how to type the options. Whatever I type in there I get an error.
I try to create a list or a dictionary, but nothing helps.
Could someone post a description of a screenshot how to fill the form for creating a menu?
I use the web version if this plays a role.

jaynabonne
You need to create the list (or dictionary) and then add the desired options:

ShowMenu.jpg


Hope that helps!

Paolo
Thanks I could not find the set variable script. I have found it in the offline version.

jaynabonne
When adding a script, under "Variables", it's "Set a Variable or Attribute".

HegemonKhan
if you're using the on-line~browser version, I believe you have to use the "start" script under the "game" Object to add the "set a variable or attribute" scripts:

(in the off-line~desktop version):

"game" -> Scripts (Tab) -> add a script -> variables -> set a variable or attribute ->

Object.Attribute = Value_or_Expression

for examples:

game.turns_integer = 0
player.turns_integer = 0
HK.favorite_color_string = "black"
orc.physical_damage_integer = orc.weapon_damage_integer + orc.weapon_damage_integer * (orc.strength_integer - HK.endurance) / 100
HK.favorite_colors_string_list = split ("black;red", ";")

------------------------

some useful links for you:

01. http://quest5.net/wiki/Main_Page
02. http://quest5.net/wiki/Tutorial
03. http://quest5.net/wiki/How_to (guides)
04. http://quest5.net/wiki/Showing_a_menu
05. http://quest5.net/wiki/Character_Creation
06. http://quest5.net/wiki/Category:All_Fun ... t_Commands (page 1, range: A-S)
07. http://quest5.net/w/index.php?title=Cat ... t#mw-pages (page 2, range: S-Z)
08. viewforum.php?f=18 (more guides: libraries and code)

Paolo
I solved the problem. However I think that the menu GUI could be simplified by just allowing user type a list of comma separated strings in the field, hiding all coding details away.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums