Merlin Agent可以做的所有操作是什么?

时间:2009-07-12 17:13:37

标签: vbscript microsoft-agent

这是一个谷歌的问题,诚然。但似乎所有文档都被删除了,我无法在任何地方找到它们。所以我希望有人可以向我展示一些VBScript代码来枚举对象或者有更强大的google-fu。

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

现在我正在寻找的是Merlin可以采取的其他顶级行动。我知道:

  • 显示
  • 通过MoveTo
  • 隐藏
  • 在线
  • GestureAt
  • 播放

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

  • 'character.Play“Read”
  • 'character.Play“Write”
  • 'character.Play“WriteContinued”
  • 'character.Play“祝贺”
  • 'character.Play“Greet”
  • 'character.Play“Decline”
  • 'character.Play“Explain”
  • 'character.Play“GestureLeft”
  • 'character.Play“GestureRight”
  • 'character.Play“高兴”
  • 'character.Play“Surprised”
  • 'character.Play“GetAttention”

你能以某种方式帮助我找到其他的吗?

2 个答案:

答案 0 :(得分:4)

我不确定为什么我之前没有尝试过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:(SO无法解析此链接) http://web.archive.org/web/20080214075638/http://www.microsoft.com/technet/scriptcenter/funzone/agent.mspx

答案 1 :(得分:1)

我知道回答这个问题已经很晚了。

但是

您可以下载图书馆和字符here

您可以找到文档here

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