Shattered Kingdoms https://shatteredkingdoms.com/forums/ |
|
CMud Question https://shatteredkingdoms.com/forums/viewtopic.php?f=42&t=20328 |
Page 1 of 1 |
Author: | Dalibura [ Tue Jun 08, 2010 6:44 pm ] |
Post subject: | CMud Question |
How does one get the &1 stuff to work in CMud aliases? Val |
Author: | JeanValjean [ Wed Jun 09, 2010 1:00 am ] |
Post subject: | |
#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. |
Author: | Rennus_Dragonsbane [ Wed Jun 09, 2010 9:04 am ] |
Post subject: | |
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.
|
Author: | Dalibura [ Sat Jun 19, 2010 1:43 pm ] |
Post subject: | |
Quick followup...how do I add color...the normal codes don't seem to work. |
Author: | Rennus_Dragonsbane [ Sat Jun 19, 2010 3:28 pm ] |
Post subject: | |
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 ~~
|
Author: | grep [ Sat Jun 19, 2010 3:44 pm ] |
Post subject: | |
Or is it that you want colors on local echoes rather than data you're sending to the MUD? |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |