Author Topic: Beta 242.01  (Read 335 times)

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 897
Beta 242.01
« 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.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 897
Re: Beta 242.01
« Reply #1 on: August 14, 2017, 11:17:11 AM »
Package for Mac OS is now up, with thanks to Argent77.

Offline Sam.

  • The moose man
  • Planewalker
  • *****
  • Posts: 67
  • Gender: Male
    • Classic Adventures Homepage
Re: Beta 242.01
« Reply #2 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.
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
-- <CHARNAME> to Portalbendarwinden

Offline subtledoctor

  • Planewalker
  • *****
  • Posts: 76
Re: Beta 242.01
« Reply #3 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.

Offline CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 798
    • The Gibberlings Three
Re: Beta 242.01
« Reply #4 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.
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
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)?: