home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Treasure Mathstorm
/
TMSWINCD.ISO
/
pc
/
install
/
com.mps
< prev
next >
Wrap
Text File
|
1996-10-15
|
5KB
|
239 lines
;com.mps
;include globals.mps
false=0
true=1
fidgetAnim=7
characterAnim=8
aoCoord=-1
spCoord=-2
trueType=0
nfnt=1
;tools
purpleSneezeberryTool=0
greenSneezeberryTool=1
redSneezeberryTool=2
blueSneezeberryTool=3
goldSneezeberryTool=4
purpleBeetleBagTool=5
greenBeetleBagTool=6
redBeetleBagTool=7
blueBeetleBagTool=8
goldBeetleBagTool=9
purpleSnagnetTool=10
greenSnagnetTool=11
redSnagnetTool=12
blueSnagnetTool=13
goldSnagnetTool=14
keyATool=15
keyBTool=16
cupTool=17
sneezeberryTool=18
carvingTool=19
mathraTool=20
ringTool=21
;categories
math=0
logic=1
langArts=2
science=3
geography=4
;cursors
deadCursor=1924
liveCursor=1925
fingerCursor=1926
northCursor=1929
northWestCursor=1930
westCursor=1931
southWestCursor=1932
southCursor=1933
southEastCursor=1934
eastCursor=1935
northEastCursor=1936
False=0
True=1
;background music
loopAMusicId=1900
;loopA2MusicId=1904
loopBMusicId=0
;loopB2MusicId=0
;loopCMusicId=0
;loopDMusicId=0
;z values
openLaptrapZ=1000
procedure addQMoveActions joniMoveId santiagoMoveId laptrapMoveId HidePoseAfterAnim
[
;going to happen once
play joni setAnim joniMoveId -1 -1
play santiago setAnim santiagoMoveId -1 -1
play laptrap setAnim laptrapMoveId -1 -1
if HidePoseAfterAnim=1
[
play joni hideSettled joniMoveId true
play santiago hideSettled santiagoMoveId true
play laptrap hideSettled laptrapMoveId true
]
joniMove=CharacterAction "joni" characterAnim joniMoveId
santiagoMove=CharacterAction "santiago" characterAnim santiagoMoveId
laptrapMove=CharacterAction "laptrap" characterAnim laptrapMoveId
moveCAct=CompositeAction
play moveCAct add "joniMove"
play moveCAct add "santiagoMove"
play moveCAct add "laptrapMove"
play scene addToQueueBack "moveCAct"
]
procedure initPuzzleC
[
;create puzzle objects
call addToPuzzle
;create data sets
; call setLevel+level
call setLevel1
set puzzle snapSound answerSnapSfxId
set puzzle goHomeSound answerGoHomeSfxId
set puzzle pickupSound answerPickUpSfxId
set puzzle puzzleSolved playerSolved
set puzzle puzzleWrong playerWrong
]
procedure addAnimsJoniC
[
;bod
play joni setHead joniLipsId -1 -1
play joni setArms joniArmsId -1 -1
play joni setBody joniBodId -1 -1
;fidgets
play joni setAnim joniFidgetsId.1 -2 -2
play joni setAnim joniFidgetsId.2 -2 -2
play joni setAnim joniFidgetsId.3 -2 -2
;light
play joni setAnim backpackLightId -2 -2
]
procedure addAnimsSantiagoC
[
;bod
play santiago setHead santiagoLipsId -1 -1
play santiago setArms santiagoArmsId -1 -1
play santiago setBody santiagoBodId -1 -1
;fidgets
play santiago setAnim santiagoFidgetsId.1 -2 -2
play santiago setAnim santiagoFidgetsId.2 -2 -2
play santiago setAnim santiagoFidgetsId.3 -2 -2
;light
play santiago setAnim radioLightId -2 -2
]
procedure addAnimsLaptrapC
[
;light
play laptrap setAnim laptrapLightId -2 -2
]
procedure setCharClicksC
[
set joni clicked joniClicked
set santiago clicked santiagoClicked
; set laptrap clicked laptrapClicked
]
procedure setCharCursorsC
[
set joni cursor liveCursor
set santiago cursor liveCursor
set laptrap cursor deadCursor
]
procedure showBackpackSpot x1 y1 x2 y2
[
backpackSpot=RCHotSpot x1 y1 x2 y2
set backpackSpot zOrder backpackSpotZ
set backpackSpot cursor fingerCursor
set backpackSpot hit backpackClicked
]
procedure showRadioSpot x1 y1 x2 y2
[
radioSpot=RCHotSpot x1 y1 x2 y2
set radioSpot zOrder radioSpotZ
set radioSpot cursor fingerCursor
set radioSpot hit radioClicked
]
procedure setupBackpack
[
play scene setToolkitZ toolkitZ
play scene setToolkitCharacter "joni"
play scene setToolkitLightAnim backpackLightId
play scene setToolkitHotspot "backpackSpot"
]
procedure backpackClicked
[
backpackLight=CharacterAction "joni" characterAnim backpackLightId
backpackLightSfx=SoundAction backpackSfxId
backpackLightCAct=CompositeAction
play backpackLightCAct add "backpackLight"
play backpackLightCAct add "backpackLightSfx"
play scene addToQueueBack "backpackLightCAct"
set scene queueFinished openKit
play scene startQueue
]
procedure laptrapClicked
[
laptrapLight=CharacterAction "laptrap" characterAnim laptrapLightId
play scene addToQueueBack "laptrapLight"
set scene queueFinished openLT
play scene startQueue
]
procedure openKit
[
play scene toggleToolkit toolkitZ whichPouch
]
procedure openLT
[
play laptrap hidePose
play scene openLaptrap openLaptrapZ
]
procedure laptrapDone
[
play laptrap showPose
]
procedure exitToSignin
[
call leaving
relay "signin.mps"
]
procedure nothing
[
]