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 11-16-2018, 03:16 PM   #21
Refplace
 
Refplace's Avatar
 
Join Date: Nov 2008
Location: Yukon, OK
Default Re: Making Pick lists

FYI is there really no RPM datafile? I haven't seen it so far.
Once this code is done though it should work for RPM too. At least the Paths.
__________________
My GURPS publications GURPS Powers: Totem and Nature Spirits; GURPS Template Toolkit 4: Spirits; Pyramid articles. Buying them lets us know you want more!
My GURPS fan contribution and blog:
REFPLace GURPS Landing Page
My List of GURPS You Tube videos (plus a few other useful items)
My GURPS Wiki entries
Refplace is offline   Reply With Quote
Old 11-16-2018, 03:41 PM   #22
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: Making Pick lists

Quote:
Originally Posted by Refplace View Post
I got it to work with the single skill. As you said I need quotes around the default and upto but that was no big deal.
Next Ill mess around with Inputreplace I think to see if I can make it user defined and still work.
Great! Good luck.

Quote:
Originally Posted by Refplace View Post
I have been closing GCA then restarting and removing then adding back the datafile to refresh my changes.
It seems to cache the datafile upon loading so delete then add wasnt working.
If you use the Load Now button in Options, Data Sets tab, it should see that the file you're working on has changed, and then reload all the component files.

If that isn't working for some reason, then closing and restarting GCA should be sufficient. But if none of that is doing it, then sure, do what seems to work.

Quote:
Originally Posted by Refplace View Post
Your advising just recalculate after removing then adding the datafiles?
I was editing the skill on the character, so that required a Recalc Everything to flush things through. If you're working on the data file, and using a new character every time, you shouldn't need to do that.

Quote:
Originally Posted by Refplace View Post
You been a lot of help! Sorry I'm not getting the hang of this faster.
You're quite welcome. A lot of this stuff is very esoteric, and there are some odd 'gotchas' and glitches in there, too.
__________________
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 11-16-2018, 03:44 PM   #23
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: Making Pick lists

Quote:
Originally Posted by Refplace View Post
FYI is there really no RPM datafile? I haven't seen it so far.
Once this code is done though it should work for RPM too. At least the Paths.
There's GURPS Magic 4e - Ritual Magic.gdf, but I'm not sure what all it covers. It's in the root folder with the regular Magic and whatnot.
__________________
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 11-16-2018, 04:31 PM   #24
Refplace
 
Refplace's Avatar
 
Join Date: Nov 2008
Location: Yukon, OK
Default Re: Making Pick lists

Quote:
Originally Posted by Armin View Post
There's GURPS Magic 4e - Ritual Magic.gdf, but I'm not sure what all it covers. It's in the root folder with the regular Magic and whatnot.
It does not include RPM.
What I am doing should work pretty well for RPM once its all worked out.
Individual Rituls are not separate skills or techniques IIRC, so just need the Paths and core skill part of the code.
__________________
My GURPS publications GURPS Powers: Totem and Nature Spirits; GURPS Template Toolkit 4: Spirits; Pyramid articles. Buying them lets us know you want more!
My GURPS fan contribution and blog:
REFPLace GURPS Landing Page
My List of GURPS You Tube videos (plus a few other useful items)
My GURPS Wiki entries
Refplace is offline   Reply With Quote
Old 11-16-2018, 04:37 PM   #25
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: Making Pick lists

Sorry, brain fart on my part.

What about this one over on the GCA Repository? GURPS Thaumatology: Ritual Path Magic

Just trying to save you work, if possible.
__________________
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 11-16-2018, 04:46 PM   #26
Refplace
 
Refplace's Avatar
 
Join Date: Nov 2008
Location: Yukon, OK
Default Re: Making Pick lists

Quote:
Originally Posted by Armin View Post
Sorry, brain fart on my part.

What about this one over on the GCA Repository? GURPS Thaumatology: Ritual Path Magic

Just trying to save you work, if possible.
Added and reviewed. There is an interesting idea there
"Path of Body", IQ/VH, default("ST:MagicDefaultBase"), upto(@min("SK:Thaumatology::level", 12 + "ST:Magery")), page(MH1:32), cat(_General, Occult/Magical), needs("SK:Thaumatology" = 1pts)
The default and upto might be useful.

Either way thanks for pointing me at the file, I thought I grabbed all the extras.
__________________
My GURPS publications GURPS Powers: Totem and Nature Spirits; GURPS Template Toolkit 4: Spirits; Pyramid articles. Buying them lets us know you want more!
My GURPS fan contribution and blog:
REFPLace GURPS Landing Page
My List of GURPS You Tube videos (plus a few other useful items)
My GURPS Wiki entries
Refplace is offline   Reply With Quote
Old 11-16-2018, 05:48 PM   #27
Refplace
 
Refplace's Avatar
 
Join Date: Nov 2008
Location: Yukon, OK
Default Re: Making Pick lists

Ok, almost have it but adding another choicelist is breaking it.
The below code wont even load and I suspect I did my nesting wrong but the count keeps working to my eyes.

Ideally this code pulls from two lists. Core skills and from the group list.
Both work fine on thier own, just not when I nest them.
Interestingly the Core skills allow the skill to increase, possibly because they are in quotes. Do I need the aliaslist here?


