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
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Thu Oct 27, 2005 8:59 am   

Variable into Copy Memory?
 
Hi,

#MATH 3+3

how can i make the above output go into Copy memory so i can just Paste later?

Confused Mage
Reply with quote
Insomniac
Wanderer


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Thu Oct 27, 2005 11:59 am   
 
The command is %clip

#ALIAS Test {#MATH TestVariable 3+3;#NOOP %clip( @TestVariable)}
_________________

No-one ever gets flamed for posting too much information. Conform to the PPP (Preferred Posting Protocol) and give as much information as possible, including MUD output where needed.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Oct 27, 2005 2:25 pm   
 
You could also do #NOOP %clip( %eval ( 3 + 3) )
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Oct 27, 2005 5:13 pm   
 
Also keep in mind that the #CALL command is the newer replacement for #NOOP. Using #CALL instead of #NOOP will give your scripts greater compatibility with future versions.
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