Treant Combat System

by Unknown

Back to Mechanic's Corner.

Unknown2009-01-13 16:03:54
Ummmm nevermind, hey lookit the bird over there!
Unknown2009-01-13 16:25:49
Uh huh. I thought so. wink.gif
Unknown2009-01-13 17:01:06
I do have two questions, I could probably work them out with non exact answers but a where to start would help.

I tried looking for the sipping levels but not sure which one to look in, thought I saw it answered in a previous post but I can't find it again. Secondly where would I go to change the defence speed from drinking quicksilver to adrenaline? I think I found speed but changing it doesn't seem as easy as it did on zmud.

Closed down without saving, reloaded the world and worked fine, must have changed something while searching through stuff
Unknown2009-01-13 17:06:14
QUOTE (Kidchex @ Jan 13 2009, 12:01 PM) <{POST_SNAPBACK}>
I tried looking for the sipping levels but not sure which one to look in, thought I saw it answered in a previous post but I can't find it again.


treant_install.txt

QUOTE (Kidchex @ Jan 13 2009, 12:01 PM) <{POST_SNAPBACK}>
Secondly where would I go to change the defence speed from drinking quicksilver to adrenaline? I think I found speed but changing it doesn't seem as easy as it did on zmud.


Short answer: treant_install.txt (the my_defup stuff)
Won't affect re-deffing speed, though, as adrenaline has different uses and restrictions (and it's not coded into the system). If you don't have quicksilver, get some!

QUOTE (Kidchex @ Jan 13 2009, 12:01 PM) <{POST_SNAPBACK}>
Um actually one more problem I just logged in and got this

Run-time error
World: Treant
Immediate execution
:1: attempt to index global 'prompt' (a nil value)
stack traceback:
:1: in main chunk


Means you didn't load the Treant scripts properly. Try again?
Unknown2009-01-16 17:04:26
I installed treant on a alt did everything, script initializes I get everything but the gui isn't updating. It's showing my max health mana and ego but it is not showing my current. I set this one up exactly as I did the first character. I usually miss the small obvious things but nothing comes to mind for non-current health even if max health is set
Unknown2009-01-16 17:05:40
QUOTE (Kidchex @ Jan 16 2009, 12:04 PM) <{POST_SNAPBACK}>
I installed treant on a alt did everything, script initializes I get everything but the gui isn't updating. It's showing my max health mana and ego but it is not showing my current. I set this one up exactly as I did the first character. I usually miss the small obvious things but nothing comes to mind for non-current health even if max health is set


What's your prompt look like then? (Hint: try DEBUG ON to see if the OnPrompt event is even firing.)
Unknown2009-01-16 17:15:32
Closed down mushclient restarted it and now everything works perfect. I've got the most tempermental hamster in my outdated computer
Xavius2009-01-17 06:59:23
The file is titled 112.zip. The revision history says 1.13 is the most recent. Is what's posted at http://larkin.dischai.googlepages.com/treant_mush_112.zip the most up-to-date?
Rika2009-01-17 07:14:52
Yes. He hasn't released 1.13 yet. He updates the version history as he goes, but he waits until he thinks there have been enough changes to justify a new version before he releases them.
Unknown2009-01-17 12:44:50
Rika is correct. I post the changes as I make them so that people have a place to see what I'm working on (and hopefully will avoid sending me duplicate reports for things that have already been added/fixed).
Unknown2009-01-17 16:22:04
That health sipping bug that you fixed, did blackout sometimes cause it?
Unknown2009-01-17 16:34:15
QUOTE (Enigma @ Jan 17 2009, 11:22 AM) <{POST_SNAPBACK}>
That health sipping bug that you fixed, did blackout sometimes cause it?


If you mean the health applying bug, it really had nothing to do with blackout.
Unknown2009-01-18 06:25:00
Opps ignore I have it
Unknown2009-01-18 14:30:38
I looked through the last few pages of this thread, and did not find it anywhere, so pardon if this has been asked.

How do you change the healing thresholds? I looked at the template, and copied it to a new lua file.

Lets say I want to start sipping bromide only when my ego is at 30%. I have this lua file named autoheal:
CODE
-- = function (max) return max * 0.25 end,
   = function (max) return max * 0.25 end,
   = function (max) return max * 0.70 end,

--   = function (max) return max * 0.19 end
}

my_sparkle = {
   = function (max) return max * 0.20 end,
   = function (max) return max * 0.20 end,
   = function (max) return max * 0.20 end,

   = function (max) return max * 0.13 end,
}

my_scroll = {
   = function (max) return max * 0.23 end,
   = function (max) return max * 0.23 end,
   = function (max) return max * 0.23 end,

--   = function (max) return max * 0.10 end
}
--]]

return autoheal


I put the 'require "autoheal" command in my script file. I even tried placing it in my script file. Didn't work either. Did I miss something?
Unknown2009-01-18 14:32:58
A. That's not a module, so require won't work the same for this as it does for my stuff.
B. You don't need to make a module for this. Just put that above your 'require "treant"' line, so it's there before the system is initialized.
Unknown2009-01-18 14:37:17
Ok, so I pasted everything into my script file, above the 'require "treant"' line, and recompiled the script. However, I still sip at 75%.
Unknown2009-01-18 14:39:28
You'll sip health and mana at 75%, by those numbers you're using. The values are the amount of each you LOSE before you sip.
Esano2009-01-18 14:39:37
Chop off the ] and such. You've commented it all, so it doesn't actually get used.
Unknown2009-01-18 14:40:38
QUOTE (Esano @ Jan 18 2009, 09:39 AM) <{POST_SNAPBACK}>
Chop off the ] and such. You've commented it all, so it doesn't actually get used.


Heh. That, too! Nice catch there.
Unknown2009-01-18 14:41:17
Ah, so that's the problem.