Shattered Kingdoms

Where Roleplay and Tactics Collide
VOTE NOW!
It is currently Fri Mar 29, 2024 4:05 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Fri Nov 30, 2012 11:36 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
I ran into a few issues with this trigger, since the prompt format was conflicting with generic wild card matches for cabal and tribunal names. The trigger below should work until I can think of a more elegant workaround. If you find any bugs, let me know. Copy/paste on the command line in zMUD:

#TRIGGER {{~[HAMMER~]|~[DRUID~]|~[FIST~]|~[MIDNIGHT~]|~[HARLEQUIN~]|~[CRUCIBLE~]|~[PEACEKEEPER~]|~[HAND~]|~[GUARDIAN~]|~[TALON~]} %*: %*} {#CAPTURE "Chat"} "Chat Catcher"


Top
 Profile  
Reply with quote  
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Sat Dec 01, 2012 1:41 pm 
Offline
Mortal

Joined: Mon Jan 02, 2006 7:47 pm
Posts: 3776
Location: Virginia
SK Character: Amorette
finney I see you posting and I hope you have a character. :P


Top
 Profile  
Reply with quote  
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Sun Dec 30, 2012 11:38 am 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
Replaced the Combat.txt file with CombatEvents.txt. The new file has a scan alias, kill alias, an output message for faerie fire and I fixed a highlight/syntax error with pronouns - {his|her|its} - on failed bashes.

http://nothingxs.net/inbound/uploads/Combat%20Events.txt

EDIT - I also uploaded a new master file that includes the changes to the CombatEvents.txt file and edited the URLs on the first page.

http://nothingxs.net/inbound/uploads/SK.txt

FYI - the old files are still available, if you want the previous versions for whatever reason.


EDIT2 - Scan alias and kill alias below for those that messaged me on YIM.

#ALIAS scan {
look north
look northeast
look east
look southeast
look south
look southwest
look west
look northwest
}
#ALIAS k {kill}

EDIT3 - Yes, it is possible to have scan only check available/visible exits, but it will take a bit of work. I'll add that to my to-do list for the next version of Combat Events.


Top
 Profile  
Reply with quote  
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Fri Jan 04, 2013 5:09 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
Removed scan and kill from the combat class to make it easy for people to delete/change those - especially if you prefer to use "h" to initiate combat instead of "k". Updated the URL on the original post.

Still working on scan to only check for available/visible exits.

http://nothingxs.net/inbound/uploads/SK_Master2.txt


Top
 Profile  
Reply with quote  
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Sun Jan 13, 2013 3:56 pm 
Offline
Mortal

Joined: Sun Jun 10, 2012 2:26 pm
Posts: 156
Recently updated my CMUD with the new set of triggers, and I seem to be having a problem.

Whenever it prints the >>>>>>> %1 BASHED %2 <<<<<<<< (or disarmed, tripped, whatever), it prints it exactly like that, without the %1 being replaced by the NPC in question.

Code:
Your flaming bite starts a dwarven gladiator's chest on fire.
A dwarven gladiator slams into you and sends you sprawling!
>>>>>>> %1 BASHED %2 <<<<<<<
Your armor protects you from the physical affects of a dwarven gladiator's bash.


Top
 Profile  
Reply with quote  
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Sun Jan 13, 2013 9:58 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
Montarion wrote:
Recently updated my CMUD with the new set of triggers, and I seem to be having a problem.

Whenever it prints the >>>>>>> %1 BASHED %2 <<<<<<<< (or disarmed, tripped, whatever), it prints it exactly like that, without the %1 being replaced by the NPC in question.

Code:
Your flaming bite starts a dwarven gladiator's chest on fire.
A dwarven gladiator slams into you and sends you sprawling!
>>>>>>> %1 BASHED %2 <<<<<<<
Your armor protects you from the physical affects of a dwarven gladiator's bash.


I don't use cMUD, so I probably won't be much help. All of my triggers, aliases, etc. are written in zMUD 7.21 and while it usually transfers seamlessly to cMUD there will be an occasional hiccup. Frankly, I don't purchase and/or use cMUD on principle. I have a real problem with Zugg abandoning zMUD and discontinuing all support, and then forcing people that purchased zMUD to purchase yet another license for cMUD. In reality, cMUD is just zMUD version 8.xx that he forced people to buy another license to use.

