# ------------------------------------------------------------------------------------ # This is an example # ------------------------------------------------------------------------------------ include "system.txt" data eventlst include "eventlst.hpp" data animation "mg_ttt" data geometry "mg_ttt" data effects "mg_ttt" data sound "TicTacToe" Defines # parameters order from events _ObjectNumber 0 # FourShorts[0] _AnimationNumber 1 # FourShorts[1] _ObjectNumber2 2 # FourShorts[2] _AnimationNumber2 3 # FourShorts[3] _Coordinates 4 # v3Location _Coordinates2 5 # vExtra3Location StartFrame 1 EndFrame 90 teamHOME 0 teamAWAY 1 teamNOTEAM -1 SUCCESS -1 FAILURE 0 ObjectsGroup Group_Of_Targets 9 anim_block Animations Init 0 0 # 0 BLANK_X 0 40 # 1 X_O 50 90 # 2 O_X 100 140 # 3 X_BLANK 150 190 # 4 BLANK_O 200 240 # 5 O_BLANK 250 290 # 63:46 PM 2/28/2002 block_target_1 0 5 # 7 block_target_2 10 18 # 8 block_target_3 20 31 # 9 Events ET_MINIGAME_TARGET_CHANGED Group_Of_Targets GetEventParam _ObjectNumber 0 PlayAnim GetEventParam _AnimationNumber 0 SetPosition GetEventParam _Coordinates 0 PlaySound PuckHitBlock # play specific sounds on who stolen from and who stolen to switch GetEventParam _SubType #previous owner case teamHOME # stolen from home to away 0 PlaySound BlockStealHOME case teamAWAY # stolen from away to home 0 PlaySound BlockStealAWAY case teamNOTEAM # captured for first time switch GetEventParam _SubType2 #new owner case teamHOME 0 PlaySound BlockSpinHOME case teamAWAY 0 PlaySound BlockSpinAWAY anim_blocker 0 PlayAnim GetEventParam _AnimationNumber2 0 SetPosition GetEventParam _Coordinates2 0 PlaySound MetalUP +15 PlayAnimBackwards GetEventParam _AnimationNumber2 +0 PlaySound MetalDOWN +12 SetVisible 0 ET_MINIGAME_TARGET_BLOCKED anim_blocker switch GetEventParam _AnimationNumber2 case 7 0 PlayAnim 7 0 SetPosition GetEventParam _Coordinates2 0 PlaySound PuckHitMetal 0 PlaySound MetalUP +15 PlayAnimBackwards GetEventParam _AnimationNumber2 +0 PlaySound MetalDOWN +12 SetVisible 0 case 8 0 PlayAnim 8 0 SetPosition GetEventParam _Coordinates2 0 PlaySound PuckHitMetal 0 PlaySound MetalUP +15 PlayAnimBackwards GetEventParam _AnimationNumber2 +0 PlaySound MetalDOWN +12 SetVisible 0 case 9 0 PlayAnim 9 0 SetPosition GetEventParam _Coordinates2 0 PlaySound PuckHitMetal 0 PlaySound MetalUP +15 PlayAnimBackwards GetEventParam _AnimationNumber2 +0 PlaySound MetalDOWN +12 SetVisible 0 ET_MINIGAME_TARGET_MISSED Dummy 0 PlaySound BlockOwned 0 PlaySound PuckHitBlock ET_MINIGAME_INIT Dummy 0 PlaySound GameStart Group_Of_Targets GetEventParam _ObjectNumber 0 PlayAnim 0 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 ET_SKILLS_OVER Dummy switch GetEventParam _SubType case SUCCESS 0 PlaySound TicTacToe_PlayerWins case FAILURE 0 PlaySound TicTacToe_PlayerLooses