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
Noboyuki
Beginner


Joined: 27 Jul 2001
Posts: 17

PostPosted: Thu May 22, 2003 12:08 am   

megamogs backward talk script
 
#CLASS {forwardback}
#VAR new {}
#VAR new2 {}
#VAR newc {}
#TRIGGER {(%W) sc (*)} {#var new2 "";#var new %replace(%2," ","|");#var newc %numitems(@new);#loop @newc,1 {#addi new2 %item(@new,%i)};#var new2 %replace(@new2,"|"," ");%1 @new2}
#CLASS 0

It lets you "say sc anything you want"
say want you anything
get the idea?


My problem is this the script works fine except it also sends to the mud my orginal sentence with the sc in it. Is there anyone who can assist me in blocking out that portion of the script so it only sends the backwards sentence to the mud

Thanks in advance
Noboyuki
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Thu May 22, 2003 12:32 am   
 
Yep, the trigger should have been created with the #ONINPUT command. Since you have already created it go into the settings editor and change the trigger type to 'Input'.
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