Author Topic: spawn checks for journal entry?  (Read 390 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
spawn checks for journal entry?
« on: August 24, 2015, 04:21:06 pm »


               

Okay here is my question....am working on one of the quests and was wondering if there was a script out there that I could use so the spawn only triggers if a certain quest journal has not reached a certain stage yet. 


 


example:  Monster spawns only if player has not beaten it before/finished the quest.



               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
spawn checks for journal entry?
« Reply #1 on: August 24, 2015, 05:09:34 pm »


               

Use variables to track the progress of the quest, then check for a particular value in a script for the OnEnter of the trigger.


If the variable is equal or greater to the value, the trigger fires.


FP!



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
spawn checks for journal entry?
« Reply #2 on: August 24, 2015, 06:26:17 pm »


               

If you are using the normal NWN journal/quest mechanism (AddJournalQuestEntry in scripts, the quest settings in conversation nodes etc) then there is already a variable on the PC for that quest so you don't need to add your own.


 


"NW_JOURNAL_ENTRY" + <journal tag> 


 


is an int on the PC with the current state of the journal with the tag (in the journal editor) of <journal tag>.


 


e.g. GetLocalInt(oPC, "NW_JOURNAL_ENTRY" + "myfirstquest");


               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
spawn checks for journal entry?
« Reply #3 on: August 24, 2015, 09:22:25 pm »


               


If you are using the normal NWN journal/quest mechanism (AddJournalQuestEntry in scripts, the quest settings in conversation nodes etc) then there is already a variable on the PC for that quest so you don't need to add your own.


 


"NW_JOURNAL_ENTRY" + <journal tag> 


 


is an int on the PC with the current state of the journal with the tag (in the journal editor) of <journal tag>.


 


e.g. GetLocalInt(oPC, "NW_JOURNAL_ENTRY" + "myfirstquest");




I am using the plot wizard to handle all this....


 


not entirely sure how to go about it in a way it is actually make it functional since I never seem to get it to work when I do it manually.....