# ------------------------------------------------------------------------------------ # This is an example - for the shooting gallery # ------------------------------------------------------------------------------------ include "system.txt" data eventlst include "eventlst.hpp" data animation "mg_sgall" data geometry "mg_sgall" data effects "mg_sgall" 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 ObjectsGroup Windows 21 anim_win01 roomred 21 anim_room_red roomblue 21 anim_room_blue roomgreen 21 anim_room_green roomyellow 21 anim_room_yellow roomorange 21 anim_room_orange roompurple 21 anim_room_purple roomcyan 21 anim_room_cyan roommagenta 21 anim_room_magenta Animations showme 1 1 Init 0 0 Events ET_ARENASCRIPT_LOADED Dummy # Sample TFrq TFrq+/- Vol Vol+/- x y z 0 CreateAmbOneShot 15.0 15.0 0.5 0.25 0 AddOneShot Gallery_Random01 0.0 0.0 0.0 0 AddOneShot Gallery_Random02 0.0 0.0 0.0 0 AddOneShot Gallery_Random03 0.0 0.0 0.0 0 AddOneShot Gallery_Random04 0.0 0.0 0.0 0 AddOneShot Gallery_Random05 0.0 0.0 0.0 0 AddOneShot Gallery_Random06 0.0 0.0 0.0 0 AddOneShot Gallery_Random07 0.0 0.0 0.0 0 AddOneShot Gallery_Random08 0.0 0.0 0.0 # Sample OnT OnT+/- OffT OffT+/- VolON VolONM VolOFF VolOFFM FinT FoutT x y z # 0 CreateAmbLooping Gallery_RandomLoop01 5.0 2.0 20.0 5.0 1.0 0.4 0.0 0.0 1.0 1.0 0.0 0.0 0.0 0 CreateAmbLooping Gallery_RandomLoop02 5.0 2.0 20.0 5.0 1.0 0.4 0.0 0.0 1.0 1.0 0.0 0.0 0.0 0 CreateAmbLooping Gallery_RandomLoop03 5.0 2.0 20.0 5.0 1.0 0.4 0.0 0.0 1.0 1.0 0.0 0.0 0.0 0 CreateAmbLooping Gallery_RandomLoop04 5.0 2.0 20.0 5.0 1.0 0.4 0.0 0.0 1.0 1.0 0.0 0.0 0.0 ET_MINIGAME_INIT Dummy 0 PlaySound GameStart Windows GetEventParam _ObjectNumber 0 PlayAnim 0 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 ET_MINIGAME_TARGET_CHANGED windows GetEventParam _ObjectNumber 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 roomblue GetEventParam _ObjectNumber #case0 switch GetEventParam _SubType2 case 0 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 case 1 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 2 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 3 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 4 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 5 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 6 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 7 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 roomred GetEventParam _ObjectNumber #case1 switch GetEventParam _SubType2 case 0 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 1 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 case 2 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 3 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 4 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 5 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 6 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 7 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 roomgreen GetEventParam _ObjectNumber #case2 switch GetEventParam _SubType2 case 0 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 1 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 2 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 case 3 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 4 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 5 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 6 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 7 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 roomyellow GetEventParam _ObjectNumber #case3 switch GetEventParam _SubType2 case 0 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 1 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 2 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 3 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 case 4 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 5 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 6 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 7 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 roomorange GetEventParam _ObjectNumber #case4 switch GetEventParam _SubType2 case 0 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 1 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 2 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 3 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 4 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 case 5 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 6 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 7 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 roompurple GetEventParam _ObjectNumber #case5 switch GetEventParam _SubType2 case 0 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 1 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 2 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 3 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 4 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 5 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 case 6 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 7 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 roomcyan GetEventParam _ObjectNumber #case6 switch GetEventParam _SubType2 case 0 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 1 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 2 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 3 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 4 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 5 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 6 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 case 7 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 roommagenta GetEventParam _ObjectNumber #case7 switch GetEventParam _SubType2 case 0 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 1 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 2 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 3 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 4 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 5 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 6 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 0 case 7 0 PlayAnim 1 0 SetPosition GetEventParam _Coordinates 0 SetVisible 1 Dummy switch GetEventParam _SubType case 0 10 PlaySound Gallery_BystanderA01 case 1 10 PlaySound Gallery_BystanderB01 case 2 10 PlaySound Gallery_BystanderC01 case 3 10 PlaySound Gallery_BystanderD01 case 4 10 PlaySound Gallery_BystanderE01 case 5 10 PlaySound Gallery_BystanderF01 case 6 10 PlaySound Gallery_BystanderG01 case 7 10 PlaySound Gallery_BystanderH01 case 8 10 PlaySound Gallery_BystanderI01 case 9 10 PlaySound Gallery_BystanderJ01 case 10 10 PlaySound Gallery_BystanderK01 ET_MINIGAME_TARGET_BLOCKED # glass already broken Dummy 10 PlaySoundEffect ET_SE_MG_SG_OLDMAN_WINDOW ET_SKILLS_OVER Dummy # 0 PlaySound TicTacToe_PlayerWins