View Single Post
Old 02-25-2011, 09:30 PM   #4
PK
 
PK's Avatar
 
Join Date: Aug 2004
Location: Dobbstown Sane Asylum
Default Re: Using downto() or the equivalent, for advantages?

Quote:
Originally Posted by Armin View Post
downto() only works on ads in templates, because GCA "cheats" and gives the items a temporary tag called control_downto() that is used in the calcs for those items within the template. It's deleted again once the template is finished. There isn't specific support for downto() in ads otherwise, because it never really seemed like there'd be any call for such behavior.
Heh, figured I'd come up with something that'd break the system. FWIW, I believe that it makes sense to just include equal functionality across all realms -- that is, if downto() works for skills, it might as well work for advantages, attributes, etc. Since GURPS is so universal, something weird is always going to come up. :)

Quote:
I can add it for the future. For now, you might be able to cheat by simply using control_downto() directly. I don't think it'll be deleted if it's there outside of the context of a template.
Ha! GCA has been fooled -- yes, control_downto(4) works!

Quote:
However, if the version of Divine Favor using it is used inside a template, odd things may happen.
Double ha! Mad science!

Quote:
Anyway, I'll see about adding downto() support directly, and see about getting an update out soon. Been trying to get a new codebase working, but another update with the current setup will have to happen sooner than that, I think.
Thanks, Armin!

Quote:
Originally Posted by ericbsmith View Post
You can also use the init() tag to specify the starting level of an advantage - e.g. init(4) means the advantage will automatically be added at level 4 initially. You could also put a needs(me::level = 4) on there, which while it doesn't restrict the user from taking levels 1-3 it does tag them as missing a prereq, as well as tag any other traits needing that one as missing a prereq as well.
I hadn't thought of the needs(), but my backup plan was going to be to recost levels 1-4 as all being 15 points (so 15/15/15/15/20/25/etc.) and then using init(4). That wouldn't prevent a user from going down the chain, but it'd at least make it less likely. As long as this control_downto() doesn't break anything, though, I prefer it.

(And yes, I'm off to test what happens when I stick it in a template with some #codes . . .)
__________________
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