l

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

largando

About

Username
largando
Joined
Visits
101
Last Active
Roles
REGISTERED

Comments

  • Yeah, I started down another path, but Ed's solution is cleanest. Also it means you only have to write ">> sort >> implode" once. table: getLanguages [![@langCount] languageList >> sort >> implode] table: langCount 1-50:1 …
  • All right, finally got some time. Maybe you've figured out how everything works by now, but if not, this might help. The table "HPDots" only has one entry, so it's really more of a function or procedure. It expects the variable {hp} to already …
  • Glad it works for you! I'll see if I have time to write up a point-by-point deconstruction of the code.
  • Huhn, I get a zillion errors when I run that code. Maybe we're working in different versions? Anyway, your intuition is correct; you can just remove the HP roll from my code and call it. I've done that in the example below. Table: GiantAnt Set: S…
  • Wow, this was surprisingly difficult without logical operators or nested conditionals. Anyway, I think this will do the trick for you: table: Start {hp==1d30}& {lastThird==floor(hp/3)}& {firstTwoThirds==hp-lastThird}& HP:{hp} one-thi…
  • Wow, I totally forgot about this thread! It looks like my last post presented two different solutions. Which one are you focusing on?
  • Dang it, until you mentioned natural logs, I didn't even know I wanted them! The following code isn't pretty, but it's correct within several decimal places: table: test ln(1) = [@NaturalLog with 1]\n& ln(2) = [@Natu…
  • Just realized I didn't answer your other questions. Eddie wrote: Okay, most important question I'm going to ask. Where is a document that tells me how to do all of these combinations and shortcuts?! Sadly, nowhere that I know of. The pdf that com…
  • Eddie wrote: Okay...I see the when/do/else/end...I understand that. Talk me through the rest, please. We're creating an inline variable of stat (which is starting as a constant of the set:) and assigning a table call for one of the attributes a…
  • Eddie wrote: In fact, would you mind talking me through the code so I can verify I understand what is going on? No problem! It can get a little tricky. Eddie wrote: So the first table call out is for 18 times to increment a stat. They're rand…
  • No trouble at all! Well done figuring it out.
  • Hi Eddie, welcome to the forum! You've got some pretty impressive code there; I think mostly you're getting stymied by the peculiarities of IPP, particularly that 1d0 does not equal zero. For some reason, it always equals one (for what it's wort…
  • Yes, in one way or another. Can you post a code example showing what you're trying to do?
  • I'm pretty sure you can omit them for numbers. Having said that, there's no reason to omit them even then. IPP doesn't do any kind of variable typing, so if you have a string like '333' IPP will let you treat it as a number. So, good rule of th…
  • You just about got it! The part you were missing was that for inline variable assignment you need single quotes, like this: Table: A Roll: 1d3 01:{class=='G'}{color=='#ffff00'}[@B] 02:{class=='K'}{color=='#ff9833'}[@B&…
  • I'm not sure if this is what you have in mind, but you can use hashes to get it done. Hashes are detailed here:
  • [ ] [@table3] Clever! I've never thought to try that. Other ways to force a space are: \_[@table3] (though I think this has proven to be somewhat unreliable) or...  [@table3] (reliable thou…
  • I agree with jdale -- it makes a big difference whether the program is supposed to figure out the color scheme (and how it should do so) or if the color scheme will just be hard-coded. Having said that, I've been having a bit of fun with it. Fir…
  • Hi jdale, Plugging in some HTML should help: The building was originally constructed by a local guild to house its newer members[|| and is still owned by the guild]. p.s. Very impressed by your generators! Keep 'em…
  • How did you figure that out? Old (script-writing) programmer's trick: Table: NPC Set:Class=[when]{$prompt2}=Random[do][@CharacterOccupation][else][{$prompt2}]&…
  • To your first question -- you're going to hate this! -- immediately after this line: Set:Class=[when]{$prompt2}=Random[do][@CharacterOccupation][else][{$prompt2}][end] ...are two spaces. They're getting appended to the chosen class. To y…
  • Yeah, so the thing is, IPP is really weak in the area of normal programming logic; nested conditionals can be used only in limited situations, and AND/OR logic is simply... absent. Once in a while I've found it a pain to deal with, but more often n…
  • I think the problem is that your ClassNames don't match the table names below. If you change table DwarfCLASS to this: Table: DwarfCLASS 30:DwarfFighter 5:DwarfCleric 25:Dwarf Barbarian 2:DwarfRogue ...you should be fine. To your other questi…
  • Ah, here's one I can sink my teeth into! Near as I could tell, it's not all that simple; at least, there's no elegant way to do it. That said, you can use this decidedly un-elegant trick: Table: Animals 1- [@Andify with beasts, 1, @, and…
  • Well, crap, I got nuttin. I ran your code and found nothing like the problem you describe. Maybe it's IPP versions? I'm running v3.01b. Or maybe something in the larger program that uses this code is messing it up? I see in one of your olde…
  • Sounds frustrating! If you post all the relevant code (including your call to the table) here I'll tinker with it a bit.
  • Hi Maenoferren, welcome to the forums! I ran your code and didn't really see any issues (except that you need a "|" after the "[" in "[closely|at a distance]"). What kinds of problems are you experiencing?
  • Oh, OK. So I ran a simple comparison, table: test {!{1d1}*10}\n& {{1d1}*10} ...and saw no differences. To the documentation! After a search for "{!" in the PDF, there it was! {!math} (math expressions) This tag, while still supported fo…
  • Thanks! I'll take a look, see if I can make sense of it. Added bonus: I don't feel dumb for not finding it.
  • Hi esmale, I was interested in looking at the odd "!" usage, but I can't find any "Conan Bandits" table anywhere. Where should I look? I give it a 50% chance that I'll feel really dumb after receiving your answer.