代码之家  ›  专栏  ›  技术社区  ›  Tom Ritter

梅林特工能做什么?

  •  4
  • Tom Ritter  · 技术社区  · 17 年前

    不可否认,这是谷歌的问题。但是看起来所有的文件都被删除了,我在任何地方都找不到。所以我希望有人能给我看一些VBScript代码来枚举对象,或者有更强的GoogleFu。

    merlin代理类似于一个废弃的Windows组件 Alice in this stackoverflow answer 通过 Bob Mc (坦率地说,应该得到更多的选票)。无论如何,这里有一个例子,假设您在windows上,并且它安装在C驱动器上(我发现merlin几乎在所有计算机上都有):

    agentName = "Merlin"
    agentPath = "c:\windows\msagent\chars\" & agentName & ".acs"
    Set agent = CreateObject("Agent.Control.2")
    agent.Connected = TRUE
    agent.Characters.Load agentName, agentPath
    Set character = agent.Characters.Character(agentName)
    
    character.Show
    character.MoveTo 200, 400
    character.Play "Surprised"
    
    Wscript.Sleep 10000
    

    • 显示
    • 移动到
    • 隐藏
    • 玩

    播放采用动画名称。我也在寻找所有这些。我知道:

    • 'character.Play“Read”
    • 'character.Play“Write”
    • 'character.Play“WriteContinued”
    • 'character.Play“恭喜”
    • 'character.Play“Greet”
    • '角色。播放“衰退”
    • 'character.Play“解释”
    • 'character.Play“手势正确”
    • 'character.Play“高兴”
    • 'character.Play“惊奇”
    • 'character.Play“引起注意”

    2 回复  |  直到 9 年前
        1
  •  4
  •   Tom Ritter    17 年前

    我不知道为什么我之前没有尝试使用Internet Archive[1],但它确实有效。以下是梅林可以做的动画:

    Acknowledge             Nods head
    Alert                   Straightens and raises eyebrows
    Announce                Raises trumpet and plays
    Blink                   Blinks eyes
    Confused                Scratches head
    Congratulate                Displays trophy
    Congratulate_2              Applauds
    Decline                 Raises hands and shakes head
    DoMagic1                Raises magic wand
    DoMagic2                Lowers wand, clouds appear
    DontRecognize               Holds hand to ear
    Explain                 Extends arms to side
    GestureDown             Gestures down
    GestureLeft             Gestures to his left
    GestureRight                Gestures to his right
    GestureUp               Gestures up
    GetAttention                Leans forward and knocks
    GetAttentionContinued           Leaning forward, knocks again
    GetAttentionReturn          Returns to neutral position
    Hearing_1               Ears extend (looping animation)
    Hearing_2               Tilts head left (looping animation)
    Hearing_3               Turns head left (looping animation)
    Hearing_4               Turns head right (looping animation)
    Hide                    Disappears under cap
    Idle1_1                 Takes breath
    Idle1_2                 Glances left and blinks
    Idle1_3                 Glances right
    Idle1_4                 Glances up to the right and blinks
    Idle2_1                 Looks at wand and blinks
    Idle2_2                 Holds hands and blinks
    Idle3_1                 Yawns
    Idle3_2                 Falls asleep (looping animation)
    LookDown                Looks down
    LookDownBlink               Blinks looking down
    LookDownReturn              Returns to neutral position
    LookLeft                Looks left
    LookLeftBlink               Blinks looking left
    LookLeftReturn              Returns to neutral position
    LookRight               Looks right
    LookRightBlink              Blinks looking right
    LookRightReturn             Returns to neutral position
    LookUp                  Looks up
    LookUpBlink             Blinks looking up
    LookUpReturn                Returns to neutral position
    MoveDown                Flies down
    MoveLeft                Flies to his left
    MoveRight               Flies to his right
    MoveUp                  Flies up
    Pleased                 Smiles and holds his hands together
    Process                 Stirs cauldron
    Processing              Stirs cauldron (looping animation)
    Read                    Opens book, reads and looks up
    ReadContinued               Reads and looks up
    ReadReturn              Returns to neutral position
    Reading                 Reads (looping animation)
    RestPose                Neutral position
    Sad                 Sad expression
    Search                  Looks into crystal ball
    Searching               Looks into crystal ball (looping animation)
    Show                    Appears out of cap
    StartListening              Puts hand to ear
    StopListening               Puts hands over ear
    Suggest                 Displays light bulb
    Surprised               Looks surprised
    Think                   Looks up with hand on chin
    Thinking                Looks up with hand on chin (looping animation)
    Uncertain               Leans forward and raises eyebrows
    Wave                    Waves
    Write                   Opens book, writes and looks up
    WriteContinued              Writes and looks up
    WriteReturn             Returns to neutral position
    Writing                 Writes (looping animation)          
    

    以下是如何获得所有这些信息:

    For Each strName in objCharacter.AnimationNames
        Wscript.Echo strName
    Next
    

    1:(因此无法解析此链接) http://web.archive.org/web/20080214075638/http://www.microsoft.com/technet/scriptcenter/funzone/agent.mspx

        2
  •  1
  •   Searock    15 年前

    但是

    您可以下载库和字符 here .

    here .

    您可以找到支持的动画列表 here .