View Single Post
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 289

Old July 9th, 2020, 01:15 PM
The coding for the Hida Defender's Critical Focus ability (Oriental Adventures) doesn't function quite right. Please adjust to the following:

Code:
if (field[usrChosen1].chosen.tagis[thingid.wBattleaxe] <> 0) then
  foreach pick in hero from BaseWep where "WepFocus.? & IsWeapon.wBattleaxe"
    perform each.delete[wCritMult.?]
    perform each.assign[wCritMult.4]
  nexteach
elseif (field[usrChosen1].chosen.tagis[thingid.wWarhammer] <> 0) then
  foreach pick in hero from BaseWep where "WepFocus.? & IsWeapon.wWarhammer"
    perform each.delete[wCritMult.?]
    perform each.assign[wCritMult.4]
  nexteach
elseif (field[usrChosen1].chosen.tagis[thingid.wGreatclub] <> 0) then
  foreach pick in hero from BaseWep where "WepFocus.? & IsWeapon.wGreatclub"
    perform each.delete[wCritMult.?]
    perform each.assign[wCritMult.3]
  nexteach
endif
Also, the coding for the binder's Binding ability (Tome of Magic, xBind) is still calculating wrong. Please change to:
Code:
      var level as number
      var check as number
      var difficulty as number
      level = hero.childfound[xBind].field[Value].value
      check = level + #attrmod[aCHA]
      difficulty = round(level/2,0,-1)
      difficulty = difficulty + 10 + #attrmod[aCHA]

      field[xSumm].text = "EBL = " & level & ", Binding Check 1d20 + " & check & ", Special DC = " & difficulty & "."

Last edited by Illyahr; July 9th, 2020 at 01:53 PM.
Illyahr is online now   #998 Reply With Quote