_CoreTest2 (%Affinityaltlist%), type(IQ/VH), default(SK:%corelist% - 6), needs(SK:%corelist%), page(B242),
x(_
#ChoiceList(_
name(core),
title(Ritual Magic Path),
text(Please select an appropriate Ritual Magic core skill:),
picksallowed(1),
method(bynumber),
default(13),
list(_
"Alchemy",
"Biology",
"Body Control",
"Computer Hacking",
"Herb Lore",
"Musical Influence",
"Physics",
"Blind Fighting",
"Invisibility Art",
"Zen Archery",
"Pressure Secrets",
"Weird Science",
"Ritual Magic",
"Thaumatology" _
),
aliaslist(_
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""_
)_
)_
x(_
#ChoiceList(_
name(Affinity),
title(Ritual Magic Path),
text(Please select an appropriate Ritual Magic core skill:),
picksallowed(1),
method(bynumber),
default(13),
altlist(_
#grouplist(GR:Affinity Skills, flags(NoPrefix))_
),

)_
)
__________________
My GURPS publications GURPS Powers: Totem and Nature Spirits; GURPS Template Toolkit 4: Spirits; Pyramid articles. Buying them lets us know you want more!
My GURPS fan contribution and blog:
REFPLace GURPS Landing Page
My List of GURPS You Tube videos (plus a few other useful items)
My GURPS Wiki entries
Refplace is offline   Reply With Quote
Old 11-16-2018, 06:27 PM   #28
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: Making Pick lists

Quote:
Originally Posted by Refplace View Post
Ok, almost have it but adding another choicelist is breaking it.
The below code wont even load and I suspect I did my nesting wrong but the count keeps working to my eyes.

Ideally this code pulls from two lists. Core skills and from the group list.
Both work fine on thier own, just not when I nest them.
Interestingly the Core skills allow the skill to increase, possibly because they are in quotes. Do I need the aliaslist here?
Let's take a look...

First off, x() is a container for directives, but it's still a tag, so just one per definition.

Second, your second #ChoiceList doesn't have a list, just an altlist(), so I don't think you'll get at all what you're trying to get.

So, if you want the Core #ChoiceList to set the default and needs, using the list(), then you don't need the altlist().

If you want the Core list to also fill in the name extension, then use the altlist from your sencond #Choicelist to fill that, using %CoreAltList%
and drop your second #ChoiceList entirely.

If you actually want two different choices to be made, then restructure your second #ChoiceList to use list() instead of altlist().

Finally, there's no upto(), so nothing to limit increasing the skill, if that's what you mean.

Also, the code tags are your friend for keeping things formatted here, although the small view window is annoying:
Code:
_CoreTest2 (%Affinity%), type(IQ/VH), default(SK:%core% - 6), needs(SK:%core%), page(B242),
	x(_
		#ChoiceList(_
				name(core),
				title(Ritual Magic Path),
				text(Please select an appropriate Ritual Magic core skill:),
				picksallowed(1),
				method(bynumber),
				default(13),
				list(_
					"Alchemy",
					"Biology",
					"Body Control",
					"Computer Hacking",
					"Herb Lore",
					"Musical Influence",
					"Physics",
					"Blind Fighting",
					"Invisibility Art",
					"Zen Archery",
					"Pressure Secrets",
					"Weird Science",
					"Ritual Magic",
					"Thaumatology" _
					)_
				)_
		#ChoiceList(_
				name(Affinity),
				title(Ritual Magic Path),
				text(Please select an appropriate Ritual Magic core skill:),
				picksallowed(1),
				method(bynumber),
				default(13),
				list(_
					#grouplist(GR:Affinity Skills, flags(NoPrefix))_
					)_
				)_
	)
You seem to be doing pretty well at keeping your parens matching. :-)

ETA: Just noticed a rogue carriage return; hopefully that's just an artifact of the forum, but if it's in your code, you should remove that, two lines up from the bottom.

Also, there's a comma just above that carriage return that should be an _, as well the comma after the first list() should be _.
__________________
Armin D. Sykes | Visit my GCA5 blog for updates and previews. | Get GURPS Character Assistant 5 now at Warehouse 23.

Last edited by Armin; 11-16-2018 at 06:33 PM.
Armin is offline   Reply With Quote
Old 11-16-2018, 06:44 PM   #29
Refplace
 
Refplace's Avatar
 
Join Date: Nov 2008
Location: Yukon, OK
Default Re: Making Pick lists

Quote:
Originally Posted by Armin View Post
Let's take a look...


If you actually want two different choices to be made, then restructure your second #ChoiceList to use list() instead of altlist().

Finally, there's no upto(), so nothing to limit increasing the skill, if that's what you mean.


You seem to be doing pretty well at keeping your parens matching. :-)

ETA: Just noticed a rogue carriage return; hopefully that's just an artifact of the forum, but if it's in your code, you should remove that, two lines up from the bottom.

Also, there's a comma just above that carriage return that should be an _, as well the comma after the first list() should be _.
That worked almost perfect, I just need to add the upto back to limit the skill. I bet the comma was part of the problem and I totally misunderstood Erics reply earlier which was also a problem.
I misunderstood him and thought each string had to have separate named lists.
Sorry forgot about the code tag, though yeah that small window is annoying.
__________________
My GURPS publications GURPS Powers: Totem and Nature Spirits; GURPS Template Toolkit 4: Spirits; Pyramid articles. Buying them lets us know you want more!
My GURPS fan contribution and blog:
REFPLace GURPS Landing Page
My List of GURPS You Tube videos (plus a few other useful items)
My GURPS Wiki entries
Refplace is offline   Reply With Quote
Old 11-16-2018, 06:55 PM   #30
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: Making Pick lists

Glad things are working better.

(I usually copy the code out to another window to check over it, but for smaller blocks the code blocking does help.)
__________________
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
Reply


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:28 AM.


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