Supplemental Actions

version 35 by Al Golden

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 22 - Give and Asking For (allows NPC to give and take)
    understand the command "give" as something new.
    understand the command "hand" as something new.
    understand "give [things] to [something]" as giving it to.
    understand "give [things] to [someone]" as giving it to.
    understand "hand [things] to [something]" as giving it to.
    understand "hand [things] to [someone]" as giving it to.
    understand "give [someone] [things]" as giving it to (with nouns reversed).
    understand "hand [someone] [things]" as giving it to (with nouns reversed).
    report giving something to a second noun
    (this is the giving something to a person rule):
    say "You can't give [the noun] to [the second noun].";
    handing it over to is an action applying to two things.
    understand "hand [something] over to [something]" as handing it over to.
    instead of handing something over to a second noun
    (this is the handing it over to someone rule):
    say "You can't hand [the noun] over to [the second noun].";
    instead of asking a person (called the requestee) for something (called the target)
    (this is the asking someone for something rule):
    if the target is enclosed by the requestee begin;
    say "[The requestee] refuses to give you [the target]." instead;
    otherwise;
    say "[The requestee] hasn't got the [target]." instead;
    end if.