Quick tutorial
Written by Sledgstone   
04-15-2007

Sledgstone
May 26th, 2005, 11:16 PM
save one of the dictionary .aiml files or a personality file (per-insertnamehere.aiml) to your desktop and rename it to something more fitting like: std-yuyudictionary.aiml then double click it and set windows to always open it with notepad.

all it is is a text file. change what you want or add more with copy and paste.

there are a few things that must be remembered!

1) the beginning and ending of the file must stay intact!
2) do not use odd symbols in your aiml files like: & ` = and i think a few more..
3) smilies codes will work, but only the smilies code in flashchat.
4) the "pattern" portion of the .aiml file MUST BE IN ALL CAPS. (see examples below)
5) when you finish some work on a new .aiml file, post a new topic in here and attach it in the first post.
6) when you update one of your files, delete the attachment in the first post and re-attach it! then edit the post with the date so we'll know the last time it was updated.

"pattern" example:

Before:
<category>
<pattern>DEFINE STEPHEN KING</pattern>
<template>
Stephen King is a famous author.
</template>
</category>

<category>
<pattern>DEFINE KRILLIN</pattern>
<template>
Krillin is the comic relief character of the DBZ series.
</template>
</category>

After:
<category>
<pattern>DEFINE YU YU HAKUSHO</pattern>
<template>
Yu Yu Hakusho is a series about Yusuke Yurameshi.. etc. etc.
</template>
</category>

<category>
<pattern>DEFINE YUSUKE</pattern>
<template>
Yusuke is the main character of the series Yu Yu Hakusho.
</template>
</category>

the catchy thing is the sensitivity of what is typed. with the above "DEFINE YUSUKE" code, if someone asks KOS MOS, "Who is yusuke?" she'll answer with her programmed answer.. but if someone asks: "Who is yuske?" she won't know what the hell the person is talking about. so, to fix that we can also add:

<category>
<pattern>DEFINE YUSKE</pattern>
<template>
Yusuke not Yuske. :p He is the main character of the series Yu Yu Hakusho.
</template>
</category>

Notice how kos mos will correct their spelling and throw in a tounge smilie? ;) the variety of reactions kos mos will have is completely dependant upon us and how well her pathways sort thru the variety of responses members will throw at her.

the "DEFINE" code will cover "who is" and "what is" questions. but to get more personal, type actual question and answers. like the following:

<category>
<pattern>WHAT IS THE SPIRIT GUN</pattern>
<template>
It is Yusuke's main attack. I love the Spirit Gun! :D
</template>
</category>

<category>
<pattern>WHO IS KUWABARA</pattern>
<template>
Kuwabara is my big buddy. :) He is also one of the characters from Yu Yu Hakusho.
</template>
</category>


because of the sheer amount of text and combinations of words that we can type out, please keep everything in seperate files for easier reference. like a yu yu hakusho dictionary file should be std-yuyudictionary.aiml or a yusuke only file should be called std-yusukequestionanswer.aiml or something like that.

also. the asterik symbol " * " can be used as a wildcard but use it sparingly! and only when used in larger sentances. example:

BAD:
<category>
<pattern>WHO * DARK TOURNAMENT</pattern>
<template>
Yusuke fought in the Dark Tournament.
</template>
</category>


why is it bad? because someone could ask: Who fought in the dark tournamet and get the yusuke answer, or they could ask "Who refereed the dark tournamet?" and once again, the yusuke answer.

unneccessary use of the " * " will also put a heavier burden on kos mos's brain and pathways.

GOOD:
<category>
<pattern>WHO DID YUSUKE * DARK TOURNAMENT</pattern>
<template>
Yusuke fought toguro, gin, etc etc at the Dark Tournament. Yusuke is one of my favorite characters.
</template>
</category>


why is this good? because the * in that sentance could only replace a few combinations of words like "who did yusuke fight in the dark tournament" or "who did yusuke battle to the death with in the dark tournament"

also, please note the extra yusuke sentance at the end.. kind of gives her more personality about herself as opposed to a bland "yusuke fought so & so" answer.


i'll post more info later this weekend.

Sledgstone
May 29th, 2005, 05:11 PM
UPDATE! i'm assuming the maker of flashchat will eventually fix this. but as of right now aposthropes in the DEFINE part will not load properly and asteriks will not function as wild cards. -_-

examples:

apostrophe:
<category>
<pattern>DEFINE KANNA'S MIRROR</pattern>
<template>
Mirror carried by Kanna capeable of stealing souls, redirecting attacks, and seeing things over a distance.
</template>
</category>

the apostrophe will not load the defined answer. instead, delete it for now or replace things like it's with it is, etc.:
<category>
<pattern>DEFINE KANNAS MIRROR</pattern>
<template>
Mirror carried by Kanna capeable of stealing souls, redirecting attacks, and seeing things over a distance.
</template>
</category>

asterik:
<category>
<pattern>WHO DID YUSUKE * DARK TOURNAMENT</pattern>
<template>
Yusuke fought toguro, gin, etc etc at the Dark Tournament. Yusuke is one of my favorite characters.
</template>
</category>

the asterik will not load the defined answer. instead be specific:
<category>
<pattern>WHO DID YUSUKE FIGHT IN THE DARK TOURNAMENT</pattern>
<template>
Yusuke fought toguro, gin, etc etc at the Dark Tournament. Yusuke is one of my favorite characters.
</template>
</category>