If you enclose paragraphs in paragraph tags, p and /p, it's going to space them like paragraphs. You can do line breaks instead:
I tried adding top and bottom padding and margins to make the spacing smaller but that doesn't seem to work.
Just tried it, it works, but you need to use regular quotes, not left and right quotes the way you have it.
Lots of text.
To figure this out, I right-clicked on the output and used View Source to see what I was really getting. At that point it was…
Ok, so you are picking X number of skills and sorting them. One possible skill is actually multiple skills in their own list. I'm not sure the issue there has anything to do with external files. Here's a stupid generator I made to test this:
Table:…
The limit on the length of dictionary table keys is a little restrictive, but you can use a dictionary table to expand them to full length. E.g. you randomly determine the skill is AnimHand but you display it as [@{$Skill} FullSkillName] to expand t…
I don't think you can do that with a simple weighted table. But two ways you could achieve that:
* Use two different tables. Call the table as tablename{prompt1} and then have tables tablenameYes and tablenameNo.
* Use a lookup table rather than a…
I think you are trying to look up Common, Uncommon, or Rare on Table DieRoll, which is why you have picked a Dictionary table. But you're calling that table with a numeric value. If you want to look up the value of prompt1 on that table, you would u…
Ok, so the important part is really just this:
[@VehicleType] [when not] [@VehicleType] = None [do] and have the special focus of...[end]
The issue here is that when you ask whether @VehicleType = None, it's not using the first value of @VehicleT…
You're so close! It works, you just need that 1d4 to be in curly brackets:
8:[!{1d4} DamageType >> implode]
Also, you don't need those Shuffle lines. Initially, everything is available to be picked. If the generator runs multiple times, ever…
More recent generators to keep this thread current:
Traps: http://forum.nbos.com/discussion/1912/its-a-trap#latest
GURPS generic mundane NPC generator at the end of http://forum.nbos.com/discussion/1927/variable-inline-variable-assignment-help#lat…
Thanks for sharing! I think that's 4th edition? Doesn't look bad on first glance to me.
It's pretty long but that's the nature of those lists. My NPC generator for the upcoming edition of Rolemaster is 75% as big but doesn't include names. ( http:/…
In the code as we have it, you can't use >> Sort because table Skills doesn't actually return anything to sort. It just silently puts some things in variables. To sort, it would need to return some actual text.
So, instead of adding the skill…
Yes, that's possible. Please see my last example in the post above. I did exactly that, putting the list of skills into a variable called Skills.
Also, I'm not sure why I didn't notice earlier that this is GURPS.
The point of assigning an initial…
In the help, look under Generator Files and then Expressions and then Built In Functions. Here's the list of math functions which answers your question about that:
max(n1, n2,...,nN) - the maximum value of any number of passed values.
min(n1,…
I think you were on the right track having a Parry variable and then, each time you calculate the parry for a particular skill, replace that Parry with the new value if it's higher. Personally I would do that as {Parry==max({Par1},{Par2})} rather th…
I think you are asking about this part:
{{PAR2}=={!floor( ({brawlingskill} / 2) + 3)}}
You shouldn't have curly brackets around PAR2 there. IPP thinks you are making a comparison, it's reading this as a question "is PAR2 equal to this value I'm ca…
It's treating 0004 as a number, so it just becomes 4. Add a letter if you want to treat it as a string (e.g. T0004). Or change the DieRoll table to be a lookup instead of a dictionary table.
You also don't have any value to look up on table 0004. T…
It's possible but the formatting is funny. You have to replace each / with
/
See this thread for an example:
http://forum.nbos.com/discussion/comment/3999/#Comment_3999
Also, if you click the resulting link, the website will open in IPP…
I think "if" is intended for arithmetic functions. You're trying to use it to contain other kinds of content and I think that's where things go awry. Try using "when" instead:
Table:104c
Set: sibs ={1d6-1}
Set: bo ={1d6}
[when]{sibs}=0[do]Only C…
You can use {$1} in conjunction with the "with" keyword. I called your "Weight1" table like this:
[@Weight1 with {1d100+{Wtmod}}]
Then in the table, I want to refer to that {1d100}+{Wtmod}} value. I use {$1} to do that, it has the value sent to th…
The part it doesn't like is:
Roll: 1d100+{Wtmod}
I'm not sure why, since Wtmod appears to have a numerical value. However, you can shift that calculation into the other table. See below. Also, [[@Weight1]+{LBmod}] should be in curly braces since y…
Sure, that would work. You could create a folder with all the related generators that are calling the same common file so they are at least grouped together. Up to a point, it's quicker and easier than prompts. Beyond that point, the number of gener…
Everything is posted to be used! I'm happy if it's helpful. And even happier if you share what you create.
I don't know anything about the treasure generation system in D&D so I can't offer much there myself.
I've had to combine prompts, e.g. use a single prompt for age and gender rather than two separate prompts. It's a little kludgy but it works.
If you want to make multiple generators for the different scenarios (as a different workaround), you can p…
That's fun. If you want to randomize the number of scrolls, you could do something like the attached. (I also got rid of an extra "a" at the end and changed the wording about seals slightly.)