Commit Graph

88 Commits (master)

Author SHA1 Message Date
Austin Shenk be66003009 Added quest and currentObject deserialization 2013-02-05 12:07:01 -05:00
Austin Shenk be3fe3bc25 Added saveInitialStuff's code here 2013-02-05 12:07:00 -05:00
Austin Shenk bdcbe1a30b Moved saveInitialStuff code to encdoe.lua instead 2013-02-05 12:06:59 -05:00
Austin Shenk 9b8f0bbda7 Added quests file creation 2013-02-05 12:06:59 -05:00
Austin Shenk 5a0fb7e78e Added saveQuestProgress function and minor fix
saveQuestProgress serializes the tables quests and currentObjectives to
store into files.
Also, I freed up some memory by setting sourceData table to nil after
all initial looping since it isn't needed any further.
2013-02-05 12:06:58 -05:00
Austin Shenk 85f3d05cef Added quest persistence
Tests if quest is already apart of the table otherwise it adds itself to
the table.
Quest progress is now saved on Quest Accept and Turn in as well as on a
global step timer.
2013-02-05 12:06:57 -05:00
metalstache 253c6a16da Add quest file to initialization 2013-02-01 12:59:41 -05:00
Austin Shenk e25bdbbc22 Added start of Return Quest and changed quest formspec 2013-01-31 20:25:07 -05:00
Austin Shenk e71669c641 Finished the quest cycle
Quests now have a better feel for what part of the process they are in.
Accepted, Completed, and Turned in. Also, added formspec check to see if
the objective type is of Return then add a return box to place the item
in.
2013-01-30 19:25:48 -05:00
Austin Shenk e9ed6d6007 Added new quest complete function 2013-01-26 18:51:05 -05:00
Austin Shenk 2b8238798f Removed redundancy and finished system 2013-01-26 18:50:41 -05:00
Austin Shenk 9b45f27c1d Fixed the redundancy of quest system 2013-01-26 18:49:54 -05:00
Austin Shenk 7679a57abe Added the start for a quest log 2013-01-25 23:59:31 -05:00
Austin Shenk 021ec9d982 Fixed story display for books 2013-01-25 23:59:11 -05:00
Austin Shenk 739583e7c2 Fixed issue with book data decoding incorrectly 2013-01-25 23:58:52 -05:00
Austin Shenk d1fefec888 Changed how book data is stored 2013-01-25 23:58:24 -05:00
Austin Shenk 76e4c3e55d Added current quest and objective variables 2013-01-25 23:51:38 -05:00
Austin Shenk ae60bfa233 Added check in dig for objectives 2013-01-25 23:51:13 -05:00
Austin Shenk 5313957f39 Changed objectives and their values 2013-01-25 23:50:35 -05:00
Austin Shenk fafd5a363f Changed the way the story is displayed
One label wasn't enough to show multiple lines so I made every line
display through its own label.
2013-01-25 21:32:55 -05:00
Austin Shenk 1431c2bad2 Changed the way the story is stored
The story is stored as a table now so that creating the labels for it is
easier.
2013-01-25 21:31:18 -05:00
Austin Shenk d45ba3993f Changed how book data is stored
The title is stored on the first line and the story is stored on every
line after it.
2013-01-25 21:14:50 -05:00
Austin Shenk 4567f03c21 Added new /books command
New books command opens a menu which lists all available books. From
there you can delete the, edit them and save them.
2013-01-24 23:28:20 -05:00
Austin Shenk b59e121565 Added book decoding
All data is decoded correctly except if the story conatins more than one
line. I am working on a way to decode multiple lines so you can have a
full featured story.
2013-01-24 23:27:07 -05:00
Austin Shenk fd8c44388e Added book data to be saved 2013-01-24 23:25:48 -05:00
Austin Shenk 8959cf0ae1 Added variable to hold registered books 2013-01-24 23:24:27 -05:00
Austin Shenk 674d0dd274 Added book file iniitialization 2013-01-24 23:21:29 -05:00
Austin Shenk eec194f2d1 Added book dofile 2013-01-24 23:21:11 -05:00
Austin Shenk fa502ac625 Added readable books to the mod 2013-01-24 23:20:26 -05:00
Austin Shenk 5537a814f6 Moved a lot of code around 2013-01-21 19:53:04 -05:00
Austin Shenk 47062e4e72 Chenged to new separator 2013-01-21 19:52:40 -05:00
Austin Shenk a295816948 Changed the data separator to unique char 2013-01-21 19:52:17 -05:00
Austin Shenk 032e651a98 Fixed small bugs 2013-01-21 19:51:44 -05:00
Austin Shenk 7ab770c253 Fixed global function calls 2013-01-21 19:51:26 -05:00
Austin Shenk 1b20eb33b3 Separated code blocks into smaller files 2013-01-21 19:50:46 -05:00
Austin Shenk 843b8193d6 Changed data separator to | 2013-01-20 16:02:57 -05:00
Austin Shenk 8c3db6baf7 Added prototype for quest node 2013-01-20 15:57:45 -05:00
Austin Shenk 3c3999383e Changed comma separator to |
| is used less in text so it'll prevent some issues when splitting
2013-01-20 15:57:16 -05:00
Austin Shenk c7a85c2782 Added quests variable 2013-01-20 15:56:12 -05:00
Austin Shenk 0b6023d574 Added initial stuff events 2013-01-20 15:55:52 -05:00
Austin Shenk 88d320e923 Fixed detached inventory layout when decoded 2013-01-19 12:29:40 -05:00
Austin Shenk 4a7b375da9 Fixed detached inventory issue 2013-01-19 12:10:08 -05:00
Austin Shenk c09629daf9 Added new file to read
Init has been repurposed to store the detached inventory data. Data is
then replaced into the inventory on startup.
2013-01-19 12:09:37 -05:00
Austin Shenk 1d9f7cc7a6 Added global call and reduced initialstuff data
Initital stuff is now saved when the /save command is called. Only the
position for the initial_stuff node is saved because the game handles
the rest.
2013-01-19 12:08:27 -05:00
Austin Shenk bfbcf5e0bb Added function to save initial stuff 2013-01-19 12:06:26 -05:00
Austin Shenk 11538cf5f8 Relocated creation od etached inventory 2013-01-19 12:06:04 -05:00
Austin Shenk 383d48dd49 Added initial stuff and bug fixes
Added check to make sure an area was found to remove.
Added infotext to ID blocks so you can see ID without clicking.
Added new node to edit initial stuff.
2013-01-18 17:54:03 -05:00
Austin Shenk f0f97010b0 Added initial stuff to save 2013-01-18 17:51:39 -05:00
Austin Shenk ddb4eb757d Added initialStuff
Not sure if I am going to need to use this
2013-01-18 17:51:20 -05:00
Austin Shenk af64fafd66 Trying to implement detached inventories 2013-01-18 17:50:56 -05:00