Post reply

Warning - while you were reading 3 new replies have been posted. You may wish to review your post.
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Wisp
« on: November 18, 2017, 07:49:19 AM »

[Requests]
Done. SNPRINT can do negative values and there is an action equivalent.
Posted by: CamDawg
« on: November 17, 2017, 01:15:00 PM »

Does SNPRINT have a corresponding OUTER_SNPRINT?  If not, can we get one?

At the moment you can do this by simply putting the SNPRINT inside an OUTER_INNER_PATCH block. 

I agree it would be really, really useful to have an easy-to-use method to derive the last n letters of a string, the way SNPRINT can derive the first n letters.  I found a way to do it somewhere, the G3 forums I think.  But it was complicated enough that I can't remember how and would have to search for it again.  Something similar to SNPRINT would be grand.

I think this is what you're remembering.
Posted by: subtledoctor
« on: November 17, 2017, 12:52:07 PM »

Does SNPRINT have a corresponding OUTER_SNPRINT?  If not, can we get one?

At the moment you can do this by simply putting the SNPRINT inside an OUTER_INNER_PATCH block. 

I agree it would be really, really useful to have an easy-to-use method to derive the last n letters of a string, the way SNPRINT can derive the first n letters.  I found a way to do it somewhere, the G3 forums I think.  But it was complicated enough that I can't remember how and would have to search for it again.  Something similar to SNPRINT would be grand.
Posted by: Sam.
« on: September 18, 2017, 02:11:24 PM »

Does SNPRINT have a corresponding OUTER_SNPRINT?  If not, can we get one?

Secondly, would it be possible to make it so that in
Quote
SNPRINT value variable stringWithVars
if value is a negative number it returns the last N characters whereas if value is positive it returns the first N characters?

For example:
Code: [Select]
SPRINT "author" "Jason"
SNPRINT "-3" "myvar" "1:%author%"

... assigns son to myvar.
Posted by: Wisp
« on: August 14, 2017, 11:17:11 AM »

Package for Mac OS is now up, with thanks to Argent77.
Posted by: Wisp
« on: August 05, 2017, 05:58:12 PM »

Because I badly broke script handling on IWD and IWD2, here's a beta with a fix. There's also some other stuff.

Beta location.