This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
building:journal [2019/04/16 06:05] Mavrixio |
building:journal [2019/08/21 04:10] (current) Mavrixio |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Using the Journal ====== | ====== Using the Journal ====== | ||
- | === Using the Journal Editor === | + | ===== Using the Journal Editor ===== |
**This is not recommended and not an option on Sinfar's main servers.** | **This is not recommended and not an option on Sinfar's main servers.** | ||
\\ \\ | \\ \\ | ||
Line 14: | Line 14: | ||
* ... | * ... | ||
- | === Standalone Scripting Functions === | + | ===== Standalone Scripting Functions ===== |
Sinfar has scripting functions that let you add and remove entries from a player character's journal, without having to use the journal editor: | Sinfar has scripting functions that let you add and remove entries from a player character's journal, without having to use the journal editor: | ||
<code> | <code> | ||
Line 27: | Line 27: | ||
* Getting the current entries (There's no functions to get the currently added entries / quests) | * Getting the current entries (There's no functions to get the currently added entries / quests) | ||
- | === Sinfar's Persistent Journal System === | + | ===== Sinfar's Persistent Journal System ===== |
This system provide higher levels functions so that the added quests be persistent and you can query them. It is in this ERF: [[https://nwn.sinfar.net/res_list.php?erf_id=847]] | This system provide higher levels functions so that the added quests be persistent and you can query them. It is in this ERF: [[https://nwn.sinfar.net/res_list.php?erf_id=847]] | ||
\\ \\ | \\ \\ | ||
Line 38: | Line 38: | ||
void main() | void main() | ||
{ | { | ||
+ | object oPC = OBJECT_SELF; | ||
struct JournalEntry jrlEntry = JRL_GetQuest(oPC, "TEST_QUEST001"); | struct JournalEntry jrlEntry = JRL_GetQuest(oPC, "TEST_QUEST001"); | ||
if (jrlEntry.nState > 10) | if (jrlEntry.nState > 10) |