Between the two variables, put this: .. " : " ..
That is the quickest way to add in something like a colon, or any other string.
Geyser UI Template
Re: Geyser UI Template
1) Just as Jor'Mox said...
Enjoy!
2) gmcp.Char.Items returns a table. This is why you cannot echo it. You'll want to iterate through the table a bit to find what you're looking for. gmcp.Char.Items.List.items actually contains a table for each item in the room. So if we pull values from that to echo, it will work much better...
That should iterate through the list, grab all the names, and echo them to GUI.Box7.
Enjoy!
Re: Geyser UI Template
I'm new to LUA programming and also new to Mudlet.
Please help me with this.
I added a new script in mudlet and put this code:
It does make the gauges update, but only at first. When I attack mobs, the gauge stay the way it is, it's always full, not moving, not updating its value. Can you tell me how can I make the gauges update?..
Thanks.
Please help me with this.
I added a new script in mudlet and put this code:
I also put a User Defined Event Handler(gmcp.Char.Vitals) in it. The one just below the script name.
It does make the gauges update, but only at first. When I attack mobs, the gauge stay the way it is, it's always full, not moving, not updating its value. Can you tell me how can I make the gauges update?..
Thanks.
Re: Geyser UI Template
You'll want to turn your script into a function and name your script the function name...
Then make the script name: updateGauges
Re: Geyser UI Template
Okay, I need someone patient enough to explain these concepts to a 4-year old.
I've been using HTML5 for its simplicity after a long absence from the game, before which I did use Mudlet - but at that time the main GUI was the Achaea Fancy GUI (which I understood perfectly because I both used Nexus and help set it up for Mudlet). Now that both the AFGUI and HTML5 are found severely lacking in capability, I recognize my need to move up in the world.
However, after about an hour of fighting and swearing and getting practically nowhere, it's obvious I need a little help. I'm no stranger to LUA, but I'm completely unfamiliar with any form of CSS, and the sheer amount of new functions and scripts available in LUA have turned me into a newbie, and trying to set this up is fast approaching impossible. I don't know how to link the gagues with my actual health, putting the Mudlet mapper in Box1 works until I log out and log back in after which the map fills my entire screen and I can't do a thing, and if I attempt to remove any boxes or labels, they simply don't go anywhere. I know I'm doing something wrong, but I don't know enough to know what that is.
I've been using HTML5 for its simplicity after a long absence from the game, before which I did use Mudlet - but at that time the main GUI was the Achaea Fancy GUI (which I understood perfectly because I both used Nexus and help set it up for Mudlet). Now that both the AFGUI and HTML5 are found severely lacking in capability, I recognize my need to move up in the world.
However, after about an hour of fighting and swearing and getting practically nowhere, it's obvious I need a little help. I'm no stranger to LUA, but I'm completely unfamiliar with any form of CSS, and the sheer amount of new functions and scripts available in LUA have turned me into a newbie, and trying to set this up is fast approaching impossible. I don't know how to link the gagues with my actual health, putting the Mudlet mapper in Box1 works until I log out and log back in after which the map fills my entire screen and I can't do a thing, and if I attempt to remove any boxes or labels, they simply don't go anywhere. I know I'm doing something wrong, but I don't know enough to know what that is.
Re: Geyser UI Template
i use this Geyser UI template on my mudlet. So i tried to set the text-align to top for the box2, however it didn't work and the vertical alignment of texts are still at center. where did I went wrong with that?
Re: Geyser UI Template
At first glance, you have UI.Box2 instead of GUI.Box2 Not sure if the 'G' was cut off when you copy+pasted though.
Aside from that, use qproperty-alignment instead of text-align in your stylesheet...
Aside from that, use qproperty-alignment instead of text-align in your stylesheet...
Re: Geyser UI Template
@Ruran To attach a gauge to your health, you'll need a variable to track your health. Each time your health changes, set the value of the gauge to reflect your new health. Here's a small example...
As for your mapper problem, posting the script you're using would be helpful.
Re: Geyser UI Template
That, I can understand. But how do I grab that value from GMCP?Akaya wrote:you'll need a variable to track your health.
As for that, it was your own. The very first post in this thread, in the section where you talk about Box1 being a good place for the mapper. I just replaced the script for Box1 with the script provided there, and that happens. Clearly, this is the wrong thing to do, but I don't understand containers well enough to know the right thing to do.Akaya wrote:As for your mapper problem, posting the script you're using would be helpful.
Re: Geyser UI Template
have tried using this script (closed it so it would run)Akaya wrote:That should iterate through the list, grab all the names, and echo them to GUI.Box7.
One problem I am having is that it is not iterating a new line for every object in the room. I am also having a problem with it not updating when I move from room to room.
Questions:
1. Do I need to create a script that empties and reloads this table every time I move?
2. I tried tying it to a gmcp event handler "gmcp.Char.Items.List.items", and that will update it if I load the script manually, am I on the right track with this?
3. How would I make it iterate each object in the table on a fresh line?
Sorry, I am brand new to lua, and to most programming, so please take it easy with me