Page 1 of 1
Journals
Posted: Mon Dec 13, 2004 10:30 am
by Dirk Cutlass
Anyone know anything about journal entries?
I see there is a function to add / update a journal entry to a player, but what about creating the journal entry in the first place? Is the only way to use the Journal Editor?
The Journal data appears to be stored in .mod file, is there anyway to extract it or import it elsewhere?
I'll tell you what I want to do...
Have an event on joining the server that adds a journal entry which contains Avlis rules, FAQs, etc. Like they do on Rockhome (quite nice feature BTW). Anyway, this is actually quite simple to hard-code. But it would be nicer if there was a way to have the journal info was separate somehow. (It would be easier to update / maintain, easier to share with other servers, etc. etc.).
Can the journal info be extracted from the .mod file (so it could be edited / updated off-line) and the re-inserted into all .mods (e.g. as a server side override, or something????)
PS: Anyone know how they do it on Rockhome. I'm guessing its' hard-coded, but I could be wrong.
PS2: Whats the script function that creates an event when a player joins the server?
Re: Journals
Posted: Mon Dec 13, 2004 10:39 am
by Krator
Dirk Cutlass wrote:Anyone know anything about journal entries?
I see there is a function to add / update a journal entry to a player, but what about creating the journal entry in the first place? Is the only way to use the Journal Editor?
The Journal data appears to be stored in .mod file, is there anyway to extract it or import it elsewhere?
I'll tell you what I want to do...
Have an event on joining the server that adds a journal entry which contains Avlis rules, FAQs, etc. Like they do on Rockhome (quite nice feature BTW). Anyway, this is actually quite simple to hard-code. But it would be nicer if there was a way to have the journal info was separate somehow. (It would be easier to update / maintain, easier to share with other servers, etc. etc.).
Can the journal info be extracted from the .mod file (so it could be edited / updated off-line) and the re-inserted into all .mods (e.g. as a server side override, or something????)
Use the journal editor to make a journal entry and apply the correct tag. Use a script (Cannot remember the function name now, something like AddJournalEntry(PC, Tag) or something) or a conversation (in one of the tabs is a field where you can fill in the tag of the journal entry).
Journal entries cannot be exported within an .erf AFAIK, but like everything else it can be added and edited in the toolset, just like areas and scripts. It's really easy, but because it has to be added every time you log on and the new journal entry icon keeps flashing, that can be a bit irritating if you log in 5 times a day.
Dirk Cutlass wrote:PS2: Whats the script function that creates an event when a player joins the server?
Module Properties -> OnClientEnter I think
Posted: Mon Dec 13, 2004 5:22 pm
by Tissa
Dirk Cutlass wrote:I see there is a function to add / update a journal entry to a player, but what about creating the journal entry in the first place? Is the only way to use the Journal Editor?
Yes.
A very simple tutorial on creating journal entries
Krator wrote:(Cannot remember the function name now, something like AddJournalEntry(PC, Tag) or something)
the function is
Code: Select all
void AddJournalQuestEntry(
string sCategoryTag,
int nEntryID,
object oCreature,
int bAllPartyMembers = TRUE,
int bAllPlayers = FALSE,
int bAllowOverrideHigher = FALSE
);
Dirk Cutlass wrote:The Journal data appears to be stored in .mod file, is there anyway to extract it or import it elsewhere?
The file is Module Data->module.jrl
Posted: Mon Dec 13, 2004 6:00 pm
by Dirk Cutlass
Tissa wrote:Dirk Cutlass wrote:The Journal data appears to be stored in .mod file, is there anyway to extract it or import it elsewhere?
The file is Module Data->module.jrl
Thanks. How do you get this .jrl file? I can't see it anywhere!
PS: prototype code for this is working. Got all the info I needed from NWNlexicon. Just the bit about whether I can "store it" in an external file, or not that I need to do now.
Posted: Mon Dec 13, 2004 8:40 pm
by Tissa
Dirk Cutlass wrote:
Thanks. How do you get this .jrl file? I can't see it anywhere!
PS: prototype code for this is working. Got all the info I needed from NWNlexicon. Just the bit about whether I can "store it" in an external file, or not that I need to do now.
I can see it using "nwn explorer" under Module Data, you could export it using that tool. If you want to edit the file raw the format is given
here.
you also might want to look at something like this
Persistent Journal System
Edit: you might want to read this thread as well
http://nwn.bioware.com/forums/viewtopic ... 1&forum=46.