neoraistlin
New member
I'm a new user who's been hard at work coding a custom campaign into HL. I've really enjoyed he process and I've looked through the tutorials and many of the threads to get ideas and techniques. However, I've come to a section that I'm having trouble coding and would like some suggestions.
An ethnicity in our campaign gets the following "At First level, a Praethian
must choose between two kinds of Weapon Familiarity: either Lance or Praethian sarcissa (longhafted throwing axe) familiarity.Praethians who pick Lance familiarity receive the lance proficiency if they would otherwise be nonproficient and if they are already proficient, they receive the Weapon Focus: Lance feat".
So I've created the ethnicity under R Cust Special and bootstrapped the ability under Racial Special to the ethnicity. The eval script under the Racial Special is:
No matter how I test for martial weapon prficiency (#hasfeat[fWepMart] or Hero.ProfMart) it always fails. I suspect that it is a timing issue because I read somewhere that the feats and proficiencies are not added until around 2500 priority?
I know I could get it to work from a configurable, but I would really like the selector to appear under the racial section of teh background tab and that is why I have it set up like I do now. Is there any work around to make this work?
An ethnicity in our campaign gets the following "At First level, a Praethian
must choose between two kinds of Weapon Familiarity: either Lance or Praethian sarcissa (longhafted throwing axe) familiarity.Praethians who pick Lance familiarity receive the lance proficiency if they would otherwise be nonproficient and if they are already proficient, they receive the Weapon Focus: Lance feat".
So I've created the ethnicity under R Cust Special and bootstrapped the ability under Racial Special to the ethnicity. The eval script under the Racial Special is:
Code:
First/500
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
if (field[usrChosen1].chosen.tagis[thingid.wLance] <> 0) then
if (#hasfeat[fWepMart] <> 0) then
perform hero.assign[Custom.PraLanFoc]
elseif (#hasfeat[fWepMart] = 0) then
perform hero.assign[Custom.PraLanPro]
perform hero.assign[WepProf.wLance]
endif
elseif (field[usrChosen1].chosen.tagis[thingid.wPraSarc] <> 0) then
perform hero.assign[Custom.PraSarc]
endif
No matter how I test for martial weapon prficiency (#hasfeat[fWepMart] or Hero.ProfMart) it always fails. I suspect that it is a timing issue because I read somewhere that the feats and proficiencies are not added until around 2500 priority?
I know I could get it to work from a configurable, but I would really like the selector to appear under the racial section of teh background tab and that is why I have it set up like I do now. Is there any work around to make this work?