Planner

version 2/080503 by Nate Cull

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Executing Actions

    [Carry out someone trying doing something:
        change the action success flag to 1;]

    The successful-action rule is listed after the check stage rule in the specific action-processing rules.

    This is the successful-action rule:
        if the actor is not the player, change the action success flag to 1.

    To execute the planned action:
        if the planned action is no-action begin;
            follow the planning-failure rules;
        otherwise;
            if the planned action is success-action begin;
                follow the planning-success rules;
            otherwise;
                change the action success flag to 0;
                follow the planning-acting rules;
                if the action success flag is 0, follow the planning-acting-failure rules;
            end if;
        end if;