Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Mauron
Junior Member
 
Join Date: Jul 2013
Posts: 26

Old December 4th, 2013, 03:07 PM
Is this possible? After gaining the ability, any future feats taken would be valid if only one prerequisite failed. For example, a character with strength of 13 could take Cleave without having Power Attack.
Mauron is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old December 5th, 2013, 05:17 AM
Not really. You would have to modify all of the feats, and by your description I assume that any one pre-req could be ignored, which would complicate things. I'm not sure off the top of my head how to script it so that just one pre-req was ignored.

One alternative option would be to try to ignore all pre-reqs by using the tag thing.skipprereq, but even then you would probably only be able to apply that to feats already selected.

Another would be to be more specific in what this special ignores. Using your example, you could use this special to assign the tag "HasFeat.fPowerAtt" to the hero which would make HL think the character had the pre-req for Cleave (but it would still require STR 13).
Sendric is offline   #2 Reply With Quote
Mauron
Junior Member
 
Join Date: Jul 2013
Posts: 26

Old December 5th, 2013, 08:16 AM
I had a feeling this wouldn't work well. Modifying all of the feats isn't out of the question, since I'm trying to implement Farscape d20, and the book only has about 50 feats.
Mauron is offline   #3 Reply With Quote
Mauron
Junior Member
 
Join Date: Jul 2013
Posts: 26

Old December 5th, 2013, 09:52 AM
I figured out a way to do it. I'm posting it in the unlikely event someone else needs it.

This was set up as a prerequisite with no message text.
Code:
var errorCount as number
var errorText as string
errorCount = 0
errorText = ""
~test condition 1
if (child[Attack].field[tAtkBase].value < 1) then
  errorCount += 1
  errorText = "Base Attack Bonus 1 required"
endif
~test condition 2
if (child[aDEX].field[aFinalVal].value < 13) then
  if (errorCount > 0) then
    errorText &= ", "
  endif
  errorText &= "Dex 13 required"
  errorCount += 1
endif
~ No errors, continue.
if (errorCount = 0) then
  @valid = 1
~ has appropriate levels for the required special. I tried testing the class special itself, but didn't find a way to see if it was active.
elseif (#levelcount[Scavenger] >= 9) then
  if (errorCount = 1) then
    @valid = 1
  else
    @valid = 0
    @message = errorText
  endif
else
  @valid = 0
  @message = errorText
endif
Now I just need to redo my feats.
Mauron is offline   #4 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old December 5th, 2013, 10:30 AM
Thanks for posting this. I assume this gets put on each feat?
Sendric is offline   #5 Reply With Quote
Mauron
Junior Member
 
Join Date: Jul 2013
Posts: 26

Old December 5th, 2013, 10:59 AM
Yeah. All the prerequisites are handled through the series of if statements on the one rule.
Mauron is offline   #6 Reply With Quote
Reply


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 03:11 PM.


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