Battle Condenser |
Post Reply ![]() |
Page <123 |
Author | |||||||||||||||||||||||||||||||||||||||||||||
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 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
![]() Gray bar is tick timer, purple bar is xp progress.
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
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 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
Feel free to improve it, but I made the damage specific because a more general form would catch undesirable strings.
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
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 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
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?
|
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
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 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
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 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
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 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
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. |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
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 |
![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||
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 |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
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 |