Battle Condenser |
Post Reply ![]() |
Page <123> |
Author | |
Hedmric ![]() Private ![]() ![]() Joined: 29 January 2012 Location: Ontario, Canada Status: Offline Points: 55 |
![]() ![]() ![]() ![]() ![]() |
These are the errors:
[ERROR:] object:<WindowResizeEvent> function:<handleWindowResizeEvent> <attempt to call a nil value> [ERROR:] object:<> function:<onConnect> <[string "function onConnect()..."]:9: attempt to perform arithmetic on global 'global_chatWidth' (a nil value)> [ERROR:] object:<Battle Damage Analyzer> function:<Trigger8> <[string "function Trigger8()..."]:25: bad argument #1 to 'match' (string expected, got nil)> |
|
![]() |
|
Hedmric ![]() Private ![]() ![]() Joined: 29 January 2012 Location: Ontario, Canada Status: Offline Points: 55 |
![]() ![]() ![]() ![]() ![]() |
well, i've got the battle text working, and I can see stuff. This is pretty awesome so far!!
|
|
![]() |
|
RayFinkle ![]() Staff Sergeant ![]() ![]() Joined: 03 June 2010 Status: Offline Points: 1057 |
![]() ![]() ![]() ![]() ![]() |
Could you start working on a drunk to common translator?
|
|
![]() |
|
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
I'm glad you like it. :) Are you still having any issues or is everything working fine?
|
|
![]() |
|
Ashass ![]() Sergeant ![]() ![]() Joined: 23 August 2007 Location: United States Status: Offline Points: 667 |
![]() ![]() ![]() ![]() ![]() |
#1 thing to help make this script better (and run faster, high likelyhood) is consider which components go together, and move those off into functions. That way the entire thing doesn't need to parse, and you can more easily share parts of the code without having a giant blob.
Granted, I know you're just sharing as-is, but you'll do yourself a favor later if you ever want to modify the script by moving things out into functions. |
|
![]() |
|
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
Yeah, that's a good point.
I'm not a very experienced programmer, so I didn't think of it earlier. Thanks.
|
|
![]() |
|
sifaka ![]() Private ![]() ![]() Joined: 23 January 2012 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
Wow, this is great! I have the hp/mana/mv bars and the main console working properly, but I don't have the mini console, or the tick timer. I'm brand new to Lua, is createConsole a user defined function? I notice onConnect calls it, but I don't see it anywhere else in the text. Any advice is much appreciated!
|
|
![]() |
|
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
createConsole is part of the native mudlet platform. Do you have the most updated version of mudlet? It should be the program called Mudlet-2.0-test4.
One thing you may need to do is change the position of the miniconsole. I have it set for my screen, but I find that if I change my window dimensions at all it messes up my positioning. Depending on how different your window dimensions are from mine, your miniConsole may be appearing off your monitor altogether. The way to test what dimensions you want is to make an alias that creates a miniConsole (make sure to print some text in it or you may not see it), and then fiddle with the dimensions until you can see it appear on your screen.
For the tick timer, did you change your prompt to exactly the specified format? And, glad you like it! :D Welcome aboard. |
|
![]() |
|
sifaka ![]() Private ![]() ![]() Joined: 23 January 2012 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
Updating to 2.0-test4 fixed everything. Thanks!
|
|
![]() |
|
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
Okay cool.
By the way, if you get a chance, check out what the script does while you battlerage. It's pretty neat, imo. :)
|
|
![]() |
|
jharel ![]() Sergeant First Class ![]() ![]() Joined: 16 April 2005 Status: Offline Points: 1792 |
![]() ![]() ![]() ![]() ![]() |
I want this for Cmud.. :(
|
|
![]() |
|
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
Convince one of the Cmud guys to write a dang Lua wrapper and it can happen.
Otherwise, just download Mudlet. It exists for most OSes.
|
|
![]() |
|
jharel ![]() Sergeant First Class ![]() ![]() Joined: 16 April 2005 Status: Offline Points: 1792 |
![]() ![]() ![]() ![]() ![]() |
Too true! Downloaded a mudlet client for Win 7, a bit sluggish (or I am just not used to the format). This is a brilliant script though, congrats.
|
|
![]() |
|
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
Awesome. :)
I don't know about the slow-ness, it seems to work pretty well for me. But I'm on a different OS so maybe it's not as good on Windows.
|
|
![]() |
|
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
edit: Nevermind, was going to suggest another script but forgot I already included it into the current script.
Edited by gnome power - 16 November 2012 at 9:35am |
|
![]() |
|
Ericka ![]() Master Sergeant ![]() Joined: 07 February 2007 Location: Sacramento, CA Status: Offline Points: 3207 |
![]() ![]() ![]() ![]() ![]() |
Question for gnome and others: What's the best way to configure Mudlet for multiple characters that use different trigs/alises? I'm guessing I should just make different alias/trig folders for each char and enable/disable them as needed.
That's one thing I definitely miss about Atlantis. The World:Character structure was really easy to use.
|
|
Aeltor OOC: 'if you werent sboosted phonivia id tear your a few new holes as a
monk' |
|
![]() |
|
Jor'Mox ![]() First Sergeant ![]() ![]() Joined: 29 July 2004 Status: Offline Points: 8575 |
![]() ![]() ![]() ![]() ![]() |
You could do that, or you could set up your triggers/aliases to check a variable that stores your character name/class and act accordingly.
|
|
No price is too high to pay for the privilege of owning yourself. - Friedrich Nietzsche
|
|
![]() |
|
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
My guess is it would be pretty easy to do, just based on the fact that I already use a prompt that states the character name. Can just make a library of names you want each trigger to function for, and have it check if the current alt is on that list at the beginning of the trigger.
|
|
![]() |
|
Elathan ![]() Corporal ![]() ![]() Joined: 23 July 2012 Status: Offline Points: 226 |
![]() ![]() ![]() ![]() ![]() |
As far as the prompt goes. My current prompt has color in it and has which room I'm in named in the prompt. Is there a way to add that to the prompt you need for this script to work?
|
|
![]() |
|
Elathan ![]() Corporal ![]() ![]() Joined: 23 July 2012 Status: Offline Points: 226 |
![]() ![]() ![]() ![]() ![]() |
This is my current prompt by the way:
prompt {W({x%h{W/{x%Hhp %m{W/{x%Mm %v{W/{x%Vmv{W){W-{C%e{W-{x%c{w({c%r{w|{y%S{w){R({W%d{R){c%t{W>{x%c |
|
![]() |
Post Reply ![]() |
Page <123> |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |