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 10-31-2019, 09:52 AM   #1
Kheldar
 
Kheldar's Avatar
 
Join Date: Aug 2005
Default Trouble creating a modifier

I want to create a level modifier which grants +1 to reactions for showy/expensive items.
in the modifier i use gives(+1 to ST:reaction)
The modifier works, however in the reactions listing on the character sheet or quick view it states +1 from <item>
where <item> it the name of the item it has been assigned eg Cloak
I want it to say +1 from Showy <item>

gives(+1 to ST:reaction listas %value% from showy %name%)

i got the following (rather surprising result)

0 from showy Enhanced Ground Move

not +1 from showy Cloak

Does anyone have any idea's how to make this work
__________________
Kheldar
If I could think of something witty to put here, I would...
Kheldar is offline   Reply With Quote
Old 11-01-2019, 08:09 AM   #2
Armin
GCA Prime
 
Armin's Avatar
 
Join Date: Aug 2004
Location: Portland, OR
Default Re: Trouble creating a modifier

I'm pretty sure that the special substitutions in listas (%name% and such) only work for traits granting bonuses, not for modifiers doing so.

I don't have time right now to really get in and check it out. If I'm correct, this is something that I can look at updating for the future.

However, with modifiers there are issues for such substitutions, due to two possible use cases:

1) wanting to use the modifier's value and name
2) wanting to use the modifier's value with the owning trait's name

You want the second case, but things are currently built for traits, which work on the first case, so it's trying to apply that logic, which it can't because it's a modifier not a trait. So, you get some random return value. (Again, I can't confirm this right now, this is what I believe based on recollection and what you are seeing.)

I don't see a way to work around this 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 11-16-2019, 06:28 PM   #3
Kheldar
 
Kheldar's Avatar
 
Join Date: Aug 2005
Default Re: Trouble creating a modifier

I am having difficulty getting the @sametext function to work

I want to compare a value from a choice list, to determine which set of value I should use

=@if(@sametext(%choice%,"myText") then optionA else OptionB)

I have tried using @if, $if and myText enclosed in Quotes or not in quotes, nothing seems to get it working.

Has anyone found another way to compare text strings? or get it working?

Many thanks
__________________
Kheldar
If I could think of something witty to put here, I would...
Kheldar is offline   Reply With Quote
Old 11-17-2019, 01:59 AM   #4
ericbsmith
 
ericbsmith's Avatar
 
Join Date: Aug 2004
Location: Binghamton, NY, USA. Near the river Styx in the 5th Circle.
Default Re: Trouble creating a modifier

Did you try:

=@if(@sametext("%choice%","myText") then optionA else OptionB)

Beyond that, we're going to need more context. You need to post the entire modifier. The gives tag can change not just on what you're trying to do but what you're trying to target and where in the calculation process you want the formulas to be parsed.
__________________
Eric B. Smith GURPS Data File Coordinator
GURPSLand
I shall pull the pin from this healing grenade and...
Kaboom-baya.
ericbsmith is offline   Reply With Quote
Old 11-17-2019, 03:37 AM   #5
Kheldar
 
Kheldar's Avatar
 
Join Date: Aug 2005
Default Re: Trouble creating a modifier

Thanks Eric that sorted it out.
__________________
Kheldar
If I could think of something witty to put here, I would...
Kheldar 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 02:56 AM.


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