|
Senior Member
Join Date: Feb 2010
Posts: 874
|
I'm not sure what the problem is here, but something I've got in the Broken Earth file isn't working quite right.
There is a racial "ability" for Simians called "Less Educated" which blocks access to some skills, bootstraps Illiterate and such. I have an Edge called "Educated Simian" which is supposed to be going back and deleting that ability. When taking it the Illiterate is going away, but the Less Educated "ability" is still showing, and its still blocking the skills. This is the Edge: Code:
<thing id="edgEducSim" name="Educated Simian" description="A Simian with this Edge is not Illiterate nor limited in the skills they may take." compset="Edge" summary="An educated Simian"> <fieldval field="shortname" value="Educ Simian"/> <usesource source="BrEarth"/> <tag group="EdgeType" tag="Background"/> <tag group="MinRank" tag="0"/> <tag group="User" tag="EducSim"/> <eval phase="Initialize" priority="7500">doneif (field[abilActive].value = 0) perform hero.delete[User.LessEdu]</eval> <pickreq thing="racSimian"/> </thing> Code:
thing id="rpLessEdu" name="Less Educated" description="Simian communities are superstitious of “modern†or “futuristic†technology, and traditionally don’t teach technology to their young. Simians begin with the Illiterate Hindrance, and cannot take the following skills at the time of character creation: Driving, Lockpicking, Knowledge (Computers, Electronics, Science, and the like), Piloting, Repair. Simians, can buy this off with two character creation points, or as an Advance." compset="RacialProp" summary="Technology averse"> <fieldval field="raceCstVal" value="-2"/> <usesource source="BrEarth"/> <tag group="DomainTerm" tag="Race" name="Race" abbrev="Race"/> <tag group="User" tag="LessEdu" name="LessEdu" abbrev="LessEdu"/> <bootstrap thing="hinIllit"> <containerreq phase="Initialize" priority="8000">hero#User.LessEdu</containerreq> </bootstrap> </thing> Last edited by Paragon; March 3rd, 2018 at 09:04 PM. |
#1 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
What’s the timing on the tag used to block the skills?
Also, do you really need the doneif statement on the Educated Simian? Working on - |
#2 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Its not. I did replace and precludes of new versions of the skills for the setting, and it has pick-reqs that look for the Racial Property's id.
Quote:
|
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,556
|
Don't use Replace.
Never use Replace. Did I mention not to use Replace? It replaces it everywhere, not just in the current Setting. It's not meant to be used in Setting files. Use Precludes. _ Currently In Development: Savage Pathfinder, SWADE Fantasy Companion Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion _ Currently Running: Savage Unity Inc. (homebrew multiverse theme) Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane Future Setting Files: Savage Judge Dredd |
#4 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Sorry, I used "replace" in the non term-of-art way; I do use Preclude. What I meant was that I have custom versions of the relevant skills that do a pick-req for rpLessEdu.
|
#5 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
So, that said, anyone got any ideas? I'd have thought "Initialize" would be early enough, but was I wrong?
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,556
|
Well, one thing I find confusing is the containerreq on the racial property checking for a tag that is applied by the racial property. You might want to use !hero#User.EducSim instead.
The doneif is for Edges that can be turned on and off by external means. You likely don't need it for this. As far as the Skills still being blocked, you are using a pickreq on the rpLessEdu. Simply removing the tag won't stop this from happening. Try using a Expr-req that checks for the User.LessEdu tag being there instead. (hero.tagis[User.LessEdu] = 0) _ Currently In Development: Savage Pathfinder, SWADE Fantasy Companion Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion _ Currently Running: Savage Unity Inc. (homebrew multiverse theme) Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane Future Setting Files: Savage Judge Dredd |
#7 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Ah. I'll see what I can do with that, and while I'm at it, I'll remove the doneif. I'd assumed that bit of code was removing the rpLessEdu entirely, which I'm guessing from your response is not the case. I usually don't default to expr-reqs because as I indicated, I'm not always as clear on the syntax, so I only go there when there's no nother way.
|
#8 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Well, that was pretty painless; it didn't like the parentheses, but other than that it was simple. Thanks CC.
|
#9 |
|
|