|
Post by Velious on May 24, 2005 12:16:36 GMT -5
On my persistent world, I use an NPC listener that acts as a DM helper. The listener follows its owner DM around and parses the text said by that DM. It has more than 100 commands, ranging from booting/killing players to creating spell effects. However, my DMs and I have problems with the listener; when we are DM invisible, the listener misses most of our text. It has a heartbeat script that sends it to its owner DM, but it often takes too long for it to reach the owner after the owner teleports to another area. I was looking for a more elegant solution when I discovered the Talus Speech System. What I need to know is if TSS allows for command parameters. For example, here is a portion of the listener's OnSpawn script:
void main() { SetListenPattern(OBJECT_SELF, "/c dmg ** **", 3101); SetListening(OBJECT_SELF, TRUE); }
The OnConversation script parses the first parameter as a name and uses it to find the object to damage, then parses the second string into a number for the amount of damage. If I were to use the Talus Speech System, would there be a way to filter out lines of text that begin with "/c dmg" and end with any two strings, determine what those two strings are, and determine the player that said them?
Thanks for reading.
|
|