I've decided to try to learn to use LavishScript. I've looked through the Wiki for both Lavish and ISXGames, and have found a lot of helpful information. Currently, I'm trying to make my first, extremely basic script, but I still haven't been able to find a script template to help me with the basic layout and flow.
I'll be using this basic script as my learning experience, so I will state what I'd like the script to do, what I've come up with so far, and what I'm having problems with.
INTENT:
I'd like to make a script which will look at any incoming /tell message, and if the message matchs any of the preset words and phrases in the script, it will take a particular action.
For the purpose of this example lets say that if you sent the script a /tell which said "Hiya, I'm new here", it would reply with "Hey! Welcome <name of person who sent tell>"
WHAT I'VE GOT:
From what I was able to find on the wiki, I should be able to use OnIncomingText (Hiya, I'm new here) to trigger the response, and I can use VGExecute /reply Hey! Welcome.
WHAT I DONT KNOW:
I really have no idea how to lay the script out, I don't know what needs to be definaed, or called... I haven't programmed in forever. I tried opening some of the other.ISS files but a lot of them seemed very cryptic, calling other things that I was pretty clueless about. Also, I have no idea to find out who actually sent the message, and how I could incorporate that in my reply.
I'd really appreciate some help =)
I'll be using this basic script as my learning experience, so I will state what I'd like the script to do, what I've come up with so far, and what I'm having problems with.
INTENT:
I'd like to make a script which will look at any incoming /tell message, and if the message matchs any of the preset words and phrases in the script, it will take a particular action.
For the purpose of this example lets say that if you sent the script a /tell which said "Hiya, I'm new here", it would reply with "Hey! Welcome <name of person who sent tell>"
WHAT I'VE GOT:
From what I was able to find on the wiki, I should be able to use OnIncomingText (Hiya, I'm new here) to trigger the response, and I can use VGExecute /reply Hey! Welcome.
WHAT I DONT KNOW:
I really have no idea how to lay the script out, I don't know what needs to be definaed, or called... I haven't programmed in forever. I tried opening some of the other.ISS files but a lot of them seemed very cryptic, calling other things that I was pretty clueless about. Also, I have no idea to find out who actually sent the message, and how I could incorporate that in my reply.
I'd really appreciate some help =)