Simerion
June 8th, 2020, 17:17
I added another field to the skilllist of a 5e character. This field is to be prefilled with when initializing the available skills. The background is a "soft" translation, which does not affect the program code of 5e, and simply shows a translated name in addition to the original english name (I will do the same for some other places: Both the English text and the German text should appear, but FGU should be able to use the English texts for logic purposes).
Now the initialization is not "globally" reachable (as far as I understand it so far). It is included in the character in the skilllist. I would hate to have to copy the window as a whole to add the functions (also to have as few dependencies on rule changes as possible).
...
<windowlist name="skills">
...
<datasource>.skilllist</datasource>
<class>skill_item</class>
<sortby, control, name, control, sortby.
<script file="campaign/scripts/char_skilllist.lua" />
</windowlist>
...
The affected function ("constructDefaultSkills") is taken from the file "campaign/scripts/char_skilllist.lua" (5th set of rules) and will be included in "record_char_skills.xml" on the skilllist-level. How can I overwrite (add functionality) to this function without changing too much of the character sheet?
Now the initialization is not "globally" reachable (as far as I understand it so far). It is included in the character in the skilllist. I would hate to have to copy the window as a whole to add the functions (also to have as few dependencies on rule changes as possible).
...
<windowlist name="skills">
...
<datasource>.skilllist</datasource>
<class>skill_item</class>
<sortby, control, name, control, sortby.
<script file="campaign/scripts/char_skilllist.lua" />
</windowlist>
...
The affected function ("constructDefaultSkills") is taken from the file "campaign/scripts/char_skilllist.lua" (5th set of rules) and will be included in "record_char_skills.xml" on the skilllist-level. How can I overwrite (add functionality) to this function without changing too much of the character sheet?