Update: I've added the "comma thing" from another post and tweaked the formulas for a bit better distribution (CR plays a bigger role in the determination). Here's a link to the new generator file:
https://1drv.ms/u/s!Amd5j_tEzLgZnmAvE0EI27shz7vo
…
excellent! I thought of doing a:
Set: CommaDisplay=[floor($number/1000),[$number-1000]]
(haven't worked out the bracket syntax yet...)
but, what I don't like about mine as a permanent fix is that it's only good for number less than 1 million; eas…
Here's the logic behind the open roll...
Initial (primary) die roll is Basenumber. It's a 1d100 in the opening SET commands.
Bonusnumber is the next d100, in case the first die roll is high enough to need a next die roll.
We also set Result equal…
It does. And it works with a variable like @Room_Roll, not just a die roll like [#{1d100} Description]. I don't think that Roll:{@Room_Roll} will work in a Table header. So for variables set with a value, it's a cleaner way to do things. I do prefer…
This seems pretty sound, blending the "opens rolls" code with part of your tables. I'd certainly do the prompt1, prompt2 thing from the other thread rather than using 26 letters to determine quality of items and quality of wealth. Then, I think you'…
So this may not be to hard... You have:
76–80: [@T-14-16_RND_Master_Magic_Items]
Which says go roll on table T-14-16_RND_Master_Magic_Items. Once there, the table says to roll a d400.
Instead, insert the "open rolls" code. Then make your call loo…
This outputs just the final die roll value, {@Total}
; OpenRolls.ipt
; created 10/22/2017 2:07:25 PM
Define:CRIT=96
Set:Basenumber={1d100}
Set:Bonusnumber={1d100}
Set:Result={Basenumber}
Table: Main
[@Total_Score]
Table: Total_Score
{@Total=…
When you use:
{Bonusnumber=1d100}
It outputs the rolled number - visibly on the generator results screen. If you want the roll silent (not output on the generator) then use:
{Bonusnumber==1d100}
That will set the variable "Bonusnumber" to wha…
Well, I'd start by replacing the prompt input with a straight "96". Just dump the prompt, dump the "Define", and replace {CRIT} with a 96. And, "==" all the other stuff, if you want to suppress all output of any rolls or Total_Score.
Then, just try…
Here's a quick one that's more to the point of your original question:
; Inn Quality.ipt
; created 10/22/2017 5:28:03 PM
Table: Main
This is a [@Quality] Inn featuring [#{@Room_Roll} Description] accomodations.
Table: Quality
4: Poor {@Room_Roll=…
Here's the streamlined output:
Critical Roll is Greater Than 69, Rolls are 54, 20, Final Score is 54
Critical Roll is Greater Than 69, Rolls are 15, 33, Final Score is 15
Critical Roll is Greater Than 69, Rolls are 92, 29, Next Roll is…
I've more or less got it now. Here's the output for 10 tries, with rerolling on a 70 or higher:
Critical Roll is Greater Than 69, Rolls are 12, 36, Total score is 12 Final Score is 12
Critical Roll is Greater Than 69, Rolls are 96, 28, Tota…
So check out the first small bit of code from my Gemstones file:
Header: Gems
Prompt: CR { } 1
Define: CR={{$prompt1}*{1d6}+1d100}
Table: Main
[#{CR} Size]
Table: GemType
Type: Lookup
Default: [@Precious]{@BaseValue==(4d6+16)}
1-50:[@MundaneM…
Without actually creating the code (which I'll probably try to do in the next few days), I'd structure it along these lines:
Set base_roll={1d100}
Set result = base_roll
Set next_roll={1d100} ... then create a loop
When base_roll >95 then Do…
Here's the basics for assigning a number value to the prompt:
; Test Blanks.ipt
; created 10/18/2017 3:59:42 PM
Prompt: Enter a Creature level 1-26 {} 1
Define:Creature={$prompt1}
Table: Main
Items Found - [#{Creature} Item …
This seems to work:
T> able: Main
These are the options [@6 T-14-18_Enchanted_II>> implode]
Table: T-14-18_Enchanted_II
Type: Lookup
Roll: 1d10
1-3: Minor Critical Negation
4-6: Minor Decreased Maneuver Penalty
7-10…
Here's a solution using a dictionary table. It's not too much shorter, but maybe a bit more straight forward. I'd have to do a little work to see how to use dictionary tables with spaces in the text string instead of the underscores that i used here…
I get 5 every time. Is Name Builder table just a simple list of names? Seems more likely there is a problem with the table than with the call [!5 Name Builder >> implode]. Here's a piece of test code:
; test 3.ipt
; created 9/24/2017 11:49:…
Strange one. It fails for me with any string beginning with "W" or "w". But, specifically it's the [W causing the problem. Just put a space between the [ and the W.
[ Wealth >> Bold] works perfectly fine, and the output appears to remove the …
Happened to me when I first began using IPP. I read your post earlier and tried to make it happen again, but couldn't figure out what my original problem was. As I recall, it had nothing to do with the script in my table. It was something to do with…
Hi snaake.
I copied and pasted your exact code into a new table and ran it. Several dozen runs and I have not gotten a blank line yet. I'm also running v3.01b. Sorry I couldn't be of more help.
Probably just the spaces, as Ed said.
Here is a sample of a large script that I have been working on to accomplish a similar purpose. It uses a user input to call a dictionary table. I used the SET command instead of the DEFINE, but either should w…