• 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

Read-only error from Item Selection list

Redcap's Corner

Well-known member
I need an Item Selection list that shows only certain creature types. I had been using an array, but I need to be able to assign a tag to whichever option the user chooses. I tried using an expression like:

Code:
(component.BaseType & (Type.tpAberr | Type.tpAnimal | Type.tpDragon | etc., etc.))

And I got the following error:

Code:
Attempt to access pick information or behaviors for read-only thing 'tpAberr'

So, I tried putting together some "Simple" things with the same names as the types I need, ids like sAberr, sAnimal, etc., and custom tags to help me setyp the Item Selection list. But for some reason I'm getting the same "read-only" error. Are "Simple" things always read-only, even if they're custom things I created? Is there a way to make them not read-only? Is there a different type of thing that would be more appropriate for this?

Thanks!
 
Something is "read only" when its a "Thing" and changes to a something you can modify when it becomes a "Pick" on the character.

A Thing is in memory but it is not "live" on the character/hero. So in example the feat "Dodge" thingid.fDodge is a Thing as until someone selects it and adds it to the character. Then it turns into a Pick and its "live". Similar to object orientated programming where you have to instantiate the object before using it.

So for your "Simple" things what I have done in the past is make a new "Mechanic" and bootstrap all those simple things to the Mechanic. You could also bootstrap all the simple things to your Feat/Class ability that you want to allow the selection. As long as you have the Simple Things setup as "Add Once" then you will only ever have one instance live on the character.

Hope that helps.
 
Back
Top