Page 1 of 1

I Need Advice with Improving Lua Scripting Skills for a Complex MUD Game

Posted: Wed Sep 25, 2024 11:14 am
by komyash
Hello there,

I have been using Mudlet for a few months now; and while I am fairly comfortable with the basics; I am looking to step up my game when it comes to Lua scripting. I play a very complex MUD; and I am finding that my current scripting abilities are not quite enough to handle some of the more intricate aspects of automation and trigger management.

Specifically; I am trying to create a system that will track multiple resources like mana; healt; and stamina) and trigger different responses based on varying percentages of each. For example; I want it to heal if my health drops below 30%, but also make sure that my mana does not go below 20% in the process. Additionally; I want to add conditions for things like status effects that will trigger a different set of actions altogether.

I have read through the official Mudlet documentation and explored some tutorials; but I am struggling to combine all these elements into a cohesive script. Do any of you have advice on how I could structure these triggers more efficiently? Should I be using tables to manage the variables; or is there a better approach I am not aware of?

Also; if there are any best practices for debugging and testing scripts in Mudlet that I might be overlooking.

Thanks in advance for your help and assistance.

Re: I Need Advice with Improving Lua Scripting Skills for a Complex MUD Game

Posted: Mon Oct 07, 2024 1:40 am
by SlySven
I would suggest that you drop by our Discord guild/server - specifically the #help channel there is usually someone there who will be willing to offer advice within a few hours...