User Tools

Site Tools


building:journal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
building:journal [2019/04/16 06:05]
Mavrixio created
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.**
 \\ \\ \\ \\
 But if you are a server admin and really want to: But if you are a server admin and really want to:
-  - Create / Modify your **module** journal: \\ {{:​building:​journal_20190416-014820.png}} +  - Create / Modify your **module** journal: \\ {{:​building:​journal_20190416-014820.png?400}} 
-  - Upload it in your top haks section of your server'​s config page: \\ {{:​building:​journal_20190416-014851.png}}+  - Upload it in your top haks section of your server'​s config page: \\ {{:​building:​journal_20190416-014851.png?600}}
   - Use the default scripting functions:<​code>​AddJournalQuestEntry("​Category000",​ 1, oPC)</​code>​   - Use the default scripting functions:<​code>​AddJournalQuestEntry("​Category000",​ 1, oPC)</​code>​
 It will work but it is bad: It will work but it is bad:
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)
building/journal.1555394716.txt.gz · Last modified: 2019/04/16 06:05 by Mavrixio

phpBB Appliance - Powered by TurnKey Linux