Junior Member
Join Date: Jul 2014
Posts: 18
|
Hi:
I have been going through the examples listed here and they have been a great help. One thing I cannot find how to do is to add a hindrance or edge that does not count against the limits for them. For example, I want to give Arrogant to a race, have it listed under Hindrances, but not count against the limit for the hindrances. Any help is good help. Thank you --Eric |
#1 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
Usually for Racial Properties/Abilities I tend to just apply the effect of that Edge/Hindrance within the Property/Ability rather than Bootstrapping one in. Although I notice I do things like bootstrap the Mutation hindrance in my Hell on Earth file for Doomsayers and I don't get any errors that way. In fact if you're Bootstrapping through something else those bootstraps shouldn't be counting against the character, I don't think.
Lenny Zimmermann Metairie, LA, USA Data files authored (please let me know if you see any issues with any of these if you have/use them): Official (In the downloader) 50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome Coming Eventually Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me) |
#2 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
If it is affecting the totals, you can reverse it kind of like how bootstrapped skills is done. If you need me to I can look up the things to modify for you. Just PM me as a reminder.
Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#3 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
You can do all of the following with an eval script that is Pre-Traits 5000. It is before Calc trtFinal (in the Timing button at the bottom).
To alter the number of Hindrance points that you have is as follows, with X being the value that you want to place there. Code:
hero.child[resHinder].field[resMax].value += X For edges, again with the X Code:
hero.child[resEdge].field[resMax].value += X Code:
perform #resspent[resSkill,-,X,"Free Skill"] Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#4 |
Junior Member
Join Date: Jul 2014
Posts: 11
|
Hi Folks,
Long time Hero Lab user, newish to the editor. I'm running into this problem too - I'll try to explain the best I can: I'm working on the Beasts&Barbarians setting - the Hindrance Illiterate is disallowed in this setting, but a hero can choose to be Illiterate, granting a +1 Smarts skill point, and they can later learn to read/write by spending an Advancement option for it. For purposes of the editor since the rules describe the exact behavior of a free hindrance, I have created a copy and set it to replace the existing default setting hindrance and I'm bootstrapping rewSkill. So far so good. The problem is, if the player has chosen to be illiterate and then adds other hindrances they fail validation because the normal 2 minor/2 major limit is not ignoring the replacement Illiterate hindrance (the bootstrapped reward sets the reward total to 1 and validation then allows only 3 more points before complaining). I tried using the hindrance code snippet above on my replacement Illiterate, but then it set the reward total to 2 with +=1 and to Overspent 1/x when a -=1 is used. I'm hoping there's a way to set the +1 skill and refund the cost, or increment the allowed points from hindrances to 3 minor/2 major only when the Illiterate hindrance is selected, but I haven't found it yet - any thoughts? |
#5 |
Junior Member
Join Date: Jul 2014
Posts: 11
|
Hmm.. so I tried to post a reply the other night and it said something about a Moderator (I must have hit a key because the message went away rather quickly,) but my message still hasn't made it through. So, take 2, and apologies in advance if my other message ends up showing up.
I'm working on a Beasts & Barbarians .user file,and I've run into a snag I haven't been able to figure out. In B&B, the Illiterate hindrance is disallowed, however any character can choose to be Illiterate and gain a +1 to a smarts skill. They can later learn to read by spending an advancement option. But it's not considered a hindrance and it's not supposed to count against your limit. For editor purposes this acts exactly like a hindrance, so I have created one and used "replaces thing" to replace the default Illiterate hindrance. My version bootstraps rewSK (I think, don't have it in front of me at the moment) to add a +1 skill reward. All good. The problem is, when selecting my Illiterate it increments the Rewards counter to 1/1 (should be 0/0) - this causes the validation error "overspent" by 1 point if the user selects their full complement of hindrances. I've tried the hindrance snippet in this thread but it doesn't quite help. (+= 1 makes it 1/2 giving a free extra reward and -= 1 makes it 1/0 and immediately validation error.) What's really odd is I looked at the Noble edge - it bootstraps in Rich and doesn't set off the validation report - but there's no code in the Thing that does it that I can see. I set up my hindrance the same way, but it doesn't have the same behavior. Regards, ~M |
#6 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
rewSkill has these two effects: it grants a skill point and it counts towards the reward total, as you have noted above. Bootstrapping it also causes those two effects. Bootstrapping an edge has the effect of that edge. OK, so your confusion is why can you buy an edge and it costs an edge or you can bootstrap it for free. It is the nature of how those two different types of things work. It is far more likely that someone get an edge for free, such as by a racial ability or even a magic item, so it is good that it works that way.
So, how to fix your issue? Hmm that one is kind of tricky. To sum it up these are the factors: 1) You want Illiterate to be available, but it is not available as a Hindrance in the setting. 2) If a character is illitererate it gets a +1 skill point on a Smarts skill. I have never tried it, but you probably could make a list of Smarts skills. But it is easier to just say "hey, here is an additional skill point, have at least one skill point in a Smarts skill and you are good to go". So you want to be able to pick illiterate and then give a skill point. First I would go to your custom user file that has a Source applied to it. Lets call it "BBarb". Then I would go to the Preclude and create a new preclusion. I would enter "hinIllit" and haev "BBarb" as the source. This makes it so that Illiterate is no longer available. Then I go to the Hindrance tab in the editor. Click on New (Copy) and get the old Illiterate Hindrance. Give it a new ID, maybe hinBBIllit or whatever. Then be sure to give it the same source. This will make it appear in place of the old one. Go ahead and type in something about the skill point in a Smarts skill, maybe even copy-paste the text from Beasts and Barbarians. Go to its Eval Script. This is how you will make it work for you. Click to add a new one. Phase is Pre-Traits Change the Priority from 100 to become 5000 At the bottom, but above the "OK" box there is a gray box that says Timing. Click on that and you will see a little data box by "Before Scripts". Copy paste this into it: Quote:
Quote:
Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
||
#7 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
One thing you might add here is a Literacy Edge, since it presumably costs an Advance, but it should have a Pick Req of Illiterate.
Lenny Zimmermann Metairie, LA, USA Data files authored (please let me know if you see any issues with any of these if you have/use them): Official (In the downloader) 50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome Coming Eventually Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me) |
#8 |
Junior Member
Join Date: Jul 2014
Posts: 11
|
Ok, you guys rock
It's working now, THANK YOU! One note I didn't use preclude, but instead used Replace ThingID - any reason to do one over the other? I've been precluding things that are forbidden, and Replacing things that are modified thus far. Here's the resulting XML after inserting your code. Code:
<thing id="hinBBIll" name="Illiterate" description="The Dread Sea Dominions are a very illiterate world. So, as per the standard game rules, almost all the characters should have the Illiterate Hindrance. Yet, this would cause a generic flattening of the heroes. Hence, the Hindrance is ignored and each player is allowed to decide if his hero knows \nhow to read and write or not (depending on the hero’s background). Illiterate characters have an extra Skill point, to be spent on a Smarts based skill.\n\nCharacters can become literate during the \ngame by spending a leveling option.\n\nYour hero cannot read. He can probably sign his name, but can do little else. He also doesn't know much about math either. He can probably do 2+2=4, but multiplication and the like are beyond him.\n\nIlliterates can't read or write in any language, by the way, no matter how many they actually speak." compset="Hindrance" summary="Cannot read, write, or do math +1 smarts skill pt" replaces="hinIllit" uniqueness="unique"> <usesource source="setBBGold"/> <eval phase="PreTraits" priority="5000">~ Add a free Skill point for illiteracy. hero.child[resSkill].field[resMax].value += 1 ~ Fix the hindrance and reward point numbers. hero.child[resHinder].field[resMax].value -= 1 herofield[acMaxMinor].value += 1 herofield[acMaxHindP].value += 1 ~ Thanks to SeeleyOne and zarlor. <before name="Calc trtFinal"/> </eval> </thing> Thanks again! ~M |
#9 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
Using Replace will replace it in ALL settings. You can mess up a bunch of other stuff by using Replace and it's basically recommended that you simply never use it.
As for a master list of things... I mention a few of the main resources to use to help figure things out at the top of the Code thread. Quote:
Lenny Zimmermann Metairie, LA, USA Data files authored (please let me know if you see any issues with any of these if you have/use them): Official (In the downloader) 50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome Coming Eventually Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me) Last edited by zarlor; July 30th, 2014 at 03:28 AM. |
|
#10 |
|
|