• 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

Change a items holdable state

frumple

Well-known member
Change an item's holdable state

Is there a way to switch an item/weapon's state from holdable="yes" to holdable="no"?

Specially, I have a magic weapon power that would need to make the chosen weapon no longer able to be put into bags, i.e. it becomes holdable="no".

I have tried the following (on the item power) but no good. Get the error I have an undeclared variable 'state'
Code:
~ make user proficient and weapon natural
if (parent.tagis[component.BaseWep] <> 0) then
   perform parent.assign[Helper.Proficient]
   perform parent.assign[wFtrGroup.Natural]
   perform parent.assign[wGroup.Natural]
   perform parent.setfocus
   perform state.focus.amendthing[holdable,"no"]
   perform state.clearfocus

else
  foreach pick in hero from BaseWep where container.child[gCustMagic].field[gWeapExpr].text
     perform eachpick.assign[Helper.Proficient] 
     perform eachpick.assign[wFtrGroup.Natural] 
     perform eachpick.assign[wGroup.Natural] 
     perform eachpick.setfocus
     perform state.focus.amendthing[holdable,"no"]
     perform state.clearfocus
   
 nexteach
endif
 
Last edited:
This is not something that can be changed. What game rule is this intended to represent?
 
Last edited:
This may or may not help. I don't have HL handy atm. But have a look at coffins. They have a box checked on a field I think says Top Level Item. This kept me from stuffing one into a Bag of Holding, so it may just happen to be what you're looking for. If not, I'll take a second look when I can access HL.
 
Mathias, it is for integrated weapons from the Advanced Bestiary. a creature can select a weapon and it becomes integrated with its body (acts as a natural weapon). Because any weapon can be selected, and magical powers can be added to it, I am implementing it as a magic weapon ability. It seemed much simpler to do that than try to deal with all the mishagas with gizmos.

Just for completeness I wanted to implement this. It seemed a bit silly for a weapon that is attached to a character's body being able to be put into a container/bag/sack, etc.

If it is not possible, then no big deal. :)
 
Korlen,

I believe top level containers are for containers that do not pass weight onto the hero. That is not quite what I am looking for.
 
That's not something I'd worry about implementing. The user should always be paying attention to whether something can actually fit in the container they're moving it to, because there's no way for Hero Lab to enforce absolutely every combination of item and container without knowing the exact dimensions of every object in the game. So, they can apply some common sense to this, too - if your weapon is integrated into your arm, you can't put it in a bag.
 
Last edited:
Why not create a bag called Integrated Weapons. That way you can put all the weapons that have been integrated into the Bag. Just my 2 cents.
 
Back
Top