Jump to content

Home

Scripting Journal Entries


TimBob12

Recommended Posts

Hi there,

As many of you know I am currently working on my Tattooine Job Office,

 

I have a corpse that I want to set a journal entry after examining. Normally this would not be a problem. I have done it with another corpse somewhere else in the mod. I have checked that the script names are the same as in the onClosed event. The script is the same as the one previously used

 

void main()
{
 SetGlobalBoolean("STOLE_CORPSE_FOUND", TRUE);

 AddJournalQuestEntry("m_weapon",20);
} 

 

I haven't got a clue. Any help would be greatly appreciated.

 

Thanks.

Link to comment
Share on other sites

Your script is fine, the problem is getting it to fire properly. From what it sounds like you want to pretty much "talk" to the placeable or "open" it up like a footlocker, correct? If so you have to have the script fire at a certain script field in the placeable file.

 

It will probably be the OnInvDisturbed (if you're taking items out of it), OnOpen (if you're just opening the placeable like a footlocker), or the OnUsed field (if you want to just click the placeable).

Link to comment
Share on other sites

If it's the wrong placeable, it's the wrong placeable; the script isn't firing. Also just so you know let's say this is journal entry number 1 and you have entry number 2 active, it will not go back to 1. So if you have a later entry active and you're trying to have a previous one activate, then you will get the "allusion" that the script isn't firing. Try adding some codes to it to add exp or an item to ensure that it is firing or not.

Link to comment
Share on other sites

So this is pretty definite that the problem lays within the script. First of all I would make sure that the tag for journal quest is the same as the one in the journal file and if it is try rebuilding the script again from a different script. If this still remains a problem start a new game and try it out again and see if there is a difference.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...