The Mantis Combat System

by Jules

Back to Mechanic's Corner.

Vadi2009-12-16 00:51:13
Remember that IRE games need this option enabled:



(might be called differently, but its just the 1st one)
Jules2009-12-16 01:07:25
QUOTE (Vadi @ Dec 15 2009, 07:51 PM) <{POST_SNAPBACK}>
Remember that IRE games need this option enabled:



(might be called differently, but its just the 1st one)


Which can be found by going to Settings -> Main Display -> Check "Fix new text to be on its own line", which is under "Display Workarounds", towards the bottom.
Morshoth2009-12-16 05:25:19
Well.. my whole problem is in that when I import it, and then go into the game, it does nothing at all...
Unknown2009-12-27 03:36:58
I've been trying this out along with mudlet and am really impressed by both so far, but I think I've found an error in the auto sipper.

Edit: Apparently the auto-sipper is saving the data as strings and not as integers... trying to figure out how to change that.
Jules2009-12-27 04:46:46
To do this, just put "tonumber()" before the matches, and it should change it to an integer. I though I updated it with the last Release, but I guess that slipped by. Whoops!!

Currently right now, I'm working on the Queueing system itself. For goodness only knows what reason, it's not taking proper commands to cure things. And when it does, it doesn't try to cure them one at a time, but all at once, which is maddening! Any help with that would be wonderful.
Unknown2009-12-27 05:02:26
Sweet, that fixed it. I haven't programmed (besides zmud) in years, so I don't know how long that would have taken me to catch. Thanks!

Also, I downloaded the sipper with the full package. So maybe you fixed the standalone and not the packaged one? I'm too lazy to DL them and see but that might be it if I were to guess.
Jules2009-12-27 05:07:56
That's probably an accurate statement! Heh heh, knowing me and my forgetfulness!
Jules2009-12-31 04:59:59
Beta Release 4 has been released FINALLY!! Now includes two new submissions from our users, Cern and Vadi! Thanks guys! Check out the website at http://sites.google.com/sites/mantissystem, download the .zip file, and watch the magic happen!
Unknown2010-01-02 09:28:59
Thar be a mistake in that there queue. What you have is this:
QUOTE (Herb queue)
function cureAffs_herb()
for _,v in pairs(herbCure) do
if herbQueue and herbBalance == 1 then
send(v.cure)
herbBalance = 0.5
tempTimer(2, ])
end
end
end

