Lua Questions
Posted: Friday, 20th January 2012, 15:14
1) Is there a LUA command to retrieve the last message posted to the console?
2) Do messages have unique id's so I don't have to check a message twice, or are messages just text only? For example, if I get a queue of messages from the console and the last 3 messages were all "A goblin comes into view." is there a way to distinguish them from each other?
3) How do I check the suffix of a string in lua to compare if it ends with some specific text? EDIT: answered.
2) Do messages have unique id's so I don't have to check a message twice, or are messages just text only? For example, if I get a queue of messages from the console and the last 3 messages were all "A goblin comes into view." is there a way to distinguish them from each other?
3) How do I check the suffix of a string in lua to compare if it ends with some specific text? EDIT: answered.