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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Jezuit
Beginner


Joined: 02 Nov 2002
Posts: 27
Location: USA

PostPosted: Sat Feb 22, 2003 3:28 am   

#EXECUTE command
 
I'm using a simple script... I need it to create a few triggers. The only problem is that when it executes the triggers, it sends it to the mud instead of acting as if I had typed them in manually myself. For instance:



#IF (%1 = "") {} {
#CLASS {Chat Capture|%1}
#EXECUTE {%concat( "#TRIGGER {~~(CHAT~~) '", %1, "} {#CAPTURE (1) RolePlay}")}
#EXECUTE {%concat( "#TRIGGER {~~(CHAT~~) ", %1, "} {#CAPTURE (1) RolePlay}")}
#CLASS 0
#IF (@rpers) {#YESNO {RPers already exists. Delete it now?} {
rpd
#ADDITEM rpers {%1}
} {#ADDITEM rpers %1}} {#ADDITEM rpers %1}
}


Sends #TRIGGER {~~(CHAT~~) '<whatever %1 was>} {#CAPTURE etc.

How can I make it send to the client instead of sending to the mud I'm playing on?
Jez
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Feb 22, 2003 5:23 am   
 
Replace
#EXECUTE {%concat( "#TRIGGER {~~(CHAT~~) '", %1, "} {#CAPTURE (1) RolePlay}")}
with
#TRIGGER {~(CHAT~) '%1, } {#CAPTURE (1) RolePlay}

LightBulb
Advanced Member
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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