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


Joined: 26 Jun 2007
Posts: 12

PostPosted: Thu Jul 04, 2013 6:44 pm   

clear clipboard?
 
is there a command to clear the clipboard say from a trigger?


thanx =)
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Thu Jul 04, 2013 8:40 pm   
 
Sure, with the %clip function.
Reply with quote
nazzireth
Beginner


Joined: 26 Jun 2007
Posts: 12

PostPosted: Thu Jul 04, 2013 9:27 pm   
 
What i need is a way to clear the clipboard target to nothing. example :

I have MAN on my clipboard.

i have a #var cliptarget (%clip)

i cast harm @cliptarget (with a macro)

i kill him

a WOMAN attacks me

I hit my harm macro it does cast harm MAN

I need it to trigger a %clip clear or remove %clip when MAN dies
just not sure if cmud has the power to remove the clipboard lol
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Fri Jul 05, 2013 6:48 pm   
 
Did you read the documentation for %clip? You set the clipboard with %clip("string"). To clear it, just set it to an empty string, like this:
Code:
#CALL %clip("")
Reply with quote
nazzireth
Beginner


Joined: 26 Jun 2007
Posts: 12

PostPosted: Sat Jul 06, 2013 4:40 am   
 
Awesome thank you it worked great!!
I did read the %clip in help but I have only been using Cmud for a week or so and have no idea with coding lol, Thanx so much again =)
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