TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#echo and #macro

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
fleeting



Joined: 05 Feb 2011
Posts: 10

PostPosted: Sat Feb 26, 2011 5:16 am    Post subject: #echo and #macro Reply with quote

Hi,

I'm making a macro to check how many mobs are within an area and state the number afterwards. I can check the number of mobs however, #echo doesn't seem to work. Would appreciate your feedback. Below is my code:

Code:
#MACRO {gak!!}
{
   #var {gakcount} {0};
   #action {A gakrag jumps up and down as it senses a threat.} {#math {gakcount} {$gakcount + 1}};
   #action {A bull gakrag peers at you with angry red eyes and snorts!} {#math {gakcount} {$gakcount + 1}};
   se2sw4d3n6e12n12w12s6e3s4ue2nwn;
   #echo $gakcount;
}
Back to top
View user's profile Send private message
fleeting



Joined: 05 Feb 2011
Posts: 10

PostPosted: Sat Feb 26, 2011 5:27 am    Post subject: Reply with quote

I used the following and it works.

Code:
#MACRO {gak!!}
{
   #var {gakcount} {0};
   #action {A gakrag jumps up and down as it senses a threat.} {#math {gakcount} {$gakcount + 1}};
   #action {A bull gakrag peers at you with angry red eyes and snorts!} {#math {gakcount} {$gakcount + 1}};
   se2sw4d3n6e12n12w12s6e3s4ue2nwn;
   #delay {15} {#showme $gakcount};
}


But then again, I think this should be a minor revision, if it is.

Thanks for looking.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3844

PostPosted: Sat Feb 26, 2011 9:12 am    Post subject: Reply with quote

That's probably the easiest way to go about it.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group