Battle Condenser |
Post Reply ![]() |
Page 123> |
Author | |||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() Posted: 10 March 2012 at 1:00am |
||||||||||||||||||||||||||||||||||||||||||||
Steps to install: 1. In the Triggers tab, add a new group called Battle Condenser Script, and leave it empty. In this Triggers tab, add the following items and input the following information: a. name: Battle Damage Analyzer regex field 0:
regex field 1:
(Don't forget to set both pulldown menus to perl regex) Then add the following script to the main field:
Edited by gnome power - 10 March 2012 at 11:36pm |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
b. Add item name: Enemy Battle Evasion Counter regex 0 (remember to set everything to "perl regex" pulldown menu option):
regex 1:
regex 2:
(note: this doesn't count danger senses currently. The echos don't allow you to know who the attacker is, so I'm not sure how to deal with that. Suggestions are welcome.) main script:
c. New item name: My Battle Evasion Counter perl regex 0:
perl regex 1:
perl regex 2:
perl regex 3:
main field:
d. new item: name: Lightning Flag Counter regex 0:
(Note: I haven't added the regex for getting hit by lightning flag or several other flags. If you provide these echos to me I can add them.) main field:
e. new item name: flaming flag counter perl regex 0:
f. new item name: hp vamp flag counter perl regex 0:
perl regex 1:
main field:
g. new item name: Mana Vamp Flag Counter perl regex 0:
perl regex 1:
main field:
h. new item name: stun flag counter perl regex 0:
(note: This script is specifically designed not to gag the stun echo)
i. new item name: Freeze Flag Counter perl regex 0:
main field:
j. new item name: condition tracker perl regex 0:
perl regex 1:
perl regex 2:
perl regex 3:
perl regex 4:
perl regex 5:
perl regex 6:
perl regex 7:
main field:
k. new item name: Combat Text Gag perl regex 0:
perl regex 1:
perl regex 2:
perl regex 3:
perl regex 4:
perl regex 5:
perl regex 6:
perl regex 7:
perl regex 8:
perl regex 9:
perl regex 10:
perl regex 11:
perl regex 12:
main script:
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
2. In triggers tab, Add Group and call it Prompt. In this folder, a. create new item name: Parse Prompt perl regex 0:
main script:
b. Add Item name: Level Up perl regex 0:
main script:
c. Add item name: Set My Level perl regex 0:
main script:
3. In "Scripts" tab, Add New Group called Battle Condenser. In this folder, paste this to main script field:
4. In Scripts tab, add new group called Tick Timer. Paste to main script field:
5. In Scripts tab, add new group called Create Gauge Bars. Paste to main script field:
(note: you can change the coordinates of create_hp_bar, create_mana_bar, and create_end_bar in function refreshStatBars() in order to put them on different pixels on your screen.) 6. in Scripts tab, add new group named Math, and paste this into main script field:
7. in Scripts tab, add new group named onConnect, and paste this into main script field (NOTE: IF you already have an onConnect function from different code floating around this forum, you don't want to duplicat ethat function. Instead, just add the functions in here that you don't have already to your existing onConnect function)
(NOTE2: you can change the position of tick bar and xp bar by adjusting the coordinates in the create_tick_bar(x,y) and create_xp_bar(x,y) functions respectively. Also, you can adjust the position and size of the battle spam miniconsole by adjusting the numbers in that function) ---- And then you're done! Any questions and suggestions for future design adjustments are welcome. |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Jeckyl ![]() Sergeant First Class ![]() ![]() Joined: 24 August 2011 Location: MN Status: Offline Points: 2503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
Where is a good source to learn this from scratch? :p
|
|||||||||||||||||||||||||||||||||||||||||||||
<-- This is what happens when you try to pk with the Illuminati.
-- If we changed everything that everyone whined about, DSL would be a kitten paradise and there would be minutely copyovers. -Bioteq |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
I only just learned Lua over the weekend. Just scoured google until stuff made sense. Asked a couple questions in the Mudlet forums.
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Jeckyl ![]() Sergeant First Class ![]() ![]() Joined: 24 August 2011 Location: MN Status: Offline Points: 2503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
import/export functionality == much easier. :p
I got it up, going to go through the code and figure it out (if I can). Thanks!
|
|||||||||||||||||||||||||||||||||||||||||||||
<-- This is what happens when you try to pk with the Illuminati.
-- If we changed everything that everyone whined about, DSL would be a kitten paradise and there would be minutely copyovers. -Bioteq |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
Cool, if you have any questions let me know.
I didn't do the export because I had trouble installing other people's xml files when I first got mudlet. Is there a trick to it?
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Ashtai ![]() First Sergeant ![]() ![]() Joined: 23 September 2011 Status: Offline Points: 7336 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
Is there a reason you formatted your regular expressions like that?
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
Feel free to improve it, but I made the damage specific because a more general form would catch undesirable strings.
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Drax ![]() Sergeant ![]() ![]() Joined: 27 June 2003 Location: Canada Status: Offline Points: 808 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
This topic would be improved tremendously by pictures of the script in action!
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
![]() Gray bar is tick timer, purple bar is xp progress.
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Drax ![]() Sergeant ![]() ![]() Joined: 27 June 2003 Location: Canada Status: Offline Points: 808 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
That's seriously nifty, GP. Innovative and very nicely put together, by the looks of it.
![]() I'm assuming the hp, mana and xp bars update with each new prompt. How often does the bar for the tick timer update?
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
Thanks, Drax. :) The tick-timer counts down automatically in increments of 0.1 seconds.
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Hedmric ![]() Private ![]() ![]() Joined: 29 January 2012 Location: Ontario, Canada Status: Offline Points: 55 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
I have the ubuntu/linux version of mudlet. It should work the same eh?
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Ardath ![]() Corporal ![]() ![]() Joined: 14 November 2009 Status: Offline Points: 373 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
I'm not about to put my battles off to the side like that, and I made a similar health thing that is smaller... there must be a better way to send this to someone than posting 7 pages of Lua? My capture windows aren't tabbed - theres just 1 for channels, 1 for tell/gtells below it. No need to ever fiddle with it ever again unless you want to scroll up or resize the windows - those tabs got in the way when I used that script. Good luck using Mudlet, the input bar is not as usable for some features as the CMud one.
Edited by Ardath - 16 March 2012 at 10:45am |
|||||||||||||||||||||||||||||||||||||||||||||
It is easier for people to read your logs if you would end your prompt with "%c"
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
I've got some ideas for the tabs down the line. Might want to put a character sheet in one, a control panel for my scripts (when they get more complicated and need on/off toggles) in another, etc. The combat spam was actually a requested feature because people were saying they needed to see the flow of spam to get a sense of if they just got ambushed or something. I like it there, personally, but to each his own. I can make it togglable if there's interest in that.
There's an xml exporter but when I tried using others posted here, they didn't work, so that's why I did it this way. If someone knows the secret to getting xml files off these forums to work, that would be great.
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Jeckyl ![]() Sergeant First Class ![]() ![]() Joined: 24 August 2011 Location: MN Status: Offline Points: 2503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
Try doing an export, and host the resulting file somewhere, and provide a link to the file(s) for download. Might be easier? If you need a place to host, I can take care of that. At the very least, we can figure out how it works, and if its feasible.
|
|||||||||||||||||||||||||||||||||||||||||||||
<-- This is what happens when you try to pk with the Illuminati.
-- If we changed everything that everyone whined about, DSL would be a kitten paradise and there would be minutely copyovers. -Bioteq |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
gnome power ![]() Sergeant Major ![]() ![]() Fear my graphs! Joined: 02 July 2003 Location: United States Status: Offline Points: 14503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
Yeah, that's doable. Github?
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Jeckyl ![]() Sergeant First Class ![]() ![]() Joined: 24 August 2011 Location: MN Status: Offline Points: 2503 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
Sure, if that's where you want to put it. I have my own hosting account, and wouldn't mind hosting it there...I've been thinking about setting up a subdomain and site for dsl related stuffs. Either way works for me. I'll reset my mudlet stuff this weekend, and try to import it if you can export it.
|
|||||||||||||||||||||||||||||||||||||||||||||
<-- This is what happens when you try to pk with the Illuminati.
-- If we changed everything that everyone whined about, DSL would be a kitten paradise and there would be minutely copyovers. -Bioteq |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
Hedmric ![]() Private ![]() ![]() Joined: 29 January 2012 Location: Ontario, Canada Status: Offline Points: 55 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
I've copy and pasted everything you had here as per the instructions, but i'm not seeing any text. My gauges are up, showing all my info and the tick timer is working...I just can't see anything..
What am I doing wrong? Is there something else I have to do to get my windows sized correctly?
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
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 |