Here is a recipe for one of the most important drinks in the realm, tea.
The tea leaves can be replaced with for example mint or other herbs to create different types of tea.
[spoiler] <?php
//adapted to md world
$instr['title'] = "Cup of Tea";
//the description will be the only thing to describe the needed steps to the ones that try to help you prepare the recipe
//be sure you include all steps in it but tell it so that they wont be identical words with the steps defined below
$instr['description'] = "
Making tea is really straight forward. All you need to do is boil some water and pour it over the tea leaves. Then wait a few minutes for the tea to get the optimal flavor. To finish it filter out the tea leaves. Enjoy your cup of tea.
";
//what words you want to use to start the preparing the recipe
$instr['startline'] = array(
"Lets cook some ".$instr['title'] => $instr['title'],
"Lets prepare some ".$instr['title']."" => $instr['title'],
"I want to make some ".$instr['title']."" => $instr['title'],
);
//what words you want to use to stop the process
$instr['endline'] = array(
"Stop cooking" => 'end_failed',
"Lets stop this " => 'end_failed',
"Thank you for assisting me in cooking ".$instr['title']."" => 'end_success',
"This is going nowhere i give up" => 'end_frustration',
"Look a flying elephant, its PINK!" => 'end_crazy',
);
//what are the texts for different steps or events
$instr['step_replies'] = array(
"start" => 'starts making tea',
"stop" => 'gives up making tea',
"current" => 'currently prepares '.$instr['title'],
"device" => 'cooking using the '.$item['name'],
"end_success" => 'shouts happy: WE ARE DONE!',
"end_frustration" => 'is upset and stops cooking',
"end_failed" => 'stops cooking, recipe failed',
"end_crazy" => 'starts throwing things around randomly, recipe failed',
"ingredients" => 'To prepare a nice cup of tea you need: %s ',
"ingredients_status" => 'We are currently preparing %s. We still need: %s. (Already provided: %s)',
"steps_status" => 'We are currently done with these steps: %s. We still need perform these steps: %s. ',
"1" => 'puts the water in the kettle'
"2" => 'puts the kettle on the fire',
"3" => 'waits until the water boils',
"4" => 'takes the water from the fire',
"5" => 'puts the tea leaves in a cup and pours the hot water over them',
"6" => 'waits for the tea to reach the optimal flavor',
"7" => 'filters out the tea leaves',
"random" => 'sings LA LAAA LA..I have no clue what you mean',
"random numbers" => 'picks a random number: '.rand(1,99),
"description" => $item['name'].': '.$item['description'],
"provide_tealeaves" => "%s provides the Tea Leaves",
"provide_water" => "%s brings the Water",
"provide_undefined_item" => "%s tries to offer something but its not perfectly clear what (%s)",
"provide_otherway_item" => "%s tries to offer something the wrong way (%s)",
"provide_existing_item" => "%s tries to offer something (%s) that is already provided",
);
//what phrases will it recognize and what step will it run (from above values)
//the more variations the better, think what people could say
//always use first person, not "RP" blue text third person line please
$instr['step_lines'] = array(
"What is current recipe?" => 'current',
"What's cooking doc?" => 'current',
"What are you playing with?" => 'device',
"Tell me a random number" => 'random numbers',
"Describe the ".$item['name'] => 'description',
//step 1
"Fill the tea kettle" => '1',
"Put the water in the tea kettle" => '1',
"Fill the tea kettle with water " => '1',
//step 2
"Put the tea kettle on the fire" => '2',
"Start boiling the water" => '2',
"Put the water on the fire" => '2',
//step 3
"Wait until the water boils" => '3',
"Wait for the water to boil" => '3',
"Let the water boil" => '3',
"Wait until the water is ready" => '3',
//step 4
"Take the water from the fire" => '4',
"Take the tea kettle from the fire" => '4',
//step 5
"Pour the water on the tea leaves" => '5',
"Put the tea leaves in a cup and pour water on them" => '5',
"Pour salt on top" => '5',
//step 6
"Wait a while" => '6',
"Wait a few minutes" => '6',
"Wait until the tea is ready" => '6',
"Wait for the tea to reach the optimal flavor" => '6',
"Let the tea steep for a few minutes" => '6',
"Wait about 2 minutes" => '6',
"Let the tea steep for 2 minutes" => '6',
//step 7
"Filter out the tea leaves" => '7',
"Remove the tea leaves" => '7',
"take out the tea leaves" => '7',
"dispose of the tea leaves" => '7',
//step 11
"kill someone" => 'random',
"I am awesome" => 'random',
"random stuff" =>'random',
"What are you doing" => 'random',
"Mur" => 'random',
);
//NOT IN USE YET
$instr['step_actions'] = array(
"1" => 'start='.$instr['title'],
"2" => '',
"3" => 'wait=600',
"4" => '',
"5" => '',
"6" => 'wait=120',
"7" => '',
);
//what lines should be used by participants to offer their resources for the preparation
//each line also has the target resources it will work on
//for example you could pour water, but install mechanisms
$instr['provide_ingredients'] = array(
"/I will provide the (.*)/is" => 'Water,Tea Leaves',
"/I will bring the (.*)/is" => 'Tea Leaves',
"/Here are some (.*)/is" => 'Tea Leaves',
"/Here is some (.*)/is" => 'Water',
);
//what ingredients does this recipe require
//feel free to use existing resources or items but you can also invent new
//as long as they fit perfectly with md and the device
$instr['ingredients'] = "
Tea Leaves=1;
Water=2;
";
?>
[/spoiler]
[b]MUR: Try it. be sure you clean up all those empty extra lines please. Suggest different variations of the recipe based on the ingredients (changing ingredient and recipe title). Specify a cookbook name for all. Tea is something that will be done anyway..lets see if with this recipe or not.[/b]