Steve Jackson Games - Site Navigation
Home General Info Follow Us Search Illuminator Store Forums What's New Other Games Ogre GURPS Munchkin Our Games: Home

Go Back   Steve Jackson Games Forums > Roleplaying > GURPS > GURPS Character Assistant

Reply
 
Thread Tools Display Modes
Old 05-06-2011, 12:00 PM   #1
flyingwombat
 
flyingwombat's Avatar
 
Join Date: Aug 2004
Location: Alameda, CA
Default 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
flyingwombat is offline   Reply With Quote
Old 05-07-2011, 02:05 PM   #2
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default 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.
Armin is offline   Reply With Quote
Old 05-08-2011, 06:04 AM   #3
flyingwombat
 
flyingwombat's Avatar
 
Join Date: Aug 2004
Location: Alameda, CA
Default 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
flyingwombat is offline   Reply With Quote
Old 05-08-2011, 01:52 PM   #4
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: using #choice

Quote:
Originally Posted by flyingwombat View Post
I'm also being dense. I was looking for an example. I haven't found one in the data files.
Ah, okay. I think Eric always uses #ChoiceList, which has more features and options. #Choice is very simple, and doesn't offer any features beyond "choose one of these things". It basically looks like this:

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.
Armin is offline   Reply With Quote
Old 05-08-2011, 01:57 PM   #5
PK
 
PK's Avatar
 
Join Date: Aug 2004
Location: Dobbstown Sane Asylum
Default 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}
PK is offline   Reply With Quote
Old 05-08-2011, 01:59 PM   #6
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: using #choice

Quote:
Originally Posted by Rev. Pee Kitty View Post
Armin, that one example made #Choice very clear. Any chance you could add the example to the wiki?
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.
Armin is offline   Reply With Quote
Old 05-08-2011, 08:39 PM   #7
flyingwombat
 
flyingwombat's Avatar
 
Join Date: Aug 2004
Location: Alameda, CA
Default 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
flyingwombat is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Fnords are Off
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:40 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.