So, I'm going to start posting in this thread various bits of code for mudlet that people just getting into system building might find useful. If you start using any of this, please provide feedback so I can improve things.
Also, I'm taking requests
The first thing I'm going to post is a very simple targeting system. It's extremely simple, but it's the first building block of creating a system.
This package consists of two aliases.
"tar [name]" sets name as a target
"tar" alone sets the target to nothing.
It also includes a very simple bashing alias, "bsh" that bashes your target, mostly to demonstrate how to use the target variable.
It also includes a function for checking if a parameter you pass to it is actually the active target. It just adds a few safety checks to the comparison.
Finally, it includes a framework for prompt replacement trigger. This one replicates the existing prompt, but adds the target to your prompt if you've set it, so it looks like this
H:429/500 M:431/418 <eb bd t: alesei>
The file is just a mudlet package file, you can add it by downloading it, clicking "Package Manager" at the top menu, clicking "install", and navigating to the downloaded file.
Comments