PDA

View Full Version : CT linkPCFields question



Paul Pratt
August 28th, 2019, 06:00
Is it possible to use the function linkPCFields() in ct_entry.lua to link more than strings and numbers? I want to link to a short list. In the 40k MultisetRules the weapons are too complicated to use an attack line style in the CT. I want to grab a filtered weapon list from the charsheet for use in the CT.

Any ideas? I know setLink within the linkPCFields() function points to the number_ct_crosslink template. I was thinking of a new script based on setLink to handle a list. What is a list in terms of type (i.e. number, string, windowreference, dice, etc?


I am reaching here, concepts or ideas to try are welcome.

damned
August 28th, 2019, 13:43
Hi Paul
Have you had a look at the 2E ruleset?
celestian brings something more like the PC actions into the CT for NPCs...
Possibly Im misremembering a little.

And as I finish typing... why do you want PC actions in the CT? PCs are generally too complex to run from the CT.
And NPCs only live in the CT so they dont need a link function?

Paul Pratt
August 28th, 2019, 15:14
damned,

I have looked at 2E. I even had some insights looking at the party sheet in 3.5 bringing in skills.

In my 40k rule set, I use linkPCFields() to link to the NPC's various stats, but they only reside in the CT and are a unique instance. I only want the weapon list for NPC's, I just don't see a way of mapping or drop handling a list. So, I was wondering about linking.

damned
August 29th, 2019, 02:14
In MoreCore the list of Rolls is added to NPCs in the CT - you could see if that code helps any?

Paul Pratt
August 29th, 2019, 03:00
Oh really? That could help. Thanks for the tip!

Paul Pratt
August 29th, 2019, 07:51
Thank you damned! Looking at the rolls list helped. It would have never occurred to me to handle the list that way. NPC weapon's are now displaying in the CT, thank you!