Shattered Kingdoms

Where Roleplay and Tactics Collide
VOTE NOW!
It is currently Sun Nov 24, 2024 3:43 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Pulling the trigger
PostPosted: Thu Jul 31, 2008 11:29 pm 
Offline
Mortal

Joined: Sat Apr 12, 2008 12:46 am
Posts: 54
I was wondering if any of those that use zMUD, and triggers, could enlighten me.

I am trying to get my triggers to use wild cards.

Example:
Benji the Brave bashes Navel the Newb and sends him sprawling!

Instead of my current trigger: "BASHED!!!"
I would like: "Benji the Brave BASHED Navel the Newb"

I know I could look at the line RIGHT above BASHED and see what happened, but I would rather see it in that nice pretty ECHO blue instead of some of the darker colors my old eyes have trouble reading.

I tried using some of the wild card code I found in zMUD help files, but my different combination do not seem to be working.

PS: This example above was based solely on fictional characters and has no connection to any characters in game, or any opinions I might have on such characters if they existed.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jul 31, 2008 11:54 pm 
Offline
Mortal

Joined: Wed Jun 18, 2008 1:10 am
Posts: 141
Location: not TN anymore, with Nick, yay!
this should work....
Trigger-
%1 bashes %2 and sends him sprawling!

Value-
#echo %1 BASHES %2
------
I only had your example to work with.. but when tested it out looked like

Benji the Brave BASHES Navel the Newb

so i think that's what you're looking for, if the trigger string is different however, you should fix that before putting it in.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Aug 01, 2008 12:12 am 
Offline
Mortal

Joined: Sat Apr 12, 2008 12:46 am
Posts: 54
Ah. The wild cards are saved at the respected values then you can repeat them in the echos. I think I understand now.

Thanks! I will play around with that.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Aug 01, 2008 10:47 am 
Offline
Mortal

Joined: Sun Aug 08, 2004 4:58 pm
Posts: 946
Location: Tennessee
Ah nice post I've been trying to figure out this myself.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Aug 01, 2008 4:41 pm 
Offline
Mortal

Joined: Sat Apr 12, 2008 12:46 am
Posts: 54
Just wanted to confirm got it to work with the above advice. Thank again!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Aug 01, 2008 11:00 pm 
Offline
Mortal

Joined: Fri Jan 17, 2003 5:21 pm
Posts: 1174
Location: Dänimarka
Actually, if you want to be more specific with your input, I would use some of the custom variables (e.g. %w for a word * for anything) and encase them in () for the valuable to be captured, and then when you have to output, you simply use %1, %2 and they get spat out in the same order they got captured.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Aug 01, 2008 11:59 pm 
Offline
Mortal

Joined: Sat Apr 12, 2008 12:46 am
Posts: 54
JeanValjean wrote:
Actually, if you want to be more specific with your input, I would use some of the custom variables (e.g. %w for a word * for anything) and encase them in () for the valuable to be captured, and then when you have to output, you simply use %1, %2 and they get spat out in the same order they got captured.


I think I am confused again :(


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 02, 2008 12:29 pm 
Offline
Mortal

Joined: Wed Jun 18, 2008 1:10 am
Posts: 141
Location: not TN anymore, with Nick, yay!
LSDAnonymous wrote:
JeanValjean wrote:
Actually, if you want to be more specific with your input, I would use some of the custom variables (e.g. %w for a word * for anything) and encase them in () for the valuable to be captured, and then when you have to output, you simply use %1, %2 and they get spat out in the same order they got captured.


I think I am confused again :(


What he's saying, is that instead of using

Quote:
Trigger - %1 bashes %2 and sends him sprawling!

you could use
Quote:
%w bashes %w and sends him sprawling!

OR you could have used
Quote:
%* bashes %* and sends him sprawling!

There are actually TONS of things you could use so long as your output is the same
Quote:
#echo %1 BASHES %2


I just like using the ones that are easier to understand at first glance:)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 06, 2008 9:12 pm 
Offline
Mortal

Joined: Sat Apr 07, 2007 6:28 pm
Posts: 560
Location: Noir york city, New york
I use MUSHclient, are the commands the same that are for his triggers, that are for mine?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 06, 2008 9:18 pm 
I am almost positive that Peso is behind the now widespread knowledge about triggers.

Peso, for shame.


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 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:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group