Aller au contenu

Photo

Quest not ending...


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

#26
Who said that I

Who said that I
  • Members
  • 492 messages

npc quest giver

//::///////////////////////////////////////////////
//:: FileName dlg_plott_02
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 17-9-2015 7:08:27
//:://///////////////////////////////////////////
#include "pqj_inc"
void main()
{
    // Set the variables
    SetLocalInt(GetPCSpeaker(), "iLoveQuest", 100);
    // Give "letter" to the PC.
 
// Get the PC who is in this conversation.
    object oPC = GetPCSpeaker();
 
    // Give "letter" to the PC.
    CreateItemOnObject("letter", oPC);
 
    // Update the player's journal.
    AddPersistentJournalQuestEntry("LOVE", 1, oPC, FALSE);
}

 

 

 
npc reciever
 
//::///////////////////////////////////////////////
//:: FileName dlg_plott_03b
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 17-9-2015 15:57:33
//:://////////////////////////////////////////////
#include "pqj_inc"
void main()
{
    // Give the speaker some gold
    GiveGoldToCreature(GetPCSpeaker(), 150);
 
    // Give the speaker some XP
    GiveXPToCreature(GetPCSpeaker(), 200);
 
 
    // Remove items from the player's inventory
    object oItemToTake;
    oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "letter");
    if(GetIsObjectValid(oItemToTake) != 0)
        DestroyObject(oItemToTake);
    // Set the variables
    SetLocalInt(GetPCSpeaker(), "iLoveQuest", 200);
// Get the PC who is in this conversation.
    object oPC = GetPCSpeaker();
 
    // Update the player's journal.
    AddPersistentJournalQuestEntry("LOVE", 3, oPC, FALSE);
}
 

 

 

 

in the toolset i get a notification for bad journal entry, the error, and asks me if i wanna remove the tag but it does not matter what i reply the results are the same



#27
meaglyn

meaglyn
  • Members
  • 807 messages

In the toolset if you are getting an error then it must be because  you have an Other Action Journal entry set to your non-existent tag.  The toolset will not complain about a bad tag in a script. Go back through the conversation and look at every single node and check the journal entry setting. I don't know what else to tell you...


  • Fester Pot et Who said that I aiment ceci

#28
Fester Pot

Fester Pot
  • Members
  • 1 393 messages

Pretty much that's what the issue is. Other Action has a journal entry set that no longer exists - it did at some point - but as you started creating Persistent Journal Entries, may have changed the TAG of the journal, or removed it completely.

Errors like this will appear if you do such, or import conversations from another module without having the proper TAG of a journal entry available upon import.

Regardless of whether or not you imported a journal/quest, it is certainly hiding in the Other Actions section.

The best way of locating this, is to play your module, go through the segments you've created for the quest, then make a note of when this particular journal entry appears. Note down the specific conversation dialog (before, during and after), then search for said dialog, and review each line of said dialog under Other Action.

Remove any or all journal entries you come across that are looking for the old entry.

FP!


  • Who said that I et meaglyn aiment ceci

#29
Who said that I

Who said that I
  • Members
  • 492 messages

In the toolset if you are getting an error then it must be because  you have an Other Action Journal entry set to your non-existent tag.  The toolset will not complain about a bad tag in a script. Go back through the conversation and look at every single node and check the journal entry setting. I don't know what else to tell you...

 

 

Pretty much that's what the issue is. Other Action has a journal entry set that no longer exists - it did at some point - but as you started creating Persistent Journal Entries, may have changed the TAG of the journal, or removed it completely.

Errors like this will appear if you do such, or import conversations from another module without having the proper TAG of a journal entry available upon import.

Regardless of whether or not you imported a journal/quest, it is certainly hiding in the Other Actions section.

The best way of locating this, is to play your module, go through the segments you've created for the quest, then make a note of when this particular journal entry appears. Note down the specific conversation dialog (before, during and after), then search for said dialog, and review each line of said dialog under Other Action.

Remove any or all journal entries you come across that are looking for the old entry.

FP!

 

Okay well I found NOTHING in the other action taken tab BUT I did manage to fix it and that was to override the "blank" entry in that tab with the actual quest. Even though there was nothing set in the bar from previous quest entry setting the journal entry to 1 of my own quest did fix this issue so thanks guys! :D



#30
meaglyn

meaglyn
  • Members
  • 807 messages

Hhm, seems to be a toolset bug.  You should try now setting it to blank since you don't really want it using that mechanism to set your journal entries. You need it to happen in scripting using PQJ routines. I suppose as long as you do both and they are the same states it won't matter...