Skip to content

Instantly share code, notes, and snippets.

@cacciatc
Last active December 12, 2015 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cacciatc/4757210 to your computer and use it in GitHub Desktop.
Save cacciatc/4757210 to your computer and use it in GitHub Desktop.
Quest initialization.
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