herbCure = {

The two bolded parts, herbCure, should be herbQueue. This typo is actually in every one of the queue scripts, but after I changed it (for herbs at least) it started to work smile.gif

Edit: Nvm, only seems to cure the first time it's afflicted with something on a balance D:
Unknown2010-01-02 13:30:44
You're misunderstanding the purpose of each variable. herbCure is a table mapping afflictions to the cure. herbQueue is your current list of herb-cured afflictions. (There should be only one list of current afflictions, as I've mentioned already, but it hasn't be recoded that way yet.)
Jules2010-01-02 18:14:35
QUOTE (Zarquan @ Jan 2 2010, 08:30 AM) <{POST_SNAPBACK}>
(There should be only one list of current afflictions, as I've mentioned already, but it hasn't be recoded that way yet.)


I have actually been meaning to ask you about that... How should I go about queueing all afflictions into one queue, then separating them into the proper curing tables?
Unknown2010-01-02 18:28:15
Most simply, you would stop using separate queues and just use one. That part should take you about 30 seconds.

However, to ensure that you don't try to cure the same affliction with multiple balances and waste time, you should have a temporary table to flag the afflictions already being cured in this run through your curing. So, if you are already focusing your mind to cure stupidity, you don't need to eat pennyroyal and could maybe cure your slickness with calamus instead.
Jules2010-01-02 19:01:30
Hmm... Sounds simple enough, I think! I'll try coding that!
Unknown2010-01-03 00:53:26
Ok, this is a learning experience for me too, but I think I've made some progress this time smile.gif

A typo in the balance regain messages, it calls a function called cureAff_herb. So it won't continue trying to heal things because the function is actually called cureAffs_herb.

When adding things to tables, it will only add it the first time for some reason I'm not fully understanding, but if you add another if statement to it (elseif herbQueue == true then;cureAffs_herb()) then it'll re-add an affliction you possessed earlier and cure it again.

Edit: There's also lots of typos in the scripts. Like sometimes an affliction is called "blind" and othertimes it is called "blindness", and "stupidity" is spelled "stupiditiy" in the herbqueue function.
Jules2010-01-03 01:48:03
Heheh, thank you for pointing those out. I'll fix them up and do a re-release. I knew that I had a lot of typo's in the code because... Well... I can never remember which variables to use! Lol! Thanks a ton, Jello!
Jules2010-01-03 07:48:10
I posted up a small update to the Mantis files, along with updating the Mantis website itself. You'll now find all Mantis files in Mudlet to be located with in a folder called... Mantis! This should make it easier for upgrading version. The readme has been updated as well, and for legal purposes, I've added in the license document.

With regards to the code itself, typo's were fixed everywhere, along with (more) bugs with the Autosipper. There was a problem where it would want to send "sip (whatever)" twice, and that was fixed, along with when and how it sips. The prioritizing should be easier to manage now, instead of having to go through a bunch of folders.

Enjoy!
Unknown2010-01-03 18:24:00
The sipper won't sip. It did for a while earlier, but it also sipped twice one time. This is with the latest update.

The stand alone one did this:

CODE
564h, 453m, 172e, 0p, 1080en, 1380w ex-
sip health
You take a drink from a vial.
The potion heals and soothes you.
564h, 453m, 172e, 0p, 1080en, 1380w ex-
You may drink another health, mana, or bromide potion.
sip health
564h, 453m, 172e, 0p, 1080en, 1380w ex-
sip health
You take a drink from a vial.
The potion heals and soothes you.
564h, 453m, 172e, 0p, 1080en, 1380w ex-
You take a drink from a vial.
The potion flows down your throat without effect.
564h, 453m, 172e, 0p, 1080en, 1380w ex-
You may drink another health, mana, or bromide potion.
sip health
564h, 453m, 172e, 0p, 1080en, 1380w ex-
sip health
You take a drink from a vial.
The potion heals and soothes you.
564h, 453m, 172e, 0p, 1080en, 1380w ex-
You take a drink from a vial.
The potion flows down your throat without effect.
564h, 453m, 172e, 0p, 1080en, 1380w ex-
You may drink another health, mana, or bromide potion.


Then this:

CODE
564h, 453m, 172e, 0p, 1080en, 1380w ex-
tron
The air fills with a rank odor shortly before a fink slinks in from the west.
564h, 453m, 172e, 0p, 1080en, 1380w ex-
sip bromide
You take a drink from a vial.
Ah, the soothing bromides help strengthen your ego.
564h, 453m, 351e, 0p, 1080en, 1380w ex-
You may drink another health, mana, or bromide potion.
sip bromide
564h, 453m, 351e, 0p, 1080en, 1380w ex-
sip bromide
You take a drink from a vial.
Ah, the soothing bromides help strengthen your ego.
564h, 453m, 456e, 0p, 1080en, 1380w ex-
You take a drink from a vial.
The potion flows down your throat without effect.
564h, 453m, 456e, 0p, 1080en, 1380w ex-
You may drink another health, mana, or bromide potion.
sip bromide
564h, 453m, 456e, 0p, 1080en, 1380w ex-
sip bromide
You take a drink from a vial.
Ah, the soothing bromides help strengthen your ego.
564h, 453m, 456e, 0p, 1080en, 1380w ex-
You take a drink from a vial.
The potion flows down your throat without effect.
Damadreas2010-01-03 20:34:20
I was having the same issue with the sipper. it wouldn't sip until I sipped once then it'd sip twice each time and non-stop.
Eldanien2010-01-03 20:45:00
I took a quick look at Mantis as a means of playing around with Mudlet. Mantis includes the other packages, which I had downloaded separately and imported in manually. I wound up with double copies of each package, which might account for some troubles.
Jules2010-01-03 21:51:06
The reason that the original Beta would double sip was an error on my part. I had the sipper script in two separate places, which would cause a double sip error to happen, much like what you guys are talking about.

There often was also a problem between the standalone version vs. the included version within the Mantis files. I've decided to get rid of the standalone's, instead just having an all-included package. In the future, standalone's will be placed on the website for modules that aren't going to be included within the curing system, such as auto-pipe fillers, auto-influence systems, etc... Stuff you would normally pay extra for on another system.

I would advise everyone now who is using Mantis to delete the Curing System, Autosipper, and GUI folders, and reinstall the Mantis.zip files from the website. I updated the software for bug fixes and the like, and should HOPEFULLY be working properly like I wanted! From now on, also, all files in Mantis will be in a master folder titled "Mantis", which will help quicken the upgrading process.

Sorry everyone for all of these inconveniences! For future references, all bug reports should be submitted on Launchpad (launchpad.net/mantissystem). I'll be better able to track and fix problems there, because all bug reports are sent to my email, which are forwarded to my phone, so I'll be able to better respond to problems! Plus, I like the fact that I get email alerts on my phone. It makes me feel "businessy" cool.gif