# ----------------------------------------------------------------- # # MMDAgent "Sample Script" # # released by MMDAgent Project Team # # http://www.mmdagent.jp/ # # ----------------------------------------------------------------- # # # # Copyright (c) 2009-2012 Nagoya Institute of Technology # # Department of Computer Science # # # # Some rights reserved. # # # # This work is licensed under the Creative Commons Attribution 3.0 # # license. # # # # You are free: # # * to Share - to copy, distribute and transmit the work # # * to Remix - to adapt the work # # Under the following conditions: # # * Attribution - You must attribute the work in the manner # # specified by the author or licensor (but not in any way that # # suggests that they endorse you or your use of the work). # # With the understanding that: # # * Waiver - Any of the above conditions can be waived if you get # # permission from the copyright holder. # # * Public Domain - Where the work or any of its elements is in # # the public domain under applicable law, that status is in no # # way affected by the license. # # * Other Rights - In no way are any of the following rights # # affected by the license: # # - Your fair dealing or fair use rights, or other applicable # # copyright exceptions and limitations; # # - The author's moral rights; # # - Rights other persons may have either in the work itself or # # in how the work is used, such as publicity or privacy # # rights. # # * Notice - For any reuse or distribution, you must make clear to # # others the license terms of this work. The best way to do this # # is with a link to this web page. # # # # See http://creativecommons.org/ for details. # # ----------------------------------------------------------------- # # 1st field: state before transition # 2nd field: state after transition # 3rd field: event (input message) # 4th field: command (output message) # # Model # MODEL_ADD|(model alias)|(model file name)|(x position),(y position),(z position)|(x rotation),(y rotation),(z rotation)|(ON or OFF for cartoon)|(parent model alias)|(parent bone name) # MODEL_CHANGE|(model alias)|(model file name) # MODEL_DELETE|(model alias) # MODEL_EVENT_ADD|(model alias) # MODEL_EVENT_CHANGE|(model alias) # MODEL_EVENT_DELETE|(model alias) # # Motion # MOTION_ADD|(model alias)|(motion alias)|(motion file name)|(FULL or PART)|(ONCE or LOOP)|(ON or OFF for smooth)|(ON or OFF for repos) # MOTION_ACCELERATE|(model alias)|(motion alias)|(speed)|(duration)|(specified time for end) # MOTION_CHANGE|(model alias)|(motion alias)|(motion file name) # MOTION_DELETE|(mpdel alias)|(model alias) # MOTION_EVENT_ADD|(model alias)|(motion alias) # MOTION_EVENT_ACCELERATE|(model alias)|(motion alias) # MOTION_EVENT_CHANGE|(model alias)|(model alias) # MOTION_EVENT_DELETE|(model alias)|(motion alias) # # Move and Rotate # MOVE_START|(model alias)|(x position),(y position),(z position)|(GLOBAL or LOCAL position)|(move speed) # MOVE_STOP|(model alias) # MOVE_EVENT_START|(model alias) # MOVE_EVENT_STOP|(model alias) # TURN_START|(model alias)|(x position),(y position),(z position)|(GLOBAL or LOCAL position)|(rotation speed) # TURN_STOP|(model alias) # TURN_EVENT_START|(model alias) # TURN_EVENT_STOP|(model alias) # ROTATE_START|(model alias)|(x rotation),(y rotataion),(z rotation)|(GLOBAL or LOCAL rotation)|(rotation speed) # ROTATE_STOP|(model alias) # ROTATE_EVENT_START|(model alias) # ROTATE_EVENT_STOP|(model alias) # # Sound # SOUND_START|(sound alias)|(sound file name) # SOUND_STOP|(sound alias) # SOUND_EVENT_START|(sound alias) # SOUND_EVENT_STOP|(sound alias) # # Stage # STAGE|(stage file name) # STAGE|(bitmap file name for floor),(bitmap file name for background) # # light # LIGHTCOLOR|(Red),(Green),(Blue) # LIGHTDIRECTION|(x position),(y position),(z position) # # Camera # CAMERA|(x position),(y position),(z position)|(x rotation),(y rotation),(z rotation)|(distance)|(fovy)|(time) # CAMERA|(motion file name) # # Speech recognition # RECOG_EVENT_START # RECOG_EVENT_STOP|(word sequence) # # Speech synthesis # SYNTH_START|(model alias)|(voice alias)|(synthesized text) # SYNTH_STOP|(model alias) # SYNTH_EVENT_START|(model alias) # SYNTH_EVENT_STOP|(model alias) # LIPSYNC_START|(model alias)|(phoneme and milli second pair sequence) # LIPSYNC_STOP|(model alias) # LIPSYNC_EVENT_START|(model alias) # LIPSYNC_EVENT_STOP|(model alias) # # Variable # VALUE_SET|(variable alias)|(value) # VALUE_SET|(variable alias)|(minimum value for random)|(maximum value for random) # VALUE_UNSET|(variable alias) # VALUE_EVAL|(variable alias)|(EQ or NE or LE or LT or GE or GT for evaluation)|(value) # VALUE_EVENT_SET|(variable alias) # VALUE_EVENT_UNSET|(variable alias) # VALUE_EVENT_EVAL|(variable alias)|(EQ or NE or LE or LT or GE or GT for evaluation)|(value)|(TRUE or FALSE) # TIMER_START|(count down alias)|(value) # TIMER_STOP|(count down alias) # TIMER_EVENT_START|(count down alias) # TIMER_EVENT_STOP|(count down alias) # # Plugin # PLUGIN_ENABLE|(plugin name) # PLUGIN_DISABLE|(plugin name) # PLUGIN_EVENT_ENABLE|(plugin name) # PLUGIN_EVENT_DISABLE|(plugin name) # # Other events # DRAGANDDROP|(file name) # KEY|(key name) # # Other commands # EXECUTE|(file name) # KEY_POST|(window class name)|(key name)|(ON or OFF for shift-key)|(ON or OFF for ctrl-key)|(On or OFF for alt-key) # 0011-0020 Initialization 0 11 MODEL_ADD|bootscreen|Accessory\bootscreen\bootscreen.pmd|0.0,12.85,17.6|0.0,0.0,0.0|OFF 11 12 MODEL_EVENT_ADD|bootscreen MODEL_ADD|mei|Model\mei\mei.pmd|0.0,0.0,-14.0 12 13 MODEL_ADD|menu|Accessory\menu\menu.pmd|0.0,-4.5,0.0|0.0,0.0,0.0|ON|mei 13 14 MOTION_ADD|menu|rotate|Motion\menu_rotation\menu_rotation.vmd|FULL|LOOP|OFF|OFF 14 15 STAGE|Stage\building2\floor.bmp,Stage\building2\background.bmp 15 16 MOTION_ADD|mei|base|Motion\mei_wait\mei_wait.vmd|FULL|LOOP|ON|OFF 16 17 TIMER_START|bootscreen|1.5 17 2 TIMER_EVENT_STOP|bootscreen MODEL_DELETE|bootscreen # 0021-0030 Idle behavior 2 21 TIMER_START|idle1|20 21 22 TIMER_EVENT_START|idle1 TIMER_START|idle2|40 22 23 TIMER_EVENT_START|idle2 TIMER_START|idle3|60 23 1 TIMER_EVENT_START|idle3 VALUE_SET|random|0|100 1 1 RECOG_EVENT_START MOTION_ADD|mei|listen|Expression\mei_listen\mei_listen.vmd|PART|ONCE 1 1 TIMER_EVENT_STOP|idle1 MOTION_ADD|mei|idle|Motion\mei_idle\mei_idle_boredom.vmd|PART|ONCE 1 1 TIMER_EVENT_STOP|idle2 MOTION_ADD|mei|idle|Motion\mei_idle\mei_idle_touch_clothes.vmd|PART|ONCE 1 2 TIMER_EVENT_STOP|idle3 MOTION_ADD|mei|idle|Motion\mei_idle\mei_idle_think.vmd|PART|ONCE # 0031-0040 Hello 1 31 RECOG_EVENT_STOP|こんにちは SYNTH_START|mei|mei_voice_normal|こんにちは。 1 31 RECOG_EVENT_STOP|こんにちわ SYNTH_START|mei|mei_voice_normal|こんにちは。 31 32 MOTION_ADD|mei|action|Motion\mei_greeting\mei_greeting.vmd|PART|ONCE 32 2 SYNTH_EVENT_STOP|mei # 0041-0050 Self introduction 1 41 RECOG_EVENT_STOP|自己紹介 SYNTH_START|mei|mei_voice_normal|メイと言います。 1 41 RECOG_EVENT_STOP|あなた,誰 SYNTH_START|mei|mei_voice_normal|メイと言います。 1 41 RECOG_EVENT_STOP|君,誰 SYNTH_START|mei|mei_voice_normal|メイと言います。 41 42 MOTION_ADD|mei|action|Motion\mei_self_introduction\mei_self_introduction.vmd|PART|ONCE 42 43 SYNTH_EVENT_STOP|mei SYNTH_START|mei|mei_voice_normal|よろしくお願いします。 43 2 SYNTH_EVENT_STOP|mei # 0051-0060 Thank you 1 51 RECOG_EVENT_STOP|ありがと SYNTH_START|mei|mei_voice_normal|どういたしまして。 1 51 RECOG_EVENT_STOP|ありがとう SYNTH_START|mei|mei_voice_normal|どういたしまして。 1 51 RECOG_EVENT_STOP|有難う SYNTH_START|mei|mei_voice_normal|どういたしまして。 1 51 RECOG_EVENT_STOP|有り難う SYNTH_START|mei|mei_voice_normal|どういたしまして。 51 52 MOTION_ADD|mei|expression|Expression\mei_happiness\mei_happiness.vmd|PART|ONCE 52 53 SYNTH_EVENT_STOP|mei SYNTH_START|mei|mei_voice_happy|いつでも、話しかけてくださいね。 53 54 MOTION_CHANGE|mei|base|Motion\mei_guide\mei_guide_happy.vmd 54 2 SYNTH_EVENT_STOP|mei MOTION_CHANGE|mei|base|Motion\mei_wait\mei_wait.vmd # 0061-0070 Positive comments 1 61 RECOG_EVENT_STOP|可愛い VALUE_EVAL|random|LE|80 1 61 RECOG_EVENT_STOP|かわいい VALUE_EVAL|random|LE|80 1 61 RECOG_EVENT_STOP|綺麗 VALUE_EVAL|random|LE|80 1 61 RECOG_EVENT_STOP|きれい VALUE_EVAL|random|LE|80 61 62 VALUE_EVENT_EVAL|random|LE|80|TRUE SYNTH_START|mei|mei_voice_bashful|恥ずかしいです。 61 62 VALUE_EVENT_EVAL|random|LE|80|FALSE SYNTH_START|mei|mei_voice_bashful|ありがとう。 62 63 MOTION_ADD|mei|expression|Expression\mei_bashfulness\mei_bashfulness.vmd|PART|ONCE 63 2 SYNTH_EVENT_STOP|mei # 0071-0090 Guide 1 71 RECOG_EVENT_STOP|図書館 MODEL_DELETE|menu 71 72 MODEL_ADD|panel|Accessory\map\map_library.pmd|0.0,2.8,2.5|0.0,0.0,0.0|ON|mei 72 73 MOTION_ADD|mei|action|Motion\mei_panel\mei_panel_on.vmd|PART|ONCE 73 74 MOTION_CHANGE|mei|base|Motion\mei_guide\mei_guide_normal.vmd 74 75 SYNTH_START|mei|mei_voice_normal|図書館は、正面から見ると、右前の方向にあります。 75 76 SYNTH_EVENT_STOP|mei MOTION_ADD|mei|look|Motion\mei_look\mei_look_down.vmd|PART|ONCE 76 77 SYNTH_START|mei|mei_voice_normal|キャンパスマップでは、こちらになります。 77 78 MOTION_ADD|mei|action|Motion\mei_point\mei_point_center_buttom.vmd|PART|ONCE 78 79 SYNTH_EVENT_STOP|mei MOTION_CHANGE|mei|base|Motion\mei_guide\mei_guide_happy.vmd 79 80 SYNTH_START|mei|mei_voice_normal|お解りになりますか? 80 81 SYNTH_EVENT_STOP|mei MODEL_DELETE|panel 81 82 MODEL_ADD|menu|Accessory\menu\menu.pmd|0.0,-4.5,0.0|0.0,0.0,0.0|mei 82 83 MOTION_CHANGE|mei|base|Motion\mei_wait\mei_wait.vmd 83 2 MOTION_ADD|menu|rotate|Motion\menu_rotation\menu_rotation.vmd|FULL|LOOP|OFF # 0091-0100 Bye 1 91 RECOG_EVENT_STOP|バイバイ SYNTH_START|mei|mei_voice_normal|さようなら。 1 91 RECOG_EVENT_STOP|さようなら SYNTH_START|mei|mei_voice_normal|さようなら。 1 91 RECOG_EVENT_STOP|さよなら SYNTH_START|mei|mei_voice_normal|さようなら。 91 92 MOTION_ADD|mei|action|Motion\mei_bye\mei_bye.vmd|PART|ONCE 92 2 SYNTH_EVENT_STOP|mei # 0101-0110 Browsing 1 101 RECOG_EVENT_STOP|ホームページ EXECUTE|http://www.mmdagent.jp/ 1 101 RECOG_EVENT_STOP|MMDAgent EXECUTE|http://www.mmdagent.jp/ 101 102 SYNTH_START|mei|mei_voice_normal|MMDAgentの、ホームページを表示します。 102 2 SYNTH_EVENT_STOP|mei # 0111-0120 Screen 1 111 RECOG_EVENT_STOP|フルスクリーン KEY_POST|MMDAgent|F|OFF 111 112 SYNTH_START|mei|mei_voice_normal|スクリーンの設定を、変更しました。 112 2 SYNTH_EVENT_STOP|mei