-
Notifications
You must be signed in to change notification settings - Fork 18
SCUMM 8 API: Functions
Below you will find the SCUMM-8 API reference. This API was heavily inspired by the original SCUMM command reference.
- "Walkable" tiles
For a sprite tile to be deemed "walkable", you must set the Flag 0 (see below). Otherwise the selected player will not be able to navigate a path to the tile when used in a room's map.
-
x,y
- Position of Object within a Room.
-
w,h
- Width and height (in sprite cel's) of an Object.
-
state
- The name of the state (which in turn, references a sprite number) to show for the object/actor.
e.g.
state=state_here
- The name of the state (which in turn, references a sprite number) to show for the object/actor.
e.g.
-
trans_col
- The color to draw as transparent (defaults to 0 = black)
-
classes
- Object and Actors can have multiple classes attributed, all of which have different effects. The available classes are:
- class_untouchable = Item cannot be interacted with at all
- class_pickupable = Item can be picked-up into actor's inventory
- class_talkable = Actor can be talked to
- class_giveable = Object can be given to another Actor
- class_openable = Object can be opened
- class_actor = Object is an Actor (not just a normal Object)
-
class_door = Object is a door (will allow easy linking to other rooms using
target_door
property.
- Object and Actors can have multiple classes attributed, all of which have different effects. The available classes are:
For example:
classes = { class_openable, class_door }
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
-
property
- Desc
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
open one (or more) doors TODO: Document this...
close one (or more) doors TODO: Document this...
TODO: Document this...
1=down, -1=up TODO: Document this...
TODO: Document this...
TODO: Document this...
create new thread for script and add to list of local_scripts (or background scripts) TODO: Document this...
TODO: Document this...
find script and stop it running TODO: Document this...
wait for cycles specified (min 1 cycle) TODO: Document this...
TODO: Document this...
TODO: Document this...
stop everyone talking & remove displayed text TODO: Document this...
punctuation...
":" new line, shown after text prior expires ";" new line, shown immediately note: an actor's talk animation is not activated as it is with say-line. TODO: Document this...
TODO: Document this...
walk actor to position TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
TODO: Document this...
Introduction
Definitions
Core Variables
Core Functions
Tutorials