Hi, I am completely new to working with mushclient, Lua and plugins. I have had a little scripting experience in the past and know some basic code.
I am trying to design some small plugins for a MUD that has yet to have -ANY- plugins made for it. I watched a few tutorials and after a few days have managed to redesign a few of those to work.
I have followed and studied many tutorials, among them are these.
#1
http://www.youtube.com/watch?v=IqO3SwdCuDg
#2
http://vimeo.com/80330899
http://vimeo.com/80331930
I am trying to make one last plugin before I share what I have with the rest of my MUD community but I just can't seem to find a way to get it to work. (from lack of experience working with Lua)
I am trying to get this status screen to appear at the top right of the mud and also have these lines omitted from the output. (as though they have been moved) I have figured out several ways to have it update but can't seem to get the WHOLE THING to appear.
Note that several parts of this status will change such as "Your chest is scraped." can have multiple lines of different damage.
Here is another example.
From tutorial #1 (listed above) I was able to re-create a window that would appear at the top right of my screen with the data from the trigger (status screen). The problem with that is that it can only display one line of information and I have no idea how to display other "separate" windows below it.
With tutorial #2 I was able to figure out a way to get all the damage from the status screen to display in the top right corner by having it copy anything with "Your *" in front of it. But it seems to use some form of multi-line triggers in the match loop and thus I was unable to omit the status screen from appearing (like it was moved to the new window) and I was unable to get the "Riln:", "Fatigue:" and "Hunger:" sections to appear.
I would REALLY appreciate it if someone could point me in the right direction for a simple way to make this work. Like maybe a simple windowed table that would accept lines from multiple single lined triggers. "Simple" is the key. I have been banging my head on this one trying to get it to work. Although, I have been learning a lot along the way.
I am trying to design some small plugins for a MUD that has yet to have -ANY- plugins made for it. I watched a few tutorials and after a few days have managed to redesign a few of those to work.
I have followed and studied many tutorials, among them are these.
#1
http://www.youtube.com/watch?v=IqO3SwdCuDg
#2
http://vimeo.com/80330899
http://vimeo.com/80331930
I am trying to make one last plugin before I share what I have with the rest of my MUD community but I just can't seem to find a way to get it to work. (from lack of experience working with Lua)
I am trying to get this status screen to appear at the top right of the mud and also have these lines omitted from the output. (as though they have been moved) I have figured out several ways to have it update but can't seem to get the WHOLE THING to appear.
Name: Fredegar Race: Nuum Gender: Male
Riln: 687
Fatigue: Fully Rested Hunger: Well-Fed
Your chest is scraped.
Your abdomen is lightly wounded.
(To view your skills, type skills
Note that several parts of this status will change such as "Your chest is scraped." can have multiple lines of different damage.
Here is another example.
Name: Loki Race: Rhun Gender: Male
Riln: 10200
Fatigue: None Hunger: Content
Your head is badly wounded.
Your abdomen is lightly wounded.
Your right foot is scraped.
(To view your skills, type skills
From tutorial #1 (listed above) I was able to re-create a window that would appear at the top right of my screen with the data from the trigger (status screen). The problem with that is that it can only display one line of information and I have no idea how to display other "separate" windows below it.
With tutorial #2 I was able to figure out a way to get all the damage from the status screen to display in the top right corner by having it copy anything with "Your *" in front of it. But it seems to use some form of multi-line triggers in the match loop and thus I was unable to omit the status screen from appearing (like it was moved to the new window) and I was unable to get the "Riln:", "Fatigue:" and "Hunger:" sections to appear.
I would REALLY appreciate it if someone could point me in the right direction for a simple way to make this work. Like maybe a simple windowed table that would accept lines from multiple single lined triggers. "Simple" is the key. I have been banging my head on this one trying to get it to work. Although, I have been learning a lot along the way.