Hi, I have two questions about the usage of variables and calls.
Take this example:
// array of “simple” variables
! array vars = age gender boyfriend girlfriend color location
+ my (@vars) is *
- <set <star1>=<star2>>I’ll remember that your <star1> is <star2>.<call>setvars</call>
> object setvars javascript
setvars();
< object
// end
How do I send the variables to the call?
I’d like to make this setvars() function show the user that a new variable and value was created.
For example, ‘age = 25’ appears on screen when I input ‘my age is 25’. I’m hoping the answer is simple like setvars(<star1>,<star2>); This would help me achieve things like ‘search google for *’ and the bot opens a window with the results.
The obvious next question is, how do I get a variable from outside the bot?
I’d love for this to be a two way street, where the bot can retrieve the variable from the page. It would know my variable and value before I set it with (@vars) and open up new possibilities. It seems I’m missing two pretty important functions of this bot if this is indeed possible.
Thanks Noah, the creator of rivescript (and everyone since eliza).
You’ve made something super complex so easy to use and play with.
Inspiring!