summaryrefslogtreecommitdiff
path: root/world/map/npc/doc
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-06-18 21:58:47 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-06-19 14:19:55 -0700
commitbae4b92e560c2694eaaf0e8b4d9e95e56204471b (patch)
tree4acc120f6a94cfbf9694bf344658493de5aaa67b /world/map/npc/doc
parent319f80526f8585ecadaec986e37c9bd326f4d363 (diff)
downloadserverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.tar.gz
serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.tar.bz2
serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.tar.xz
serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.zip
Move to a subdirectory
Diffstat (limited to 'world/map/npc/doc')
-rw-r--r--world/map/npc/doc/magic23
1 files changed, 23 insertions, 0 deletions
diff --git a/world/map/npc/doc/magic b/world/map/npc/doc/magic
new file mode 100644
index 00000000..3e5863e0
--- /dev/null
+++ b/world/map/npc/doc/magic
@@ -0,0 +1,23 @@
+Nibble use:
+---------------
+== QUEST_MAGIC
+ N0, N1: Auldsbel
+ N2: druid tree quest, mouboo quest (shared)
+ N3: Sagatha unhappiness counter
+ N4, N5: Sagatha
+ N6, N7: Swords
+== QUEST_MAGIC2
+ N0: Evil Earth Spirit
+ N1: Elanore
+ N2: Wyara
+ N3: Elanore subquests (Cure Kadiya)
+ N4-N7: may be messy at this point
+
+The various magic scripts pack their status into these variables.
+Locally, they use `@Q_status' to maintain the state, and use a function
+`S_update_var' to update it. This is all re-using the same code, setting
+the `@Q_MASK' and `@Q_SHIFT' variables appropriately.
+
+ There are a few exceptions (such as the Kadiya quest) wherein
+a separate helper function sets a dedicated local variable, or some hackery
+in Auldsbel wherein we read stati directly, merely to enable certain options. \ No newline at end of file