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

Search found 352 matches
The TinTin++ message board Forum Index
Author Message
  Topic: Event that fires before typed command is sent
PowerGod

Replies: 4
Views: 47

PostForum: Feature Requests   Posted: Wed Jan 31, 2018 1:29 pm   Subject: Event that fires before typed command is sent
You can "name" an alias using a regex list


#var mylist {command1|command2|command3 with argument .*|command4}

#alias {{$mylist}} {#echo {THIS-> %0 ...
  Topic: question about alias
PowerGod

Replies: 4
Views: 57

PostForum: Script Help   Posted: Tue Jan 30, 2018 2:03 pm   Subject: question about alias
You can try with these, but you have to choose if you want to use the space as a separator or a semicolon.

This works with semicolon (without escaping it):

#ALIAS {fullskill} {
...
  Topic: question about alias
PowerGod

Replies: 4
Views: 57

PostForum: Script Help   Posted: Mon Jan 29, 2018 1:42 pm   Subject: question about alias
The semicolon is used by tt++ as a special character to separate commands, so if you want to use it as a simple character you shoud escape it


fullskill {force\;spell} {150}
  Topic: Need help about #event {TIME}
PowerGod

Replies: 9
Views: 136

PostForum: Script Help   Posted: Sun Jan 28, 2018 10:32 am   Subject: Need help about #event {TIME}
The #EVENT is not what you want then, because it will trigger exactly at the minute you give to it, for example "#EVENT {MINUTE 10}" will trigger only once every hour.
In the worst case you can use i ...
  Topic: Need help about #event {TIME}
PowerGod

Replies: 9
Views: 136

PostForum: Script Help   Posted: Sat Jan 27, 2018 9:06 am   Subject: Need help about #event {TIME}
Maybe wasn't clear enough what I wrote before, so i'll explain step by step:


- The first number (1:) are hours, so equals to 3600 seconds

- The second number (:1:) ...
  Topic: Need help about #event {TIME}
PowerGod

Replies: 9
Views: 136

PostForum: Script Help   Posted: Wed Jan 24, 2018 4:59 pm   Subject: Need help about #event {TIME}
1d1d1 is just (1d1)d1

the first part just tells how many dices to use for the second part.

That complete formula is strange anyway... it works like this: the numbers I put in parenthesis are mer ...
  Topic: Actions on dynamic lines matching a variable.
PowerGod

Replies: 15
Views: 188

PostForum: Script Help   Posted: Fri Jan 05, 2018 3:14 pm   Subject: Actions on dynamic lines matching a variable.
Now I understand what you mean, in this case the problem is that the #action is already defined and doesn't use anymore the content of the variable, you should delete and declare again the #action aft ...
  Topic: Actions on dynamic lines matching a variable.
PowerGod

Replies: 15
Views: 188

PostForum: Script Help   Posted: Fri Jan 05, 2018 1:14 pm   Subject: Actions on dynamic lines matching a variable.
What do you mean with "by editing the file" ?
I suppose you are speaking about the variable, right ?

That variable is NOT a tintin list, but actually contains a regexp, so it's important how the n ...
  Topic: Actions on dynamic lines matching a variable.
PowerGod

Replies: 15
Views: 188

PostForum: Script Help   Posted: Fri Jan 05, 2018 8:26 am   Subject: Actions on dynamic lines matching a variable.
Try if this could work for you (the directories must exists, else no log is created):


#var namelist {name1|name2|name3|name4}

#action {%*{$namelist}%*} {
...
  Topic: Detect just the next line
PowerGod

Replies: 5
Views: 113

PostForum: Script Help   Posted: Fri Dec 29, 2017 6:50 pm   Subject: Detect just the next line
After playing with events and many exotic tricks that came to my mind, I just came to the conclusion that there's no way to know how many lines every description can have... unless you use the prompt, ...
  Topic: Detect just the next line
PowerGod

Replies: 5
Views: 113

PostForum: Script Help   Posted: Thu Dec 28, 2017 6:25 pm   Subject: Detect just the next line
It does not work as expected. The output is to add 'west :' to the first line and then nothing to the subsequent lines.

I can understand what happens here, but I suppose that "west" is the "last" ...
  Topic: Detect just the next line
PowerGod

Replies: 5
Views: 113

PostForum: Script Help   Posted: Thu Dec 28, 2017 4:56 pm   Subject: Detect just the next line
Hi, first of all, the code you posted has many errors (missing semicolons, a square bracket, a wrong parameter), and like this I'd be surprised if it runs at all, so I suppose you just wrote it wrong ...
  Topic: Super newbie looking for help with tt++ on Android
PowerGod

Replies: 6
Views: 148

PostForum: Script Help   Posted: Sun Dec 24, 2017 9:34 am   Subject: Super newbie looking for help with tt++ on Android
Hi,
you don't "install" things on tt++, you just "read" them when and where you want.

So, let's say you have a txt file with all the commands you need to be launched at start, you can use it mainl ...
  Topic: Function arguments
PowerGod

Replies: 4
Views: 323

PostForum: Bug Reports   Posted: Thu Nov 16, 2017 7:24 am   Subject: Function arguments
Thumbs Up
  Topic: Sorting a multicolumn list....
PowerGod

Replies: 3
Views: 179

PostForum: Script Help   Posted: Tue Nov 14, 2017 8:28 am   Subject: Sorting a multicolumn list....
I suppose you'll need an index list for this


#var item_sorted {};
#foreach $item_list[] cnt {#var item_sorted[$item_list[$cnt][expire]] {$cnt& ...
  Topic: Does there exist a tintin object notation to JSON
PowerGod

Replies: 2
Views: 135

PostForum: Script Help   Posted: Tue Nov 07, 2017 7:20 pm   Subject: Does there exist a tintin object notation to JSON
There is something in the finished scripts, but seems to do the opposite.

