« Return to Thread: Problems with forum ai mod based on alice

Javascript problem

by Ioannis Doumanis :: Rate this Message:

Reply to Author | View in Thread

Hi all,

I have the following script in AIML. I am using the AIMLPad ActiveX control
from Gary Dubuque.


<aiml>
<category>
<pattern>run camera animation</pattern>
<template>
<javascript>

function VCTCamera()
    {
        sprite(6).AppendString('<PlayAnimation
Name="/DA/DATA/Maddy/Realtime/Clips/Camera/Camera3.lws">');
   
}
</javascript>

OK I will run the camera animation now </template>
</category>
</aiml>

sprite(6) is the location of another active X control (a 3D character
engine) in macromedia director. What I want to do is every time I type "run
camera animation" the character to run the particular animation. Is there
any way to do that? My guess is that in order for the above function to work
I must call it from somewhere. Any ideas?

Please help





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

 « Return to Thread: Problems with forum ai mod based on alice