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 24 matches
The TinTin++ message board Forum Index
Author Message
  Topic: strip line feed code from GMCP
moire

Replies: 4
Views: 326

PostForum: Script Help   Posted: Mon Jul 03, 2017 9:56 am   Subject: strip line feed code from GMCP
Yes, you can do it!

#var test {test.\nnewline}
#OK. VARIABLE {test} HAS BEEN SET TO {test.\nnewline}.
#showme $test
test.
newline
#function striplf {#var &# ...
  Topic: Trying to load tintin settings based on variable filename
moire

Replies: 2
Views: 571

PostForum: Script Help   Posted: Sat Feb 06, 2016 6:09 pm   Subject: Trying to load tintin settings based on variable filename
Tintin++ uses the period to subscript nested variables (see "#help variable" in tintin++).
To tell tintin++ that the period is not intended to subscript your variable, you must prepend a backslash to ...
  Topic: using replace with nested variables
moire

Replies: 5
Views: 1023

PostForum: Script Help   Posted: Sat Jan 23, 2016 3:09 am   Subject: using replace with nested variables
Or use translation table, like

#var directions {{1}{north}{2}{northeast}{3}{east}{4}{southeast}{5} ...
  Topic: Getting the matched string and full line with action
moire

Replies: 2
Views: 598

PostForum: Script Help   Posted: Thu Jan 07, 2016 7:50 am   Subject: Getting the matched string and full line with action

#action {This %1 is} {#var temp {%0}; #echo {%s} ${temp};}


Make sure to use ECHO and not SHOW when you display the matched line because else tt ...
  Topic: Backscroll One Line At A Time
moire

Replies: 4
Views: 931

PostForum: Feature Requests   Posted: Thu Dec 31, 2015 9:06 pm   Subject: Re: Backscroll One Line At A Time
I'd liek to be able to do is scroll back the buffer one line at a time rather than a full page...

Something like this might work with the #MACRO and #BUFFER commands, see #HELP MACRO to see how to ...
  Topic: #echo
moire

Replies: 2
Views: 859

PostForum: Bug Reports   Posted: Tue Dec 29, 2015 12:37 pm   Subject: #echo
Looking at #help echo, it tells me, that a second braced argument would be interpreted as a line number into which the result would be printed, so I guess tt++ intreprets the "{spell2}" as a line numb ...
  Topic: #path - not working
moire

Replies: 4
Views: 1163

PostForum: Bug Reports   Posted: Mon Dec 28, 2015 4:38 pm   Subject: #path - not working
To see what path directions are known by tt++, type:

#pathdir


To get help how to set up new path directions, type:

#help pathdir


So for setting up tt++ that it understands that "north" ...
  Topic: Echo text sent to the mud
moire

Replies: 2
Views: 783

PostForum: General Discussion   Posted: Thu Dec 24, 2015 3:46 pm   Subject: Echo text sent to the mud
Maybe this will do:

#event {SEND OUTPUT} {#echo {%s} {##SENT: %0}}
  Topic: substitute a space
moire

Replies: 8
Views: 1216

PostForum: General Discussion   Posted: Wed Dec 23, 2015 12:01 pm   Subject: substitute a space
What about

#act {{^.*}} {#echo {%s} { %0};#line gag};
  Topic: var references in #map exit command {} store the value
moire

Replies: 1
Views: 923

PostForum: General Discussion   Posted: Wed May 06, 2015 7:01 pm   Subject: var references in #map exit command {} store the value
Just use $$var instead of $var.
  Topic: TinTin++ 2.01.1 (Beta)
moire

Replies: 11
Views: 3759

PostForum: Announcements   Posted: Thu Oct 30, 2014 7:47 am   Subject: TinTin++ 2.01.1 (Beta)
gnutls_get_session_desc is only availabe in gnutls version 3.1.10 or better.
  Topic: highlight crashes tintin++
moire

Replies: 1
Views: 1013

PostForum: Bug Reports   Posted: Thu Oct 16, 2014 8:27 pm   Subject: highlight crashes tintin++
The highlighting does not match like expected and crashes tintin++ 2.01.1 beta:

#hi {%i{\bred\b}} {red};
#hi {%i{\bwhite\b}} {bold};
#s ...
  Topic: odd matching
