if reacting to say then task_done;
if reacting to prompt then show_task;
##task_done:
// copy in the next task and delete this one;
$dispenser = 75582; // should use creator;
$next_task = "task_shout";
$congrats = (Well done,Good work,Brilliant,Fantastic,Wonderful,Horray,Woo hoo);
$task_done = "I could here you quite well";
sayto $loc, "[$dispenser] says '$congrats.. $task_done'";
// find next task from inside the trainer;
find $dispenser, $next_task;
if $found_id > 0 then next_task else end_task;
##next_task:
// copy its code into me (this code continues running as its in memory but the object will react as it has the new code);
code $actor as $found_id;
// prompt the player so get the next task;
msg $loc,0,0,0, "prompt","";
##end_task:
mani $loc's pocket set basic_training to "";
sayto $loc, "[$dispenser] says 'Well.. I have nothing more for you to do right now'";
// remove this task from the player..;
set $actor's loc = 0;
set $actor's code = "";
##show_task:
sayto $loc, "Try saying something now";