Working on a template that removes any head based weapons (bite, gore, headbutt, breathweapon) and replaces it with tentacle attacks.
I started with this
I'm guessing SpcDisable is not what I need, but I can't find any existing examples for this.
It's adding the new attack, but it's not disabling the other attack. Any help is great.
Thanks,
Andrew
I started with this
Code:
var tentacles as number
var tentstr as string
foreach pick in hero from BaseNatWep where "thingid.wBite|thingid.wGore|thingid.wHeadButt"
perform eachpick.assign[Helper.SpcDisable]
tentacles += 1
nexteach
tentacles += hero.child[wTentacle].tagvalue[Value.?]
tentstr = "Value." & tentacles
perform hero.child[wTentacle].delete[Value.?]
perform hero.child[wTentacle].assignstr[tentstr]
I'm guessing SpcDisable is not what I need, but I can't find any existing examples for this.
It's adding the new attack, but it's not disabling the other attack. Any help is great.
Thanks,
Andrew