Last active
December 12, 2015 10:09
-
-
Save cacciatc/4757210 to your computer and use it in GitHub Desktop.
Quest initialization.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initialize_quest:function(player_name){ | |
quest.store.players[player_name] = { | |
current:-1, | |
accepted:false, | |
skeleton_counter:0, | |
steps:[{ | |
step:1, | |
text:"Hello, " + player_name + ". I have an unpleasant task if you desire some work." | |
}, | |
{ | |
step:2, | |
text:"You see a gang of skeletons have grown bold and are attacking travelers in the area. If you thinned their numbers, the area would again be safe." | |
}, | |
{ | |
step:3, | |
text:"Kill 10 skeletons and return to me for your reward. \nType /jsp accept to accept: SKELETON MENACE." | |
}, | |
{ | |
step:4, | |
text:"Thank you " + player_name + ". The roads are now much safer. Here is your reward." | |
}]}; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment