Shattered Kingdoms

Where Roleplay and Tactics Collide
VOTE NOW!
It is currently Thu Nov 14, 2024 8:51 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: CMud Question
PostPosted: Tue Jun 08, 2010 6:44 pm 
Offline
Mortal

Joined: Sun Oct 11, 2009 2:17 pm
Posts: 82
SK Character: Vusaria, Vakria, Valisera
How does one get the &1 stuff to work in CMud aliases?

Val


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jun 09, 2010 1:00 am 
Offline
Mortal

Joined: Fri Jan 17, 2003 5:21 pm
Posts: 1174
Location: Dänimarka
#alias {cbh} {cast 'burning hands' %1}

:edit: And multiple counts of %*'s are possible. Like #tr {(%w) beats (%w) over the head.} {applaud %1;fart %2} would respond to the mud output "Jvj beats Snuffles over the head." and consequently applaud me and fart on Snuffles.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jun 09, 2010 9:04 am 
Offline
Mortal

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 677
Location: The great white north
Additionally you can also use multiple variables in the form of:
Code:
#alias mm {cast 'magic missile' %*}
to be used as: "mm bob" to cast them at bob or "mm w bob" to cast them to the room west of you at bob. Of course you can also leave no variable to cast it on your current melee target.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Jun 19, 2010 1:43 pm 
Offline
Mortal

Joined: Sun Oct 11, 2009 2:17 pm
Posts: 82
SK Character: Vusaria, Vakria, Valisera
Quick followup...how do I add color...the normal codes don't seem to work.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Jun 19, 2010 3:28 pm 
Offline
Mortal

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 677
Location: The great white north
While I use zMud I think cMud has many of the same features. $ is probably a special character in scripts and you need to use the "~" (tilde) character to send a literal $ to the mud.

So it would
Code:
~$7This text is in light grey ~$Aand this text is in default.  And this is a Tilde ~~


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Jun 19, 2010 3:44 pm 
Offline
Mortal

Joined: Fri Apr 17, 2009 9:50 pm
Posts: 5522
Or is it that you want colors on local echoes rather than data you're sending to the MUD?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 37 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