Author Topic: Beta 242.01  (Read 1561 times)

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
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: 1176
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: 86
  • 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: 131
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: 859
  • Dreaming of a red Xmas
    • 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.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Beta 242.01
« Reply #5 on: November 18, 2017, 07:49:19 AM »
[Requests]
Done. SNPRINT can do negative values and there is an action equivalent.

 

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.

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