Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Tue Dec 13, 2011 8:37 pm   

GAG
 
I have an alias ht = hp;l @target

i have a trigger set for : "you hit" triggers ht

id like to gag the ht alias commands being inputted


i also would like to run a trigger for
56 gold coins

I would like to exclude the trigger if there is a period at the end
56 gold coins.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Tue Dec 13, 2011 9:00 pm   
 
in that form, i think you would but #GAG as the first line of your alias

Also, under preferances, in the scripting section, you can turn of your commands echoing to the game window entirely
_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Dec 14, 2011 2:06 am   
 
For the second question, is there anything else that can come after it, or is that the end of the line? If it's the former, you will need to show us some example lines and provide better details. For the latter, you can use the $ to represent the end of the line (^ works the same way for the beginning of the line, if you were curious).
_________________
EDIT: I didn't like my old signature
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Wed Dec 14, 2011 4:52 am   
 
gold listed in my inventory has a period on the end.
gold on the ground has no period

I would just like to pop and gag a trigger to get coin when its on the ground...

i dont want it to randomly pop when l in my inventory or other inventory...

so in pattern: I do something like

^* gold coins$

and value:

#gag
get coin

????
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Dec 14, 2011 5:19 am   
 
If you don't want to see the commands but also don't want to turn off command echo for all commands, check out the #SENDRAW command.

As for the coin trigger pattern, * will match on any printable character generateable by your keyboard. To match on just numbers, use %d (and read pattern matching help for more options).
_________________
EDIT: I didn't like my old signature
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sat Dec 17, 2011 1:05 am   
 
If you don't want the alias command to echo to the session window, do as follows:
Code:

#CALL %pref( EchoCom, 0) // turn command echo off.
...
#CALL %pref( EchoCom, 1) // turn command echo on.

EDIT: Sorry, Shalimar, I didn't see your post.
_________________
Sic itur ad astra.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net