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


Joined: 27 Apr 2005
Posts: 18

PostPosted: Tue Jun 28, 2005 4:19 am   

say output
 
I'm looking for a script which will take what I have highlighted and say the capture over several says.

For example: I highlight the following.

Object 'angel wings tarot darkwiz', Item type: ARMOR
Item is: GLOW HUM ORGANIC MAGIC ANTI-EVIL ANTI-NEUTRAL ANTI-MAGE ANTI-THIEF
Weight: 15, Value: 50000, Rent cost: 150000 [RARE]
AC-apply is 12
Can affect you as :
Affects : HIT-N-DAM By 3
Affects : SPELL-AFFECT By FLYING
Affects : IMMUNITY By COLD ENERGY

I want the output to be
say Object 'angel wings tarot darkwiz', Item type: ARMOR
say Item is: GLOW HUM ORGANIC MAGIC ANTI-EVIL ANTI-NEUTRAL
say ANTI-MAGE ANTI-THIEF
say Weight: 15, Value: 50000, Rent cost: 150000 [RARE]
say AC-apply is 12
say Can affect you as :
say Affects : HIT-N-DAM By 3
say Affects : SPELL-AFFECT By FLYING
say Affects : IMMUNITY By COLD ENERGY

I find this helpful in identifying items for everyone in the group.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Tue Jun 28, 2005 5:36 am   
 
Tested this, it's worked for me. If you have any problems, let me know :)

#ALIAS sayhigh {#VARIABLE selected {%selected};#VARIABLE selected %replace( @selected, %char( 13)%char( 10), "|");#IF (%null( %item( @selected, 1))) {#DELNITEM selected 1};#IF (%null( %item( @selected, %numitems( @selected)))) {#DELNITEM selected %numitems( @selected)};#FORALL @selected {say "%i"}}
#VAR selected {}
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
dane
Beginner


Joined: 27 Apr 2005
Posts: 18

PostPosted: Tue Jun 28, 2005 6:04 am   
 
you rock!

Thanks man!
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