|
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
How would I script a prerequisite a character having the major version of a Hindrances but allow the minor version of the Hindrance?
|
#1 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
There should be a field for it, set to "field[hinMajor].value = 1" if true.
So at a guess you could start figuring it out from something like: Code:
foreach pick in hero from Hindrance validif (eachpick.field[hinMajor].value <> 0) nexteach Code:
foreach pick in hero from Hindrance if (hero.tagis[Hin.hinNCNepot] <> 0) validif (eachpick.field[hinMajor].value <> 0) endif nexteach if (@ispick <> 0) then altpick.linkvalid = 0 endif 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
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,552
|
It's actually a tag. [User.HindMajor] Just assign that tag to the Hindrance when it's applied to the character in the Setting.
_ 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 |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
How would I script it to have not allow a major version of the hindrance but not require the hindrance it's self.
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,552
|
In the validation, just check for the combination of the Hindrance tag and the HindMajor tag. If they both exist, throw the error.
_ 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 |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
I seem to be getting an ID10T error on my end. I can get it to work but only if the hero takes the hindrance.
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,552
|
Is the validation on the Hindrance? Put it in a mechanic and attach it to the Setting.
_ 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
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
But this is for a faction. That's why I am getting confused.
|
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,552
|
You should be able to attach it to the Faction...
_ 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 |
#9 |
|
|