From a quick glance at the python for UU, it appears that they didn't have a generic journal script, so I see why this was done for fan Ages. Making a roughly-equivalent (even better, without the old MOULa cruft) PFM as a shim should be easily doable. Any missing-but-needed features to the moul-scripts repo to reasonably support fan Ages are welcome as pull requests too, of course.
On Gehn, when using the built-in
xJournalBookGUIPopup PFM the author only needs to provide the Activator, Width and Height scaling, a LocPath to the .loc resource to use for the contents, and an optional book type for appearance. This could probably be easily done with a
quickscript, as the
PyPRP simple clickable QS is mostly providing the same output.
For Fehnir's House on Gehn, this is an example of what I use:
- xJournalBookGUIPopup Alcscript Show Spoiler
- Code: Select all
FehnirJournalRgn:
type: region
FehnirBook:
physical:
pinned: true
logic:
modifiers:
- tag: Click
cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: FehnirJournalRgn
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: pythonfile
ref: $Click
actions:
- type: pythonfile
tag: Click
pythonfile:
file: xJournalBookGUIPopup
parameters:
- type: activator
ref: logicmod:FehnirBook_Click
- type: skip
- type: skip
- type: skip
- type: skip
- type: skip
- type: skip
- type: skip
- type: skip
- type: skip
- type: float
value: 0.8
- type: float
value: 1
- type: string
value: FehnirHouse.Journals.FehnirJournal
The comment book differs only by the final extra string for bkNotebook in the parameter list. The actual journal contents go into a loc file which supports any and all translations supported by the client. No more need for shoving content into the Python scripts where it doesn't belong (I did a lot of cleanup for that already in the official scripts).
Sirius wrote:Writing the script itself wouldn't be a hard task. The hard part is post-editing 99% of the fan ages to use this script...
Indeed. This is the same problem with fixing some of the journals in the base game as well. We simply aren't allowed to fix the PFM wiring in the PRPs.