Find
You are looking at a first task for wolis
Created by
omenofdoom
, last updated 15 Apr 2009
Code
if reacting to promptit then task_done;
if reacting to prompt then show_task;
##task_done:
// copy in the next task and delete this one;
$dispenser = $actor's creator;
$next_task = "task_deliver";
sayto $loc, "[$dispenser] says 'Thank you so much!'";
// 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 first_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, "Find the relic and return it to the monk";