[CODE]
<?php
//adapted to md world
$instr['title'] = "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'] = "
Firstly, you need to boil the water.
Whilst it's boiling put the leaves into the teapot, covering the base with them.
You then need to pour some water over the leaves, filling the teapot.
After three minutes of waiting, the tea is then ready to be served.
";
//what words you want to use to start the preparing the recipe
$instr['startline'] = array(
"Let's brew some ".$instr['title'] => $instr['title'],
"Let's 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 the brewing!" => 'end_failed',
"Enough...!" => 'end_failed',
$instr['title']." is served." => 'end_success',
"This is going nowhere..." => 'end_frustration',
"Oops..." => 'end_crazy',
);
//what are the texts for different steps or events
$instr['step_replies'] = array(
"start" => 'starts brewing the tea',
"stop" => 'gives up brewing the tea',
"current" => 'is currently preparing the '.$instr['title'],
"device" => 'is brewing some tea using the '.$item['name'],
"end_success" => 'could smell the fragrant aroma wafting through the air.',
"end_frustration" => 'burnt themselves on the pot and stopped the brewing.',
"end_failed" => 'sighs and gives up.',
"end_crazy" => 'spilled the contents of the teapot by "accident".',
"ingredients" => 'To prepare this special tea, you will need; %s ',
"ingredients_status" => 'We are currently preparing %s. We still need; %s. (Already provided; %s)',
"steps_status" => 'We are already done with these steps; %s. We still need perform; %s. ',
"1" => 'boils the water.',
"2" => 'covers the base of the teapot with tea leaves.',
"3" => 'pours the hot water into the teapot.',
"4" => 'waits for three minutes.',
"5" => 'pours the tea into a teacup.',
"random" => 'ignores you.',
"random numbers" => 'calls out: '.rand(1,99),
"description" => $item['name'].': '.$item['description'],
"provide_teardropleaf" => "%s provides the tear leaves.",
"provide_water" => "%s offers some water.",
"provide_rainwater" => "%s provides the water.",
"provide_undefined_item" => "%s tries to offer something but it is not clear as to 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",
"provide_insufficient_item" => "%s tries to offer %s but doesn't have enough. They only have %s.",
);
//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 are you up to?" => 'current',
"Something smells good..." => 'current',
"What are you using?" => 'device',
"Tell me a random number" => 'random numbers',
"Describe the ".$item['name'] => 'description',
//step 1
"Boil the water" => '1',
"Prepare some boiled water" => '1',
"Time to boil the water" => '1',
"Boil some hot water" => '1',
//step 2
"Spread the leaves over the teapot's base" => '2',
"Cover the base of the teapot with the leaves" => '2',
"Put the leaves in the teapot and cover the base with them" => '2',
"Fill the bottom of the teapot with leaves" => '2',
//step 3
"Pour the hot water into the teapot" => '3',
"Add in the hot water" => '3',
"Fill the teapot with hot water" => '3',
"Pour in the boiled water" => '3',
"Add in the boiled water" => '3',
//step 4
"Wait for three minutes" => '4',
"Wait for the tea to be ready" => '4',
"Lets wait for it" => '4',
//step 5
"Serve up the tea" => '5',
"The tea is ready" => '5',
"Pour some tea into a cup" => '5',
//step 11
"Serve me tea" => 'random',
"I am awesome" => 'random',
"Look! It is a pink elephant!" =>'random',
"Can you hurry up?" => 'random',
"Ew!" => 'random',
"I hate waiting" => 'random',
);
//NOT IN USE YET
$instr['step_actions'] = array(
"1" => 'start='.$instr['title'],
"2" => '',
"3" => '',
"4" => '',
"5" => '',
"6" => '',
);
//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" => 'Tea leaves,Water',
"/I will bring the (.*)/is" => 'Tea leaves,Water',
"/Here is some (.*)/is" => 'Water',
"/Here is the (.*)/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=3
Water=2
";
$instr['effect'] = "tea";
?>
[/CODE]
Changed a few bits and pieces;
Title to just "Tea"
Rearranged preparation instructions to make more sense.
Changed a few of the sentences to sound better
Replaced colon ( : ) in ingredients list to a semi-colon ( ; )
There's a number of textual edits I made, have a read through