Right, so if this is more of an "I want a script to do X" post, lets flesh that out. The technical aspects are all there, it's the interface that will be the hard part. "When I do ACTION, copy ATTRIBUTE from CHARACTER and update the value of TEXT on PAGE" ACTION -- what is the action you want to do? Needs to be an event, such as an API command in the chat, a specific roll template being sent to chat, an attribute on a character being changed, a token being moved/flagged/adjusted in some way. CHARACTER -- how do you know which character to use, and what ATTRIBUTE to collect? And does the attribute need to be evaluated (formula) first? TEXT -- how do you know what text to update, and if this is more general, which PAGE to do the update on? Those are the questions that need to be answered before the script can be written. You could write a script that would take the attribute of a known character and update a known text object with its contents in a few lines of code, but it isn't useful if you can't do it in a general case: let attr = getObj('attribute', knownAttrID );
let text = getObj('text', knownTextID );
text.set('text',attr.get('current'));