Is it possible to have a journal entry in an onenter script of a trigger, and if the player is at the specific entry of the journal, the script fires, otherwise it does nothing.
I have a script that works for what I want it to do. But I also want a starting conditional that states the player(party) must have a specific journal entry.
this is the beginning of my script. I am trying to start it off with the journal entry restriction, but I don't know if this is possible this way. Does the Journal restriction only apply in conversations?
[
void main(){ object oTarget; object oSpawn;
// Get the creature who triggered this event. object oPC = GetEnteringObject();
if ( GetLocalInt(oPC, "NW_JOURNAL_ENTRYLH_beginning") == 2 ) return; // Only fire for (real) PCs. if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) ) return;
// Only fire once. if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) ) return; SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
]
Modifié par harjoblog, 16 juillet 2012 - 01:33 .