• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Disable/Remove Natural Weapons

AndrewD2

Well-known member
Working on a template that removes any head based weapons (bite, gore, headbutt, breathweapon) and replaces it with tentacle attacks.

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
 
This is a case where there are examples of how a template can remove natural attacks already in Hero Lab. In the list of templates, filter for "Attacks", because you're looking for a template that alters the attacks of the base creature. Hint: the example I found's name starts with a P, and there are many variants of that template.
 
Although along the same lines, I need to disable breath weapons and I created a script that foreaches through Ability where "thingid.<breathweaponID>" and with the 36 ids it seems to be bringing Hero Lab to its knees. Any suggestions?
 
Back
Top