Anyway, I did something just for fun to try this out...

It's not totally working anyway, there are issues with commas a ...
  Topic: TinTin++ 2.01.3
PowerGod

Replies: 4
Views: 507

PostForum: Announcements   Posted: Tue Oct 24, 2017 6:13 am   Subject: TinTin++ 2.01.3
I'm starting to hate that custom font thing... at the beginning I had to reinstall it different times at every reboot to make it work, else I was only seeing square characters...

Now it just don't ...
  Topic: Math: number variable not being treated as a number
PowerGod

Replies: 5
Views: 270

PostForum: Bug Reports   Posted: Tue Oct 03, 2017 7:19 am   Subject: Math: number variable not being treated as a number
This thread could be related to your issue:
http://tintin.sourceforge.net/board/viewtopic.php?t=2431

It could be linked to the use of "#config color patch"
  Topic: Math: number variable not being treated as a number
PowerGod

Replies: 5
Views: 270

PostForum: Bug Reports   Posted: Fri Sep 29, 2017 12:34 pm   Subject: Math: number variable not being treated as a number
How do you get the content of that variable ?

Maybe you can try cleaning it with "#line strip"
  Topic: TinTin++ 2.01.3
PowerGod

Replies: 4
Views: 507

PostForum: Announcements   Posted: Mon Sep 04, 2017 4:37 pm   Subject: TinTin++ 2.01.3
Windows 8.1 tells me that "EUDC.EUF" is not a valid font.

I forced it there anyway using mc, but if I open the fonts folder it is signed as invalid and I can't even preview it. (But the Character E ...
  Topic: Complex for me: Using #action to capture table to #list+more
PowerGod

Replies: 29
Views: 933

PostForum: Script Help   Posted: Mon Aug 28, 2017 11:33 am   Subject: Complex for me: Using #action to capture table to #list+more
Try with this (as you can see I used a LIST to have an array with numeric index):


#ACTION {^{\s*(?!\s*ID).*}| %2 | %3 | %4 | %5 | %6} {#if {%6=="-" ...
  Topic: Automatic substitution of only certain variables.
PowerGod

Replies: 2
Views: 157

PostForum: Script Help   Posted: Fri Aug 25, 2017 3:41 pm   Subject: Automatic substitution of only certain variables.
A way is to add another "$" to all the vars you don't want to be substituted:


#foreach $objectsDonate[] {shortName} {
#line substitute variables #action {You take ...
  Topic: last argument of last command
PowerGod

Replies: 1
Views: 232

PostForum: General Discussion   Posted: Tue Aug 15, 2017 3:57 pm   Subject: last argument of last command
If you type the beginning of a command you used before and then press arrow up, it will complete the phrase with the last arguments too.
  Topic: Complex for me: Using #action to capture table to #list+more
PowerGod

Replies: 29
Views: 933

PostForum: Script Help   Posted: Tue Aug 08, 2017 9:59 am   Subject: Complex for me: Using #action to capture table to #list+more

Which then in that case makes my #showme SectorList looks like this:


#show $SectorList
{1}{@IndexName{Articles[Weapons];001}}{2}{@IndexName ...
  Topic: Complex for me: Using #action to capture table to #list+more
PowerGod

Replies: 29
Views: 933

PostForum: Script Help   Posted: Mon Aug 07, 2017 4:18 pm   Subject: Complex for me: Using #action to capture table to #list+more
The first thing that scandum wrote was about the zerofill function that can can be changed like this:

#FUNCTION {zerofill} {#var {result} {%%0%2d};#format {r ...
  Topic: Complex for me: Using #action to capture table to #list+more
PowerGod

Replies: 29
Views: 933

PostForum: Script Help   Posted: Fri Aug 04, 2017 11:19 am   Subject: Complex for me: Using #action to capture table to #list+more
I'm a bit confused with everything here.. having read through it a few times...

For now:
- you get the things to be purchased in $ToPurch
- with the content of that var you can call different ti ...
  Topic: Complex for me: Using #action to capture table to #list+more
PowerGod

Replies: 29
Views: 933

PostForum: Script Help   Posted: Wed Aug 02, 2017 8:14 pm   Subject: Complex for me: Using #action to capture table to #list+more

I can't see a "zerofill" function in #FORMAT, but anyway it must be used in some way to obtain this...

#format %07d <value> should create a 7 digit zero filled number. You can check the lin ...
  Topic: Function arguments
PowerGod

Replies: 4
Views: 323

PostForum: Bug Reports   Posted: Wed Aug 02, 2017 5:36 pm   Subject: Function arguments
Hi, the functions seems to remember the arguments passed from a previous run, when you not provide them:


#function {rnd} {#math {result} {1 d (%2 - %1 + 1) + ...
  Topic: Complex for me: Using #action to capture table to #list+more
PowerGod

Replies: 29
Views: 933

PostForum: Script Help   Posted: Wed Aug 02, 2017 3:46 pm   Subject: Complex for me: Using #action to capture table to #list+more
The sorting thing is something I've never done before with tt++... also I don't find threads that raises the argument either...

So, I'll just start to theorize while playing with the tools that thi ...
  Topic: Negative RegExp not working
PowerGod

Replies: 2
Views: 182

PostForum: Bug Reports   Posted: Tue Aug 01, 2017 3:16 pm   Subject: Negative RegExp not working
I had a deeper look at the PCRE implementation and found out that this different approach seems working:

#action {{^.*FOO.*(*SKIP)(*FAIL)|^.*}} {#echo CAPTU ...
 
Page 1 of 12 Goto page 1, 2, 3 ... 10, 11, 12  Next
All times are GMT - 5 Hours
Jump to:  
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