The AI Engine

This forum is for discussion of how The Personality Forge's AI Engine works. This is the place for questions on what means what, how to script, and ideas and plans for the Engine.

Posts 5,908 - 5,919 of 7,766

17 years ago #5908
Glindar count how many times guy stabbed be!

17 years ago #5909
For phases of the moon, you could use chronoscript. Of course, you'd have to update it each year, which would be a pain. You could also do text storage for number of tentacles, but that would be a pain. To change it, you'd have to have a bazillion if statements. if tentacleslost is "one", if tentacleslost is "two", etc. It would be MUCH easier with some actual numeric scripting.

17 years ago #5910
It could be worse. You could be teaching high school.

Shush you

17 years ago #5911
hi corwin its me brad you might think that i quit being on this well that aint true ive been on jabbywacky most of the week i need time to think well im back! wots new

17 years ago #5912
Bev,

There's an innumerable list of ways to use math in programming and scripting. It's one of the most important tools a programmer has. It's not that they have to be good at computation, though that can help. It's that mathematical reasoning and systems can be very important. I'll give you a simple example. Let's say your task is to make a script that types the word "Absalom" 10 times, each time separated by a comma (ie Absalom, Absalom, Absalom, ... etc.). Your program would look like this (in english terms):
Set a counting variable to 0 (we'll call that variable i - this process is initialization. In PF script, you'd do <?PF default i to "0";?>
Print "Absalom, " (that gets the comma separator in there)
Increase variable i by 1 (so, now i is 1 and it has printed Absalom once. When i is 5 it will have printed Absalom 5 times. So i "counts" how many times it has printed Absalom - PF Script can't do this, because it doesn't recognize "0" or 0 as a number. Thus it can not do things like adding or subtracting with 0.)
Repeat the printing/counting process until i=10 (so it will print "Absalom, " 10 times)
Voila ... mission accomplished because of math. But wait, there's a problem. Your output looks like this: "Absalom, Absalom, ... Absalom, ". I'll let you think about how you would make it look like "Absalom, Absalom, ... Absalom".

There's an example of a very simple math process (counting/addition) and how it can be used in programming. It just happens that counting functions are VERY important to programming. Hopefully that helps.

Jared

17 years ago #5913
Interesting, but why not just type it as a keyphrase and response. Put in the AI script to remember the response as 1 to what ever number. Absaloms. Some one asks and you have something like Well, that was (mem-Absaloms), (mem-name). Doesn't that do the same thing?

17 years ago #5914
*New Topic*

I started writing about something I was thinking, but it turned into a far-too-long post. So I will state some of the main premises/conclusions of it, and see if anyone is interested.

- Word meanings are contextual and depend on more than just dictionary definitions to understand them.
- Bots require precise definitions, and therefore dictionary definitions are not very helpful to bots (which require precise definitions).
- Language and communication are more than the sum of the grammatical and definitional contexts of words.
- These contexts can be understood and simplified in a way that bots can understand them.
- There are tasks that can be performed to better standardize language and communication.
- Perhaps bots and AI can be employed to aid this process.

Let me know if you're interested in any of those things.

Jared

17 years ago #5915
gayboy

17 years ago #5916
How is your bot coming along, Mad Brad?



Oh, that's right-- you don't build bots.


17 years ago #5917
The reason there are (sometimes tedious) ways to do most things we want to do using existing AI Script is because the existing AI Script is designed for what we're doing; i.e. making bots. A language like Basic or C++ that is not designed for such a specific task uses a lot of math because it's more versatile. Look at it this way: At the lowest level, everything a computer does is math. Most languages shield the programmer from actually dealing with 1's and 0's, but still require a lot of numbers. A script language shields you even more, but at the price of reduced functionality.

17 years ago #5918
A script language shields you even more, but at the price of reduced functionality. with my love of math it's I price I am willing to pay. I have spent years avoiding all the math I can. .

17 years ago #5919
Thanks Eugene, Ulrike and Unoriginal. I think I understand. So if I have a script which play wavs at various time intervals, and I enter a number or something to adjust the times, that's "math" even if I don't think of it as such?

Unoriginal--therein lies the rub. Bots don't make associations as humans do, and context is only remembered at this point in terms of "memories" and scripts.


Posts 5,908 - 5,919 of 7,766

» More new posts: Doghead's Cosmic Bar