Bot Tutorial: Rendering sentences randomly Part II
In this part you will learn how to use several two-word combinations in different sentences or even in one sentence. We'll use "because I" as the 1st combo and "because you" as the 2nd.
Sentences:
I have many thalers because I am thrifty.
I had beautiful furniture because I receive many gifts.
We're on the road because you showed us a shortcut.
We're stuck here because you didn't know what to do.
The purpose of these sentences is to show that the bot also allows multiple combos without them affecting each other.
Sentences:
I have many thalers because I am thrifty.
I had beautiful furniture because I receive many gifts.
We're on the road because you showed us a shortcut.
We're stuck here because you didn't know what to do.
The purpose of these sentences is to show that the bot also allows multiple combos without them affecting each other.
However, it becomes more interesting when there are several combos in a set.
Sentences:
The dentist sits on the chair and treats the patient while he sleeps.
The clown sits on the balloon and amuses the audience while he laughs.
The musician sits on the piano and plays to his friend while he sings.
Sentences:
The dentist sits on the chair and treats the patient while he sleeps.
The clown sits on the balloon and amuses the audience while he laughs.
The musician sits on the piano and plays to his friend while he sings.
This then makes sentences possible such as: The dentist sits on the balloon and amuses the audience, while he sings.
The words "The dentist", "The clown", "The musician" are all interchangeable, because they are placed before the word combination sits on. Between the combinations are partial sentences (green), which are also only interchangeable. And as 3rd the words "sleeps", "laughs", "sings", which are also only interchangeable, because they stand behind the same word combination.
The words "The dentist", "The clown", "The musician" are all interchangeable, because they are placed before the word combination sits on. Between the combinations are partial sentences (green), which are also only interchangeable. And as 3rd the words "sleeps", "laughs", "sings", which are also only interchangeable, because they stand behind the same word combination.
Random system:
Since the bot can randomly assemble these sentences, it is possible to exploit this feature for wireds to trigger random effects. As an example, let's use a code that keeps changing. A three-digit number from 000 to 999. The text source must contain the following:
Since the bot can randomly assemble these sentences, it is possible to exploit this feature for wireds to trigger random effects. As an example, let's use a code that keeps changing. A three-digit number from 000 to 999. The text source must contain the following:
1 ab cd 1 ef gh 1
2 ab cd 2 ef gh 2
3 ab cd 3 ef gh 3
4 ab cd 4 ef gh 4
5 ab cd 5 ef gh 5
6 ab cd 6 ef gh 6
7 ab cd 7 ef gh 7
8 ab cd 8 ef gh 8
9 ab cd 9 ef gh 9
0 ab cd 0 ef gh 0
2 ab cd 2 ef gh 2
3 ab cd 3 ef gh 3
4 ab cd 4 ef gh 4
5 ab cd 5 ef gh 5
6 ab cd 6 ef gh 6
7 ab cd 7 ef gh 7
8 ab cd 8 ef gh 8
9 ab cd 9 ef gh 9
0 ab cd 0 ef gh 0
As you can see the letters ab cd and ef gh are used as a word combination so that the bot knows to swap the numbers. The different sentences can now be caught with the say-something wired. The following stack is used 30 times:
- WIRED Condition: Triggering User Is On Furni
- WIRED Effect: Match Furni to Position & State
- WIRED Trigger: User Says Keyword
Triggering User Is On Furni: Selected is the floor where only the bot may stand.
Match Furni to Position & State: There the numbers 0 to 9 are stored by the number building block. The 1st stack row refers to the hundreds digit, the 2nd to the tens digit, and the 3rd to the units digit. (That's 10 stacks per stack row, with 3 stack rows that makes a total of 30 stacks).
User Says Keyword: For the hundreds digit, the 1st number is copied from the source and the associated word combination so that the Says Something Wired can distinguish which number digit it is. The 1st row is then copied from
1 down to 0 down, so that each Sagt-etwas Wired contains a different number (see picture).
For the tens digit cd 1 to cd 0 is copied and for the units digit gh 1 to gh 0. The position wires must of course match the user-says wireds. For example, cd 4 user-says must be connected to the position wired that also has the number 4 stored at the tens digit.
The final result will look like this (bot message is then invisible due to user-says wireds):
The final result will look like this (bot message is then invisible due to user-says wireds):
This method is relatively economical, considering that it would also have taken 1000 wireds to store and then recall every possible number.