View Single Post
Senko
Senior Member
 
Join Date: Jan 2014
Posts: 262

Old February 11th, 2020, 09:32 PM
So I want to change the figment archetype to achieve two things. First remove the restriction it must remain within 100' of the master and 2nd that it disspears when the master sleeps. Essentially adding the paracosmist arhcetype for summoners to figment familiars. Now the editing/changes are fine but for some reason when I create the new figment archetype they don't validate correctly. If I delete the requirement that it be added to master and familiar then add one to just the familiar its fine. If I include the validation rules they don't seem to recognize each other. Here's the relvant scripts. . .

ID for the master Figment HR is FigHR
ID for the familiar Figment HR is raFigmentHR

Master Validation Rules
Validation Phase Priority 5000 Index 1 Error
Message: You must add this archetype to both the master and the familiar in order to get the full effects.
Summary: You must add this archetype to both the master and the familiar in order to get the full effects.


if (hero.childlives[cArcFamil] <> 0) then
validif (hero.childfound[cArcFamil].minion.tagis[HasAbility.raFigmentHR] <> 0)
endif

~ We aren't sure what Paizo's intentions are Re: Animal archetypes and
~ multiple companions. The below was built assuming that all companions
~ of a hero must share the same animal archetype. Until we get confirmation
~ one way or the other, I'm commenting it out.
~ var compnum as number
~ var match as number

~ if (hero.tagis[CompHas.cArcFMult] <> 0) then
~ foreach pick in hero from MultCompan
~ compnum += 1

~ if (eachpick.minion.tagis[HasAbility.raFigmentHR] <> 0) then
~ match += 1
~ endif
~ nexteach
~ endif

~ validif (compnum = match)

Familiar Validation Rules

Master Validation Rules
Validation Phase Priority 5000 Index 1 Error
Message: You must add this archetype to both the master and the familiar in order to get the full effects.
Summary: You must add this archetype to both the master and the familiar in order to get the full effects.

if (isminion <> 0) then
validif (master.tagis[ClassVary.FigHR] <> 0)
endif
Senko is offline   #1 Reply With Quote