Treant Combat System

by Unknown

Back to Mechanic's Corner.

Unknown2008-12-28 14:14:34
Normally, I dislike putting out new code so soon after the previous release, but there was a nasty little exception caused by a change I made to 1.11 and that's fixed in 1.12. Just to make it a little more worthwhile, I fixed a few other things I'd just found, too.
Shishi2008-12-29 04:12:19
edit: I figured out what was wrong. I changed the command stacking ; to something else (Because I couldn't smile with a wink while saying and it was bugging the crap out of me) And apparently it does something in the system?
Unknown2008-12-29 04:31:08
Actually, if you affix the command stacking symbol to the beginning of the command, such say ";say I'm the best wink.gif" it'll "deactivate" the command stacking for that command.

Edit: Actually, is there anyway to turn off trying to focus mind?
Shishi2008-12-29 05:11:04
QUOTE (Enigma @ Dec 28 2008, 09:31 PM) <{POST_SNAPBACK}>
Actually, if you affix the command stacking symbol to the beginning of the command, such say ";say I'm the best wink.gif" it'll "deactivate" the command stacking for that command.

Edit: Actually, is there anyway to turn off trying to focus mind?

thanks!

edite:
QUOTE (Zarquan @ Dec 26 2008, 06:15 PM) <{POST_SNAPBACK}>
P.S. The GUI module is now optional. You need to add 'require "gui"' after the 'require "treant"' line and a 'gui:Init()' after the 'treant:Init()'...

Are you going to add this piece of information to the website?
Unknown2008-12-29 12:29:17
I will put the GUI thing on the web site.

There is an easy way to disable any cure, but I'm not posting that here. Sorry.
Unknown2008-12-29 16:14:07
After searching for two seconds, I found it. Didn't quite know what I was looking for, I guess.

Edit: I've also noticed that it likes to randomly stop sipping. Just now, I cam out of blackout with health far in the yellow (well below my sip limit) and it wouldn't sip. I tried reseting the system completely. I ran the debug messages and the prompt was registering correctly. I eventually recompiled the whole script (Ctrl + Shift + R is my best friend) and it started sipping again. My only idea behind it is that there is a flag that doesn't get reset properly.

Oh, and with this bug, it tried to redo nightsight, even though I already had it up.
Unknown2008-12-31 03:32:00
the tips say the much is easy to learn, does it have any type of instruction tied to it?

Unknown2008-12-31 12:23:18
QUOTE (Enigma @ Dec 29 2008, 11:14 AM) <{POST_SNAPBACK}>
I've also noticed that it likes to randomly stop sipping. Just now, I cam out of blackout with health far in the yellow (well below my sip limit) and it wouldn't sip. I tried reseting the system completely. I ran the debug messages and the prompt was registering correctly. I eventually recompiled the whole script (Ctrl + Shift + R is my best friend) and it started sipping again. My only idea behind it is that there is a flag that doesn't get reset properly.

Oh, and with this bug, it tried to redo nightsight, even though I already had it up.


You can check the status of thing with aliases like FLAGS, BALS, AUTOS, etc to see if there's anything stuck. I did recently fix a bug or two with some failsafes, but I don't think any of them were affecting health sipping. Even when I would sometimes stop sipping fire (because the elixir flag wasn't being cleared properly), I would keep on sipping health just fine because it didn't use that same flag.

When you reset the system, you may want to re-sync your defenses with DEF right away. Still, resetting the whole thing is going to confuse it temporarily until it re-syncs everything. You should try resetting pieces of the system instead.


QUOTE (Shadow Aes @ Dec 30 2008, 10:32 PM) <{POST_SNAPBACK}>
the tips say the much is easy to learn, does it have any type of instruction tied to it?


Not sure what you're asking here.
Unknown2008-12-31 18:36:14
@Aes: Go to the Forums in the Help menu, or Shift + Ctrl + Alt + F, will take you to the forums where there is loads of help.

@Zarquan: That's just it though, when I used RESET, even after it re-synced everything, it wouldn't start sipping. I did check BALS to see if I had health balance, and I did. Next time it happens, I'll investigate more and then show you what I find.
Unknown2008-12-31 18:54:21
This may be a dumb question but, is it possible for me to move the health and mana and ego bar around? If so, how would I do it?
Unknown2009-01-01 06:32:26
QUOTE (Enigma @ Dec 31 2008, 07:36 PM) <{POST_SNAPBACK}>
@Aes: Go to the Forums in the Help menu, or Shift + Ctrl + Alt + F, will take you to the forums where there is loads of help.


I may have to do that. during my arena sparrs, when I got impaled in the leg i didn't writhe. and when I get knocked down i didn't stand back up. I have no idea how the codeing works
Unknown2009-01-01 07:18:20
Oh you need help with Treant? I thought you meant in general with MUSH.

You've done the "require "treant"" and "treant:Init()" lines in the script? And then in the main window, did /treant:Install()?
Unknown2009-01-01 07:22:07
QUOTE (Vecanamu @ Dec 31 2008, 01:54 PM) <{POST_SNAPBACK}>
This may be a dumb question but, is it possible for me to move the health and mana and ego bar around? If so, how would I do it?


If you want to go poking around, you should start in the gui.lua script file. I wouldn't really recommend rearranging it too much unless you really know what you're doing, but it's your choice to make.
Unknown2009-01-02 18:06:42
I figured it was either there or the InfoBox file. But thanks, I was just messing around with it.
Unknown2009-01-02 18:25:57
Um. Wow. I are computer stupid. I spent a few hours trying to set up defenses without anything resembling success and I clearly have no idea what I am doing. Afraid it is back to the zMUD for me.
Unknown2009-01-03 03:32:40
Hmm. Tried installing the version 1.12, but when I do /treant:Install(), this is what I get:


Run-time error
World: AlacardaelS1
Immediate execution
.\\treant.lua:104: Function 'io.input' disabled in Lua sandbox - see MUSHclient global preferences
stack traceback:
: in function 'error'
:39: in function 'input'
.\\treant.lua:104: in function 'Install'
:1: in main chunk


confused.gif
Esano2009-01-03 03:40:02
You missed this step:

Select "Global Preferences..." from the File menu and navigate over to the Lua tab. This is where MUSHclient sets up what's known as a sandbox, disabling certain functions for security reasons. Change the first line to allow all worlds to be trusted, thus enabling file I/O.

Unknown2009-01-03 03:40:22
You need to go to Global Setting, go to the Sandbox, find the line that says "io.input = false" and set it to true.

Edit: Esano's method is better.
Unknown2009-01-03 04:11:54
Thanks! smile.gif
Unknown2009-01-03 07:34:20
Sorry for the double, but I can't seem to be able to get the GUI to work. Here's what I get:



Run-time error
World: AlacardaelS1
Immediate execution
:66: attempt to call method 'Init' (a nil value)
stack traceback:
:66: in main chunk
Error context in script:
62 :
63 : require "treant"
64 : treant:Init()
65 : require "gui"
66*: gui:Init()