Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Savage Worlds

Notices

Reply
 
Thread Tools Display Modes
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old March 3rd, 2018, 08:59 PM
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>
And just in case knowing about the racial ability is needed, this is it:

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>
Any idea why this isn't working right? Something timing-wise, or...? I'm particularly puzzled about it working for removing the Illiterate, but still showing and functioning to block skills; I'd have thought it'd either fail at both or succeed at both.

Last edited by Paragon; March 3rd, 2018 at 09:04 PM.
Paragon is offline   #1 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old March 4th, 2018, 03:09 PM
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 -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #2 Reply With Quote
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old March 4th, 2018, 08:48 PM
Quote:
Originally Posted by TCArknight View Post
What’s the timing on the tag used to block the skills?
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:
Also, do you really need the doneif statement on the Educated Simian?
Couldn't tell you. Like most of my eval scripts its likely a kitbash from some other code I found in the code thread or something someone suggested. I only understand about 75% of what's going on in that line of code anyway; I likely just substituted in the ID into code I found elsewhere. I have some general knowledge of coding, but its about 35 years old and ended at Fortran.
Paragon is offline   #3 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,549

Old March 5th, 2018, 04:19 AM
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
Future Development: SWADE Super Powers Companion, SWADE Fantasy 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
CapedCrusader is offline   #4 Reply With Quote
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old March 5th, 2018, 09:16 AM
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.
Paragon is offline   #5 Reply With Quote
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old March 5th, 2018, 09:20 AM
So, that said, anyone got any ideas? I'd have thought "Initialize" would be early enough, but was I wrong?
Paragon is offline   #6 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,549

Old March 5th, 2018, 08:12 PM
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
Future Development: SWADE Super Powers Companion, SWADE Fantasy 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
CapedCrusader is offline   #7 Reply With Quote
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old March 6th, 2018, 12:16 PM
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.
Paragon is offline   #8 Reply With Quote
Paragon
Senior Member
 
Join Date: Feb 2010
Posts: 874

Old March 13th, 2018, 01:20 PM
Well, that was pretty painless; it didn't like the parentheses, but other than that it was simple. Thanks CC.
Paragon is offline   #9 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
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:03 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.