Jump to content

Tea!


Muratus del Mur

Recommended Posts

  • Root Admin

in the tea market , Tribunal lands, you can get teapots and tea recipes (!)

the problem is the recipe is or might be wrong. i adapted one submited that was using rainwater and was slighlty different


here is the code, feel free to review it and make it better for this purpose.

tea shpoulf comsumr water and tea leaves to create 3 cups of tea, tea will be consumable with temporary boost




[code]
<?php

//adapted to md world
$instr['title'] = "Aromatic 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, put in the leaves, covering the teapot's base with them.
You then need to pour some water onto the leaves.
Next, you will need to boile the water and
after five minutes of waiting, the tea would then be ready to be served.
";

//what words you want to use to start the preparing the recipe
$instr['startline'] = array(
"Lets brew some tea." => $instr['title'],
"Lets prepare tea" => $instr['title'],
"I want to make some ".$instr['title']."" => $instr['title'],
"I will prepare a nice cup of aromatic tea" => $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',
"Ah it burns!" => '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 using the '.$item['name'],

"end_success" => 'could smell the fragrant aroma.',
"end_frustration" => 'got really upset and stops the brewing.',
"end_failed" => 'sighs and gives up.',
"end_crazy" => 'spilled the contents of the teapot by accident.',

"ingredients" => 'To prepare tea, you will need: %s ',
"ingredients_status" => 'We are currently preparing %s. We still need: %s. (Already provided: %s)',
"ingredients_ready" => 'We are currently ready to prepare %s. Ingredients provided: %s)',
"steps_status" => 'We are already done with these steps: %s. We still need perform: %s. ',

"1" => 'covers the base of the teapot with tea leaves and aromatic herbs.',
"2" => 'pours some water.',
"3" => 'boils the water.',
"4" => 'pours the hot water into the teapot.',
"5" => 'waits for five minutes.',
"6" => 'pours the tea into the cups.',


"random" => 'ignores you.',
"random numbers" => 'calls out: '.rand(1,99),
"description" => $item['name'].': '.$item['description'],


"provide_tealeaves" => "%s provides the tea leaves.",
"provide_water" => "%s offers some water.",
"provide_teacups" => "%s prepares the tea cups.",
"provide_aromaticherbs" => "%s provides the aromatic herbs.",


"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 doesnt have enough. Only has %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
"Spread the leaves over the teapot's base" => '1',
"Cover the base of the teapot with the leaves" => '1',
"Put the leaves in the teapot and cover the base with them" => '1',
"Fill the bottom of the teapot with leaves" => '1',

//step 2
"Add some water" => '2',
"Pour water" => '2',
"Drop some water" => '2',

//step 3
"Boil the water" => '3',
"Prepare some boiled water" => '3',
"Time to boil the water" => '3',
"Boil some hot water" => '3',

//step 4
"Pour the hot water into the teapot" => '4',
"Add in the hot water" => '4',
"Fill the teapot with hot water" => '4',
"Pour in the boiled water" => '4',
"Add in the boiled water" => '4',

//step 5
"Wait for five minutes" => '5',
"Wait for the tea to be ready" => '5',
"Lets wait for it" => '5',

//step 6
"Serve up the tea" => '6',
"The tea is ready" => '6',
"Pour some tea into a cup" => '6',



//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,Tea cups,Aromatic herbs',
"/I will bring the (.*)/is" => 'Tea leaves,Water,Tea cups,Aromatic herbs',
"/Here are the (.*)/is" => 'Tea leaves,Water,Tea cups,Aromatic herbs',
"/Here is some (.*)/is" => 'Water,Aromatic herbs',
"/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;
Aromatic herbs=1;
Water=1;
Tea Cups=4;
";


$instr['effect'] = "aromatictea";


?>[/code]

Edited by Muratus del Mur
updated recipe
Link to comment
Share on other sites

[quote name='Muratus del Mur' timestamp='1313533029' post='90279']
in the tea market , Tribunal lands, you can get teapots and tea recipes (!)

the problem is the recipe is or might be wrong. i adapted one submited that was using rainwater and was slighlty different


here is the code, feel free to review it and make it better for this purpose.

tea shpoulf comsumr water and tea leaves to create 3 cups of tea, tea will be consumable with temporary boost




[code]
<?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'] = "
Firstly, put in the leaves, covering the teapot's base with them.
[b]You then need to boil some water and then pour them onto the leaves.[/b]
[b]After three minutes of waiting[/b], the tea is then be ready to be served.
";

//what words you want to use to start the preparing the recipe
$instr['startline'] = array(
"Lets brew 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 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 using the '.$item['name'],

"end_success" => 'could smell the fragrant aroma.',
"end_frustration" => 'got really upset and stops 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" => 'covers the base of the teapot with tea leaves.',
"2" => 'boils some water.',
"3" => 'pours the hot water into the teapot.',
"4" => 'waits for [b]three[/b] 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 doesnt have enough. Only has %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
"Spread the leaves over the teapot's base" => '1',
"Cover the base of the teapot with the leaves" => '1',
"Put the leaves in the teapot and cover the base with them" => '1',
"Fill the bottom of the teapot with leaves" => '1',

"Prepare some water" => '2',
"Pour water" => '2',
"Drop some water" => '2',

//step 2
"Boil the water" => '3',
"Prepare some boiled water" => '3',
"Time to boil the water" => '3',
"Boil some hot water" => '3',

//step 3
"Pour the hot water into the teapot" => '4',
"Add in the hot water" => '4',
"Fill the teapot with hot water" => '4',
"Pour in the boiled water" => '4',
"Add in the boiled water" => '4',

//step 4
"Wait for three minutes" => '5',
"Wait for the tea to be ready" => '5',
"Lets wait for it" => '5',

//step 5
"Serve up the tea" => '6',
"The tea is ready" => '6',
"Pour some tea into a cup" => '6',



//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" => '',


);


//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'] = "cupoftea";


?>
[/code]
[/quote]

Done imo, aside from tweaking it to 3 mins (I hate overbrewed tea) I removed the step 2. Unnecessary, pour water, then the next tstep is boil water? just boil it.

Link to comment
Share on other sites

[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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Forum Statistics

    17.5k
    Total Topics
    182.1k
    Total Posts
  • Recently Browsing

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

×
×
  • Create New...