05-06-2011, 12:00 PM | #1 |
Join Date: Aug 2004
Location: Alameda, CA
|
using #choice
I'm not sure how to implement the directive. I wanted to give the user to have a choice between items, but I'm missing the way to allow the user to input the response.
__________________
Fraser: "Could you elucidate, sir?" Welsh: "No, no. Not since the late sixties." Ray: "That's Canadian for explain." --- from "due South" episode Seeing Is Believing |
05-07-2011, 02:05 PM | #2 |
GCA Prime
Join Date: Aug 2004
Location: Portland, OR
|
Re: using #choice
Maybe I'm being extra dense today, but I'm not sure I understand the question. The items you specify are presented to the user by GCA, and the one they select is placed into the %choice% variable in the trait, before it's added to the character.
Does that help? The wiki entry might be of use: http://www.misersoft.com/gca/wiki/in...File#.23Choice
__________________
Armin D. Sykes | Visit my GCA5 blog for updates and previews. | Get GURPS Character Assistant 5 now at Warehouse 23. |
05-08-2011, 06:04 AM | #3 |
Join Date: Aug 2004
Location: Alameda, CA
|
Re: using #choice
I'm also being dense. I was looking for an example. I haven't found one in the data files.
__________________
Fraser: "Could you elucidate, sir?" Welsh: "No, no. Not since the late sixties." Ray: "That's Canadian for explain." --- from "due South" episode Seeing Is Believing |
05-08-2011, 01:52 PM | #4 | |
GCA Prime
Join Date: Aug 2004
Location: Portland, OR
|
Re: using #choice
Quote:
Swears oddly (%choice%), -1, x(#Choice("Fracking", "Frelling", "Gorram")) The user would get a Choose Items dialog that asks them to pick one of the items listed. It's the same dialog #ChoiceList pops up, but without the ability to specify the various text prompts. And it will always be "Want 1". The user checks the box for their selection, clicks OK, and GCA will remove the x() tag contents, and leave their selected option in place of %choice%, in this case, perhaps leaving a quirk of "Swears oddly (Gorram)" on the character. Armin
__________________
Armin D. Sykes | Visit my GCA5 blog for updates and previews. | Get GURPS Character Assistant 5 now at Warehouse 23. |
|
05-08-2011, 01:57 PM | #5 |
Join Date: Aug 2004
Location: Dobbstown Sane Asylum
|
Re: using #choice
Armin, that one example made #Choice very clear. Any chance you could add the example to the wiki?
__________________
Reverend Pee Kitty of the Order Malkavian-Dobbsian (Twitter) (LJ) MyGURPS: My house rules and GURPS resources.
#SJGamesLive: I answered questions about GURPS After the End and more! {Watch Video} - {Read Transcript} |
05-08-2011, 01:59 PM | #6 |
GCA Prime
Join Date: Aug 2004
Location: Portland, OR
|
Re: using #choice
Sure, I'll do that right now.
__________________
Armin D. Sykes | Visit my GCA5 blog for updates and previews. | Get GURPS Character Assistant 5 now at Warehouse 23. |
05-08-2011, 08:39 PM | #7 |
Join Date: Aug 2004
Location: Alameda, CA
|
Re: using #choice
That helps. What I want to do is add the choice to the list. unfortunately, it goes into an infinite loop.
Never mind. Fixed it.
__________________
Fraser: "Could you elucidate, sir?" Welsh: "No, no. Not since the late sixties." Ray: "That's Canadian for explain." --- from "due South" episode Seeing Is Believing Last edited by flyingwombat; 05-08-2011 at 08:56 PM. Reason: update |
|
|