Your character getting bashed and third parties bashing/getting bashed are separate triggers. I am not sure why cMUD is interpreting the third party version of the bash trigger when your character is the bash target.

Cut/paste your stuff from the Combat Events class in cMUD and I will take a look.


Top
 Profile  
Reply with quote  
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Sun Jan 13, 2013 11:15 pm 
Offline
Mortal

Joined: Sun Jun 10, 2012 2:26 pm
Posts: 156
Code:
%1 bash misses and {he|she|it} falls flat on {his|her|its} face.
#SAY ">>>>>>> MISSED BASH <<<<<<<";#CO 11,under
__________________
%1 slams into %2 and sends %2 sprawling!
#SAY ">>>>>>> %1 BASHED %2 <<<<<<<";#CO 11,under
___________________
%1 slams into you and sends you sprawling!
#SAY ">>>>>>> BASHED <<<<<<<";#CO 11,under

Those are the lines in the 'Wizard'.

This is the XML
Code:
<trigger priority="3190" id="319">
  <pattern>%1 slams into %2 and sends %2 sprawling!</pattern>
  <value><![CDATA[#SAY ">>>>>>> %1 BASHED %2 <<<<<<<";#CO 11,under]]></value>
</trigger>

Its an issue with the trip trigger, too, at least when its the third party version. I think the reason its interpreting the third party version of the bash trigger (and probably the same reason I can't seem to find a separate version in your master file) is because the syntax "slams into you/target and sends you/target sprawling!" is the same in either case, which is not the case with trip.

Code:
A dwarven gladiator slams into a sprite slave and sends him sprawling!
>>>>>>> %1 BASHED %2 <<<<<<<
A dwarven gladiator's bash knocks the wind out of a sprite slave.


I copied your format and added my own trigger specifically for being bashed and it gave me this:
Code:
You miss a dwarven gladiator.
A dwarven gladiator slams into you and sends you sprawling!
>>>>>>> %1 BASHED %2 <<<<<<<
>>>>>>> BASHED <<<<<<<
Your armor protects you from the physical affects of a dwarven gladiator's bash.


Code:
A filthy human miner trips a half-elven competitor sending him to the ground.
>>>>>>> %1 TRIPPED %2 <<<<<<<
A half-elven competitor is momentarily stunned as he hits the ground hard.

Here's the XML for the trip trigger.
Code:
<trigger priority="3250" id="325">
  <pattern>%1 trips %2 sending {him|her|it} to the ground.</pattern>
  <value><![CDATA[#SAY ">>>>>>> %1 TRIPPED %2 <<<<<<<";#CO 11,under]]></value>
</trigger>



I'm going to peruse the help files and see if I can't something about the differences between cMUD and zMUD.


Top
 Profile  
Reply with quote  
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Sun Jan 13, 2013 11:27 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
It looks like the trigger system in cMUD allows for priorities (similar to MUSHclient). You should be able to set the triggers for your character getting bashed to a higher priority than the trigger for third parties bashing/getting bashed.

Imagine that will solve the problem.

EDIT - FYI, the lower the number the higher the priority. So set the priority for your character getting bashed to a lower number than the trigger for third parties bashing/getting bashed.


Top
 Profile  
Reply with quote  
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Sun Jan 13, 2013 11:30 pm 
Offline
Mortal

Joined: Sun Jun 10, 2012 2:26 pm
Posts: 156
From the CMUD helpfile...

Code:
In fact, you need to be careful *not* to put %1..%99 within "" quotes because variable references are not expanded within quotes in CMUD.


I wonder if that is the issue?


Top
 Profile  
Reply with quote  
 Post subject: Re: Finney's Consolidated Downloads for zMUD and Mushclient
PostPosted: Sun Jan 13, 2013 11:36 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
Montarion wrote:
From the CMUD helpfile...

Code:
In fact, you need to be careful *not* to put %1..%99 within "" quotes because variable references are not expanded within quotes in CMUD.


I wonder if that is the issue?


It could be. Try this and see if it works:

#TRIGGER {%1 slams into %2 and sends %2 sprawling!} {#SAY ~>~>~>~>~>~>~> %1 BASHED %2 ~<~<~<~<~<~<~<;#CO 11,under}


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group