Aller au contenu

Photo

spawn checks for journal entry?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Who said that I

Who said that I
  • Members
  • 492 messages

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.



#2
Fester Pot

Fester Pot
  • Members
  • 1 394 messages

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!


  • Squatting Monk et Who said that I aiment ceci

#3
meaglyn

meaglyn
  • Members
  • 811 messages

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");


  • Squatting Monk aime ceci

#4
Who said that I

Who said that I
  • Members
  • 492 messages

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.....