Difference between revisions of "SCUMM/V2 opcodes"

From ScummVM :: Wiki
Jump to navigation Jump to search
(beginning work on adding information to the wiki on V2 opcodes from ScummVM sourcecode)
 
(Added stubs for v2 specific opcodes)
 
Line 4: Line 4:
  
 
==actorFromPos ($15)==
 
==actorFromPos ($15)==
 +
 +
==actorOps ($13)==
 +
 +
==add ($5A)==
 +
 +
==addIndirect ($2A)==
 +
 +
==assignVarByte ($2C)==
 +
 +
==assignVarWordIndirect ($0A)==
 +
 +
==beginOverride ($58)==
 +
 +
==chainScript ($4A)==
 +
 +
==clearState01 ($77)==
 +
 +
==clearState02 ($17)==
 +
 +
==clearState04 ($67)==
 +
 +
==clearState08 ($47)==
 +
 +
==cursorCommand ($60)==
 +
 +
==cutscene ($40)==
 +
 +
==delay ($2E)==
 +
 +
==doSentence ($19)==
  
 
==drawObject ($05)==
 
==drawObject ($05)==
 +
 +
==drawSentence ($AC)==
 +
 +
==dummy ($5C)==
 +
 +
==endCutscene ($C0)==
  
 
==faceActor ($09)==
 
==faceActor ($09)==
 +
 +
==findObject ($35)==
  
 
==getActorRoom ($03)==
 
==getActorRoom ($03)==
Line 16: Line 54:
  
 
==getActorElevation ($06)==
 
==getActorElevation ($06)==
 +
 +
==getActorWalkBox ($7B)==
 +
 +
==getActorX ($43)==
 +
 +
==getActorY ($23)==
 +
 +
==getBitVar ($31)==
 +
 +
==getObjPreposition ($6C)==
 +
 +
==ifClassOfIs ($1D)==
 +
 +
==ifNotState01 ($3F)==
 +
 +
==ifNotState02 ($5F)==
 +
 +
==ifNotState04 ($2F)==
 +
 +
==ifNotState08 ($0F)==
 +
 +
==ifState01 ($7F)==
 +
 +
==ifState02 ($1F)==
 +
 +
==ifState04 ($6F)==
 +
 +
==ifState08 ($4F)==
 +
 +
==isGreater ($78)==
 +
 +
==isGreaterEqual ($04)==
 +
 +
==isLess ($44)==
 +
 +
==isLessEqual ($38)==
 +
 +
==lights ($70)==
 +
 +
==loadRoomWithEgo ($24)==
 +
 +
==panCameraTo ($12)==
 +
 +
==pickupObject ($50)==
  
 
==putActor ($01)==
 
==putActor ($01)==
 +
 +
==putActorAtObject ($0E)==
 +
 +
==putActorInRoom ($2D)==
  
 
==resourceRoutines ($0C)==
 
==resourceRoutines ($0C)==
 +
 +
==restart ($98)==
 +
 +
==roomOps ($33)==
 +
 +
==setActorElevation ($3D)==
 +
 +
==setBitVar ($1B)==
 +
 +
==setCameraAt ($32)==
 +
 +
==setObjPreposition ($0B)==
 +
 +
==setOwnerOf ($29)==
 +
 +
==setState01 ($37)==
 +
 +
==setState02 ($57)==
 +
 +
==setState04 ($27)==
  
 
==setState08 ($07)==
 
==setState08 ($07)==
  
 
==startMusic ($02)==
 
==startMusic ($02)==
 +
 +
==startScript ($42)==
 +
 +
==stopScript ($62)==
  
 
==stopObjectCode ($00)==
 
==stopObjectCode ($00)==
 +
 +
==subIndirect ($6A)==
 +
 +
==subtract ($3A)==
 +
 +
==switchCostumeSet ($AB)==
 +
 +
==verbOps ($7A)==
 +
 +
==waitForActor ($3B)==
 +
 +
==waitForMessage ($AE)==
 +
 +
==waitForSentence ($4C)==
 +
 +
==walkActorTo ($1E)==
 +
 +
==walkActorToObject ($36)==

Latest revision as of 01:43, 24 April 2009

Contents

SCUMM V2 opcodes

actorFollowCamera ($52)

actorFromPos ($15)

actorOps ($13)

add ($5A)

addIndirect ($2A)

assignVarByte ($2C)

assignVarWordIndirect ($0A)

beginOverride ($58)

chainScript ($4A)

clearState01 ($77)

clearState02 ($17)

clearState04 ($67)

clearState08 ($47)

cursorCommand ($60)

cutscene ($40)

delay ($2E)

doSentence ($19)

drawObject ($05)

drawSentence ($AC)

dummy ($5C)

endCutscene ($C0)

faceActor ($09)

findObject ($35)

getActorRoom ($03)

isGreaterEqual ($04)

isNotEqual ($08)

getActorElevation ($06)

getActorWalkBox ($7B)

getActorX ($43)

getActorY ($23)

getBitVar ($31)

getObjPreposition ($6C)

ifClassOfIs ($1D)

ifNotState01 ($3F)

ifNotState02 ($5F)

ifNotState04 ($2F)

ifNotState08 ($0F)

ifState01 ($7F)

ifState02 ($1F)

ifState04 ($6F)

ifState08 ($4F)

isGreater ($78)

isGreaterEqual ($04)

isLess ($44)

isLessEqual ($38)

lights ($70)

loadRoomWithEgo ($24)

panCameraTo ($12)

pickupObject ($50)

putActor ($01)

putActorAtObject ($0E)

putActorInRoom ($2D)

resourceRoutines ($0C)

restart ($98)

roomOps ($33)

setActorElevation ($3D)

setBitVar ($1B)

setCameraAt ($32)

setObjPreposition ($0B)

setOwnerOf ($29)

setState01 ($37)

setState02 ($57)

setState04 ($27)

setState08 ($07)

startMusic ($02)

startScript ($42)

stopScript ($62)

stopObjectCode ($00)

subIndirect ($6A)

subtract ($3A)

switchCostumeSet ($AB)

verbOps ($7A)

waitForActor ($3B)

waitForMessage ($AE)

waitForSentence ($4C)

walkActorTo ($1E)

walkActorToObject ($36)