View previous topic :: View next topic |
Author |
Message |
Wart
Joined: 13 Jun 2012 Posts: 45
|
Posted: Fri Aug 03, 2012 3:12 Post subject: Journal |
|
|
One thing that cannot be altered by a script is the journal.
I can save it, make it persistent but i cannot alter the text of a journal entry with a script.
Is it possibile to write a nwnx plugin that solves this problem?
P.S
Using a custom system is not acceptable for me, i really like the NWN Journal Interface. It is something i do not want to give up. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Fri Aug 03, 2012 9:25 Post subject: |
|
|
As far as I know, you can use <CUSTOM*> tokens in journal entries. _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Sun Aug 05, 2012 1:58 Post subject: to elaborate |
|
|
To Elaborate on virusman's idea:
If you set your journal entries to have the text of
<CUSTOM554321>
and then in a script, call
SetCustomToken(554321,"This is a piece of text");
Then view the journal,
It will say 'This is a piece of text'
You can then change it - whenever you want via SetCustomToken
However- the limitation of this, is that the custom token is shared across all players, meaning you cannot make it customized per player easilly.
There is the possibility of hooking onto the nwn event for Journal Opening
(I managed to get this working once before - a year or so ago)
Basically fires an event, when the player opens the journal.
If you or someone fluent in c++ code were up for it, I would recommend adding a new event to nwnx_kewl or nwnx_cool
One that handles Journal Opening.
Once you have a journal event setup, you can script it so that onPlayerOpenJournal - customize journal entries for that player.
(in theory) |
|
Back to top |
|
|
|