Skip to Content
The Alchemy Project

struct SCRIPT_OPERANDS

ACTOR as the actor script's SC_SET, SC_ADD and SC_CMP commands reach it, every field a plain number (ACTOR_SCRIPT_VALUE numbers them).

Declared in script_operands.h.

Fields

NameDescription
Uint32script
Uint16cursor
Uint16facing
Uint32x
Uint32y
Uint32z
Uint32groundHeight
Uint32scaleX
Uint32scaleY
Uint16radius
Uint8unusedAfterRadius [2]No code names them.
Uint32velocityX
Uint32velocityY
Uint32velocityZ
Uint32speedLimit
Uint32acceleration
Uint32targetX
Uint32targetY
Uint32targetZ
Uint32bounce
Uint32gravity
Uint32sceneWord
Uint32sprite
Uint8spriteStorageKindACTOR.spriteStorageKind.
Uint8motionFlags
Uint8arrivalAxis
Uint8conditionResultThe last test; every compare sets it.
Uint8snapToTarget
Uint8collisionFlags
Uint8steeringFlags
Uint8paused
Uint8retainSpriteCache
Uint8repeatCountThe SC_LOOP count.
Sint16waitSC_WAIT's ticks left.
Uint8refusedACTOR.refused, the blocked ticks.
Uint8frozen
Uint8sceneCount
Uint8sceneByte
Sint16timer
Sint16userValue
Uint32watchedActor
Uint32update

Description

ACTOR as the actor script's SC_SET, SC_ADD and SC_CMP commands reach it, every field a plain number (ACTOR_SCRIPT_VALUE numbers them).

struct SCRIPT_OPERANDS

Referenced by fdActorScriptApplyOperandAdd(), fdActorScriptApplyOperandCommand(), fdActorScriptApplyOperandCompare(), fdActorScriptApplyOperandSet(), fdActorScriptSetOrCompareCursor() and fdActorScriptSetOrCompareRadius().

Definition at line 19 of file script_operands.h.

Fields in detail

script

Uint32 script

cursor

Uint16 cursor

facing

Uint16 facing

x

Uint32 x

y

Uint32 y

z

Uint32 z

groundHeight

Uint32 groundHeight

scaleX

Uint32 scaleX

scaleY

Uint32 scaleY

radius

Uint16 radius

unusedAfterRadius

Uint8 unusedAfterRadius[2]

No code names them.

velocityX

Uint32 velocityX

velocityY

Uint32 velocityY

velocityZ

Uint32 velocityZ

speedLimit

Uint32 speedLimit

acceleration

Uint32 acceleration

targetX

Uint32 targetX

targetY

Uint32 targetY

targetZ

Uint32 targetZ

bounce

Uint32 bounce

gravity

Uint32 gravity

sceneWord

Uint32 sceneWord

sprite

Uint32 sprite

spriteStorageKind

Uint8 spriteStorageKind

ACTOR.spriteStorageKind.

motionFlags

Uint8 motionFlags

arrivalAxis

Uint8 arrivalAxis

conditionResult

Uint8 conditionResult

The last test; every compare sets it.

snapToTarget

Uint8 snapToTarget

collisionFlags

Uint8 collisionFlags

steeringFlags

Uint8 steeringFlags

paused

Uint8 paused

retainSpriteCache

Uint8 retainSpriteCache

repeatCount

Uint8 repeatCount

The SC_LOOP count.

wait

Sint16 wait

SC_WAIT's ticks left.

refused

Uint8 refused

ACTOR.refused, the blocked ticks.

frozen

Uint8 frozen

sceneCount

Uint8 sceneCount

sceneByte

Uint8 sceneByte

timer

Sint16 timer

userValue

Sint16 userValue

watchedActor

Uint32 watchedActor

update

Uint32 update