08-26-2012, 12:02 PM
Hi,
I am wondering whether there is a command to grab what the NPC said... Sorta like an autoresponder but I don't want my char to respond, rather load a script
For example, I want to make a script on an OT that does the particular task an NPC wants. If the NPC says "12 rotworms" it'll load the rotworm script and go there, if it says dragons, it'll go load the dragon script etc..
Obviously that would require a function to see if the sentence contains a certain sentence..... but I dont know if its possible with this scripting language.
I am wondering whether there is a command to grab what the NPC said... Sorta like an autoresponder but I don't want my char to respond, rather load a script
For example, I want to make a script on an OT that does the particular task an NPC wants. If the NPC says "12 rotworms" it'll load the rotworm script and go there, if it says dragons, it'll go load the dragon script etc..
Obviously that would require a function to see if the sentence contains a certain sentence..... but I dont know if its possible with this scripting language.