AWizardInDallas
Well-known member
What's wrong with this picture? 
var result as number
var weapongrp1 as number
var weapongrp2 as number
weapongrp1 = #hasfeat[fWGrpSpLa]
weapongrp2 = #hasfeat[fWGrpDbl]
if (weapongrp2 = 1) then
if (weapongrp2 = 1) then
result = hero.assign[WepProf.wUrgroshDw]
result = hero.assign[WepProf.wAxeOrcDbl]
endif
endif
result = hero.assign[WepProf.wHandaxe]
result = hero.assign[WepProf.wBattleaxe]
result = hero.assign[WepProf.wGreataxe]
result = hero.assign[WepProf.wWaraxeDw]
I'm trying to grant two additional weapon proficiencies if the hero has two addtional feats (i.e. Weapon Group (Exotic Double Weapons). I'm doing this in an eval script rather than validation so I'm not sure #hasfeat works in an eval script. I'm also assuming it returns a 1 if it finds the feat. Little help please?
I'm really looking forward to the Authoring Kit, let me tell ya!

var result as number
var weapongrp1 as number
var weapongrp2 as number
weapongrp1 = #hasfeat[fWGrpSpLa]
weapongrp2 = #hasfeat[fWGrpDbl]
if (weapongrp2 = 1) then
if (weapongrp2 = 1) then
result = hero.assign[WepProf.wUrgroshDw]
result = hero.assign[WepProf.wAxeOrcDbl]
endif
endif
result = hero.assign[WepProf.wHandaxe]
result = hero.assign[WepProf.wBattleaxe]
result = hero.assign[WepProf.wGreataxe]
result = hero.assign[WepProf.wWaraxeDw]
I'm trying to grant two additional weapon proficiencies if the hero has two addtional feats (i.e. Weapon Group (Exotic Double Weapons). I'm doing this in an eval script rather than validation so I'm not sure #hasfeat works in an eval script. I'm also assuming it returns a 1 if it finds the feat. Little help please?
I'm really looking forward to the Authoring Kit, let me tell ya!
