View Single Post
Shaman964
Member
 
Join Date: May 2015
Posts: 34

Old December 6th, 2017, 01:04 AM
Quote:
Originally Posted by Sendric View Post
Update:

For a more complete fix (and code update), replace the entire current script with the following:

Code:
~ If we're disabled, do nothing
  doneif (tagis[Helper.FtDisable] <> 0)

~ If we haven't chosen anything, get out now
  if (field[fChosen].ischosen = 0) then
    if (tagis[Target.?] = 0) then
      done
    endif
  endif

~ Assign the appropriate tag to all weapons that meet the criteria
  var id as string
  id = field[fChosen].chosen.idstring
  foreach pick in hero where "IsWeapon.?" & id
    perform eachpick.assign[Broadcast.WepSpec]
  nexteach

~ Set our 'short name'
  if (field[fChosen].ischosen <> 0) then
    field[fShortName].text = "Spec: " & field[fChosen].chosen.field[name].text
        
~ Forward the weapon specialization tag for the weapon to the hero
    perform field[fChosen].chosen.forward[WepSpec.?]
  endif
Note: The replacement feat can be found in Custom - Core Book Mods
Just so I know I am sure I have this correct, this replaces the eval script for Deity's Favored Weapon for Favored Soul?

Thanks.
Shaman964 is offline   #720 Reply With Quote