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

TinTin++ 1.99.6b2

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    The TinTin++ message board Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Wed Aug 12, 2009 11:08 am    Post subject: TinTin++ 1.99.6b2 Reply with quote


  • #echo now supports the #echo {{format} {row}} syntax to print a line on the specified row. Useful if you want to avoid trigger loops because actions won't trigger on #echo spams.

  • Added %i and %I to toggle case insensitive matching in triggers.

  • Variables used inside triggers are substituted when the trigger is set, if you want to use an actual variable so the trigger changes whenever you change the variable use $$variable rather than $variable.

  • Fixed a formatting error in #write.
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Fri Aug 14, 2009 12:05 am    Post subject: Reply with quote

Updated the beta file:

Added:

Code:

         #list {var} {add} {item}               Add {item} to the list
         #list {var} {create} {item}            Create a list using {item}
         #list {var} {delete} {index} {number}  Delete the item at {index}

create creates a list with the given item, multiple items can be given, for example: #list bla create {x} {y} {z}

add adds the given item(s) to the end of a list, for example: #list bla add {a}{b}{c}

delete is the same as del, and now has a 4th argument which allows specifying how many times the delete is called. #list bla delete {-1} {3} would delete the last 3 items. The 4th argument is optional and defaults to 1.


Old 3 letter list commands are still valid so there's no need to update your scripts, but I figured to go to full name arguments, the following are valid now:

Code:

         #list {var} {clear}                    Empty the given list
         #list {var} {insert} {index} {string}  Insert {string} at given index
         #list {var} {find} {string} {variable} Return the found index
         #list {var} {get} {index} {variable}   Copy an item to {variable}
         #list {var} {set} {index} {string}     Change the item at {index}
         #list {var} {size} {variable}          Copy list size to {variable}
         #list {var} {sort} {string}            Insert item in alphabetic order


http://tintin.sf.net/download/tintin-beta.tar.gz
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sat Aug 15, 2009 6:30 pm    Post subject: Reply with quote

The following code now returns an empty string instead of 0.
Code:

#var bla {}
#showme $bla[]


The following code now does nothing instead of printing ()
Code:

#foreach {} temp
{
    #showme ($temp)
}


Main advantage of this change is that you can use #foreach on a nested variable without having to check if it's empty or not.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    The TinTin++ message board Forum Index -> Announcements 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