Skip to content

SCUMM 8 API: Verbs

Paul Nicholas edited this page Apr 28, 2017 · 6 revisions

Overview

Verbs have always been core to classic point & click adventure game engines and SCUMM-8 is no different. You can even customize/rename the verbs if you need to.

Special Verbs

There are some verbs that function in particular ways (such as GIVE and USE). Please see below for more information.

GIVE

When you want an Object that can be given to someone, you define the actions to occur on the Object being given. When the Object's give function is called, the Actor its being given to will be automatically passed as as parameter (such as noun2 below).

For example:

give = function(me, noun2)
  -- am i being given to the right person?
  if noun2 == purp_tentacle then
    say_line("here you go")
    me.owner = purp_tentacle
    say_line(purp_tentacle, "thank you!")
  else
    say_line("i might need this")
  end
end

USE

Clone this wiki locally