I need to post the initial journal entry automatically for one of the quests when the Player starts the game without a conversation. I have seen this done before but I am not sure what need s to be done. Any help is appreciated.
JonnieR
I need to post the initial journal entry automatically for one of the quests when the Player starts the game without a conversation. I have seen this done before but I am not sure what need s to be done. Any help is appreciated.
JonnieR
There are many ways. You can put a journal update in the Module's "On Module Start" script slot, for one, or the area's On Client Enter (with a check to make it only run once). You could put down a trigger near where the player starts that does it. You could put it on the first door the player needs to open to proceed, if there is one. Etc.
OnClientEnter for the intitial area would probably be the most reliable.
Usually you'd have to make sure the script only ran once, since it will run again every time you enter that area, or if you reload from a saved game while the PC is in it. However journal updates won't fire unless the new journal entry number is greater than the existing one (unless you specifically choose to override that option in the script function), so in this case you probably don't have to bother ensuring the script only runs once.
+ put a delay of about 5 - 10 seconds for those of us with older computers -- so we get the message and it doesn't just disappear behind Loading ... screens.
I took the ga_journal script and planned to enter it in the onenter of the area. However, my formatting seems to be incorrect for entering one of the variables (tag of the quest in the journal). I though you enclosed the tag in quotes, but the script won't compile. I tried double quotes " and single quote ', but my syntax is probably wrong.
Here is the script line:
void main("qu_finddouven" scategorytag, 100 nEntryID, 1 AllPartyMembers, 1 AllPLayers, 1 bAllowOverrideHigher)
JonnieR
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return; // safety.
AddJournalQuestEntry("qu_finddouven", 100, oPC, 1, 1, 1)
}Modifié par kevL, 09 juillet 2014 - 05:34 .
KevL,
Thanks for the code it works great. I had a copy of Lilac Soul's script generator which I have used extensively but I lost a lot of data with a hard drive crash a couple of weeks ago and recovery was not possible. I have been looking for another copy of Version 2.3 Lilac Soul Script Generator but with the old vault gone I can't locate a file.
Thanks again.
JonnieR