View Single Post
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old March 24th, 2009, 03:27 PM
I still can't get this feat to work correctly after a lot of tinkering with the code, I think i'll have to give in!

Heres my final effort for evaluation!

Code:
~ If you're an elf you're proficient with Elven weapons.
var hasfeat as number

if (hero.tagis[Race.Elf] <> 0) then
  if (#hasfeat[fWepElf] + #hasfeat[fWepMart] + #hasfeat[fMartial] <> 0) then
    perform hero.assign[wEasyRace.Elf]
    perform hero.assign[WepProf.wElvLigBla]
    perform hero.assign[WepProf.wElvThiBla]
   endif
endif

~ If you're an Half-Elf you're proficient with Elven weapons.
var hasfeat as number

if (hero.tagis[Race.HalfElf] <> 0) then
  if (#hasfeat[fWepElf] + #hasfeat[fWepMart] + #hasfeat[fMartial] <> 0) then
    perform hero.assign[wEasyRace.HalfElf]
    perform hero.assign[WepProf.wElvLigBla]
    perform hero.assign[WepProf.wElvThiBla]
   endif
endif

~ If you're an Dwarf you're proficient with Dwarven weapons.
var hasfeat as number

if (hero.tagis[Race.Dwarf] <> 0) then
  if (#hasfeat[fSimple] + #hasfeat[fWepMart] + #hasfeat[fMartial] <> 0) then
    perform hero.assign[wEasyRace.Dwarf]
    perform hero.assign[WepProf.wWaraxeDw]
    perform hero.assign[WepProf.wUrgroshDw]
   endif
endif

~ If you're an Gnome you're proficient with Gnomish weapons.
var hasfeat as number

if (hero.tagis[Race.Gnome] <> 0) then
  if (#hasfeat[fSimple] + #hasfeat[fWepMart] + #hasfeat[fMartial] <> 0) then
    perform hero.assign[wEasyRace.Gnome]
    perform hero.assign[WepProf.wHammerGnm]
    endif
endif

~ If you're a Half-Orc you're proficient with Orcish weapons.
var hasfeat as number

if (hero.tagis[Race.HalfOrc] <> 0) then
  if (#hasfeat[fSimple] + #hasfeat[fWepMart] + #hasfeat[fMartial] <> 0) then
    perform hero.assign[wEasyRace.HalfOrc]

    perform hero.assign[WepProf.wCoWaAxDbl] 
    ~The above line is to assign a special Complete Warrior version of the Orc Double axe
       Just in case the original axe thing doesn't work

    perform hero.assign[WepProf.wAxeOrcDbl]
    endif
endif
bodrin is offline   #6 Reply With Quote