okay not entirely sure what I did wrong here, certainly it is something very minor but it does not seem to go past the point where the plotgiver tells you that he will open the door and reward you when you show proof of the deed you agreed to.
QG- Wanna kill vilain for me?
P- Yes
QG- Actiontakentab
#include "pqj_inc"void main(){// Set the variablesSetLocalInt(GetPCSpeaker(), "p002state", 100);// Get the PC who is in this conversation.object oPC = GetPCSpeaker();// Update the player's journal.AddPersistentJournalQuestEntry("p002", 1, oPC, FALSE);object oTarget;// Unlock and open "DOOR_TO_CHICKEN_HOUSE".oTarget = GetObjectByTag("DOOR_TO_CHICKEN_HOUSE");SetLocked(oTarget, FALSE);AssignCommand(oTarget, ActionOpenDoor(oTarget));}
QG- Got the head? (Textg appears when)
int StartingConditional(){// Inspect local variablesif (!(GetLocalInt(GetPCSpeaker(), "NW_JOURNAL_ENTRY" + "p002") == 1))return FALSE;return TRUE;}
P- Yes (TAW)
int StartingConditional(){int nShow = OBJECT_INVALID != GetItemPossessedBy(GetPCSpeaker(), "ChickenHead");return nShow;}
QG- reward
#include "pqj_inc"void main(){// Give the speaker some goldGiveGoldToCreature(GetPCSpeaker(), 150);// Give the speaker some XPGiveXPToCreature(GetPCSpeaker(), 200);// Remove items from the player's inventoryobject oItemToTake;oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ChickenHead");if(GetIsObjectValid(oItemToTake) != 0)DestroyObject(oItemToTake);// Set the variablesSetLocalInt(GetPCSpeaker(), "p002state", 300);// Get the PC who is in this conversation.object oPC = GetPCSpeaker();// Update the player's journal.AddPersistentJournalQuestEntry("p002", 3, oPC, FALSE);object oTarget;// Close and lock "DOOR_TO_CHICKEN_HOUSE".oTarget = GetObjectByTag("DOOR_TO_CHICKEN_HOUSE");AssignCommand(oTarget, ActionCloseDoor(oTarget));SetLocked(oTarget, TRUE);}
okay so what did I do wrong here?





Retour en haut






