// デモテスト0000 demo_script { // 使用するリソースの設定 str[] RESOURCE = { "res_yoshi; chara/player/TF01WM.gfa", } // ライト設定リスト LIGHT_SETTING_LIST { lightSet001 { f32[] color = {1.0, 1.0, 1.0} } } SCENE { str directionLight = "lightSet001" // f32[] cameraPos = {0,20,40} // f32[] cameraTarget = {0,0,0} } // アクター名を設定する。 // プログラム側でこれに対応したモデルをセットする。 str[] ACTOR_LIST = { "TYPE_WMOBJ; none; PLAYER1; $player1p; 1, 51, 4110, 4111", "TYPE_WMOBJ; none; YOSHI_00; $yoshi00; 1, 51, 4110, 4111", } // VEC3 テーブル f32[] POS_TABLE = { -10.0, 0.0, 0.0, 10.0, 0.0, 0.0, 10.0, 0.0, 10.0, 0.0, 0.0, 0.0, } // INT テーブル s32[] INDEX_TABLE = { 0, 1, 0, 1 } // 例。 str[] CMD_LIST = { // カメラをデモモードへ "WMSetCamMode; demo", "ValueDefine; eff_color_no; INT; 0", "ValueDefine; eff_color_no2; INT; 0", "If;eff_color_no == 0", "Print;nest 1", "If;1", "Print;nest 2", "If;1", "Print;nest 3", "If;1", "Print;nest 4", "If;1", "Print;nest 5", "If;1", "Print;nest 6", "If;1", "Print;nest 7", "If;1", "Print;nest 8", "EndIf", "EndIf", "EndIf", "EndIf", "EndIf", "EndIf", "EndIf", "Print;section 1-1", "Print;section 1-2", "Print;section 1-3", "Print;section 1-4", "If;1", "Print;section 1-5", "Print;section 1-6", "Else", "Print;section 1-7", "Print;section 1-8", "EndIf", "If;0", "Print;section 1-9", "Print;section 1-10", "Else", "Print;section 1-11", "Print;section 1-12", "EndIf", "ElseIf;eff_color_no == 2", "Print;section 2-1", "Print;section 2-2", "Else", "Print;section 3-1", "Print;section 3-2", "EndIf", "CamTarget; 0.0; 0.0; 0.0", "CamPos; 0.0; 20.0; 40.0", "ActorFrontType; PLAYER1; XPLUS", "ActorFrontType; YOSHI_00; ZPLUS", "ActorPos; PLAYER1; -2.5; 0.0; 4.3", "ActorPos; YOSHI_00; 3.0; 0.0; 6.3", "ActorDir; PLAYER1; +1.0; 0.0; 2.0", "ActorDir; YOSHI_00;-1.0; 0.0; 7.0", "ActorVisible; PLAYER1; true", "ActorVisible; YOSHI_00; false", "CounterStart; A", // "OpenFilter; 60; 255; 0; 0; 0; 130", "FadeInWait; 60", "WaitCounter; A; 120", "Effect; EFF_00; symbol_00_ef; 0.0; 0.0; 0.0; 0; 140", "Effect; EFF_01; symbol_10_ef;10.0; 0.0; 0.0; 0", "EffectEx; EFF_CONGRA_01; goalconf_ortho_01_ef; UI_PERS; WORLD; 0.0;0.0;0.0", "MdlEffect; EFF_02; EFFECT_KIND_DM_000_0010; 0.0; 0.0; 10.0; 60", "MdlEffect; EFF_03; EFFECT_KIND_DM_000_0020;-5.0; 0.0; 10.0; 90; -1; 140", "WaitCounter; A; 240", // "CamMove; BOTH; 10.0; 0.0; 0.0; LINEAR; 60", // "CamMove; TARGET; 10.0; 0.0; 0.0; LINEAR; 60", // "CamMove; POS; 5.0; 20.0; 40.0; LINEAR; 60", // "CamMove; BOTH; $courseW1_2; none; none; LINEAR; 60", "CamMove; BOTH; $courseW1_2; none; none; LINEAR; 60", "WaitCamMove; BOTH", // "Wait; 120", "FadeOutWait; 15", "CamPos;-20.0; 20.0;-40.0", "ActorVisible; YOSHI_00; true", "ActorPos; PLAYER1; -1.0; 0.0; 4.3", "ActorPos; YOSHI_00;+1.0; 0.0; 4.3", "ActorDir; PLAYER1; +1.0; 0.0; 0.0", "ActorDir; YOSHI_00; +1.0; 0.0; 0.0", // "WMActorHeadDir; YOSHI_00; 45.0; 30.0; 0.0; ANGLE", "WMActorHeadTrace; YOSHI_00; PLAYER1; J_Root", "FadeInWait; 15", "ValueDefine; target_pos; VEC3", "ValueDefine; target_index; INT", "TableDefine; pos_table; VEC3; POS_TABLE", "TableDefine; index_table; INT; INDEX_TABLE", "ValueFromTable; target_index; index_table; 0", "ValueFromTable; target_pos; pos_table; target_index", // "ValueFromTable; target_pos; pos_table; 0", "ActorMovePos; PLAYER1; target_pos; none; none;LINEAR; 60", "Wait;30", "WMActorMovePause; PLAYER1; true", "Wait;120", "WMActorMovePause; PLAYER1; false", "ActorWaitMovePos; PLAYER1", "ValueFromTable; target_index; index_table; 1", "ValueFromTable; target_pos; pos_table; target_index", // "ValueFromTable; target_pos; pos_table; 1", "ActorMovePos; PLAYER1; target_pos; none; none;LINEAR; 60", "ActorWaitMovePos; PLAYER1", "ValueFromTable; target_index; index_table; 2", "ValueFromTable; target_pos; pos_table; target_index", // "ValueFromTable; target_pos; pos_table; 2", "ActorMovePos; PLAYER1; target_pos; none; none;LINEAR; 60", "ActorWaitMovePos; PLAYER1", "ValueFromTable; target_index; index_table; 3", "ValueFromTable; target_pos; pos_table; target_index", // "ValueFromTable; target_pos; pos_table; 3", "ActorMovePos; PLAYER1; target_pos; none; none;LINEAR; 60", "ActorWaitMovePos; PLAYER1", // "ActorMovePos; PLAYER1; -10.0; 0.0; 0.0;LINEAR; 60", // "ActorWaitMovePos; PLAYER1", // "ActorMovePos; PLAYER1; 10.0; 0.0; 0.0;LINEAR; 60", // "ActorWaitMovePos; PLAYER1", // "ActorMovePos; PLAYER1; 10.0; 0.0;10.0;LINEAR; 60", // "ActorWaitMovePos; PLAYER1", // "ActorMovePos; PLAYER1; 0.0; 0.0; 0.0;LINEAR; 60", // "ActorWaitMovePos; PLAYER1", "ActorMovePos; PLAYER1; -10.0; 0.0; 4.3;LINEAR; 60", "ActorWaitMovePos; PLAYER1", "ActorMoveRot; YOSHI_00; 0.0; 45.0; 0.0;LINEAR; 60", "ActorWaitMoveRot; YOSHI_00", "CamMove; POS; -20.0; 40.0;-40.0; LINEAR; 60", "Wait; 120", "CloseFilter; 60", // "StaffRoll; data/staffroll_param.txt", // "WaitStaffRoll", "FadeOutWait; 60", } }