Member
Join Date: Aug 2014
Posts: 87
|
Need some directions here. Gizmos have been an experience in themselves, but I'm starting to make some headway - I think...
In this instance, to build magic items you have a housing (which uses an existing weapon or armor as the basis), then you add a power source that gives you a pool of points from which you can add runes to the item. I've got a chooser_table to pick my power source, but I can't figure out how to get the value of the "power" field off of that pick and on to the entity so that I can then use it for the addpick value on the table_dynamic that handles the Runes... ideas? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I'd have the power source component bootstrap a "power points" resource. Then, you can just add to the resmax of that resource like you'd add to any other resource. Just in this case, use container.child[whatever] instead of hero.child[whatever], since you want a resource that's in the same container as you.
|
#2 |
Member
Join Date: Aug 2014
Posts: 87
|
nevermind, found my problem. there's a space between .field and [resRunePlt]
Quote:
Last edited by barrelv; December 3rd, 2014 at 12:38 PM. |
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Why not put that script on the Capacitor component?
There, it'd be one line: Code:
container.child[resRunePlt].field[resMax].value += field[cpPower].value |
#4 |
Member
Join Date: Aug 2014
Posts: 87
|
any idea why my resource is ending up on the hero and not the entity?
Code:
<!-- An entity for custom mechanika armor --> <entity id="MeckArm" form="ctmMckArm"> <bootstrap thing="MeckArmor"/> <bootstrap thing="resRunePlt"/> </entity> |
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Check the enmasse entries in your bootstraps.1st file - is there something there that would add this resource to the character?
The one that comes to mind is that if you created this resource by copying another, it might still have the Helper.Bootstrap tag, which triggers one of the enmasse entries. |
#6 |
Member
Join Date: Aug 2014
Posts: 87
|
The Helper tag was my culprit...
Thanks! |
#7 |
|
|