moire

Replies: 5
Views: 1478

PostForum: Script Help   Posted: Wed Oct 15, 2014 12:40 pm   Subject: Re: odd matching
I think this should match on all on bli,bla,blo spam and not only on bla, shouldn't it?
Ammendment:
Changing the regex to:

#fun reply {#var result {%1}; #regex {${result& ...
  Topic: odd matching
moire

Replies: 5
Views: 1478

PostForum: Script Help   Posted: Wed Oct 08, 2014 12:51 pm   Subject: odd matching
Take care with that, that #ACTION will fire on EVERY line
No, here it does not. It only matches if the line starts with "[" and ends with "]" and passes the text inbetween to the function. This is la ...
  Topic: odd matching
moire

Replies: 5
Views: 1478

PostForum: Script Help   Posted: Wed Oct 08, 2014 11:42 am   Subject: odd matching
I think this should match on all on bli,bla,blo spam and not only on bla, shouldn't it?

#act {^[%*]$} {#show @reply{%1}}
#OK. {^[%*]$} NOW T ...
  Topic: variable expansion changed?
moire

Replies: 1
Views: 990

PostForum: Bug Reports   Posted: Tue Oct 07, 2014 12:42 pm   Subject: variable expansion changed?
With the tt++ binary produced today, the variable expansion does not work anymore like it did.

#show {"$undefined" "${undefined}" "&{undefined} ...
  Topic: strange (to me) error with if statement
moire

Replies: 2
Views: 786

PostForum: Script Help   Posted: Mon Aug 11, 2014 3:38 pm   Subject: strange (to me) error with if statement
The error message means you should put some whitespace between the command and the parameter.
  Topic: SYSTEM and return values
moire

Replies: 2
Views: 1260

PostForum: Unix Shell   Posted: Mon Aug 11, 2014 3:35 pm   Subject: SYSTEM and return values
You are probably looking for the #script command (see "#help script" in tt++):

#script {result} {echo "first\nsecond\nthird\n"| zenity --list --column=select}
#showme ...
  Topic: get random char from string
moire

Replies: 9
Views: 1345

PostForum: Script Help   Posted: Fri Jun 27, 2014 11:43 am   Subject: get random char from string
You could use #regexp, though it is a bit bothersome.


#function rndindex {
#var str {%1};
#format {strlen} {%L} {$str};
#math {index ...
  Topic: multiple tintin commands in a string?
moire

Replies: 26
Views: 3778

PostForum: General Discussion   Posted: Mon Oct 07, 2013 5:35 pm   Subject: multiple tintin commands in a string?
You could look at the [url=http://tintin.sourceforge.net/scripts/]scripts.
  Topic: Need help installing on OS X
moire

Replies: 1
Views: 4649

PostForum: Bug Reports   Posted: Mon Aug 26, 2013 9:15 am   Subject: Need help installing on OS X
You need to download, compile and install the [url=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/]pcre and [url=http://zlib.net]zlib libraries to compile tintin++. Installation instructions sh ...
  Topic: Extract a partial string by offset and length
moire

Replies: 7
Views: 1702

PostForum: Script Help   Posted: Fri Jul 19, 2013 6:02 pm   Subject: Extract a partial string by offset and length
#var string {thisisalongstringcontainingspecificdata}
#OK. VARIABLE {string} HAS BEEN SET TO {thisisalongstringcontainingspecificdata}.
#regexp $string {^{.&# ...
  Topic: Input question
moire

Replies: 2
Views: 992

PostForum: General Discussion   Posted: Mon Dec 24, 2012 11:41 am   Subject: Input question
The History

TinTin++ has a limited subset of the csh history features.

! -- repeat the last command
!cast -- repeat the last command starting with cast
ctrl-r -- enter the reverse history sear ...
  Topic: overlapping maps
moire

Replies: 5
Views: 2841

PostForum: Script Help   Posted: Fri May 04, 2012 7:26 am   Subject: overlapping maps
I dismissed the idea of using void rooms altogether and I always use the map
digging in the new form, i.e.:
#map dig {direction} new
This way overlapping rooms are possible and the map ke ...
 
Page 1 of 1
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