It looks like you're new here. If you want to get involved, click one of these buttons!
Header: Poor Money Generator Table: Poor Money Type: Lookup Roll: 1d100 1-10: 2cp 11-20: 3cp 21-30: 5cp 51-99: 3gp 100: Special, [@Special] Table: Special Type: Lookup Roll: 1d100 01-10: Amulet of Steelskin 11-20: Amulet of Tongues 21-30: Amulet of Trap Detection 31-35: Dwarven Beard Rings 36-99: Clasp of Shrinking 100: Earthblood PendantI assumed to use [@table_from_Special.ipt] but I get "(missing)" for a result.
Comments
Use: <file name>
Where <file name> is a file in the /Common directory (where the generators are stored)
Then you reference the tables from that file normally (as if they are in the file itself).
There's a section in the help file abut using external tables. You can also look at some of the examples. The Random Books generator references a lot of different files.
Example: Where special is it should be reading the result from the special table but it isn't and I'm a little confused as to why.....
What am i doing wrong?
Bruce
So if you 'Use' a file like this:
The file should be located in
That is how IPP differentiates between generator files that are to be available in the interface, and those that are just meant as libraries for other tables.
In the meantime I tried your above solution. I moved the "special" table to the common folder and changed the directory reference as you stated.
And it still doesn't work. I get a result of "Special," when a 100 is rolled no "(missing)" error, just a blank result....
I know there is something I am missing somewhere, but I don't see it.
PoorMoney.ipt: Special.ipt: Some points maybe worth making:
1) Headers can make tables nice-looking, but they're unnecessary, especially for subtables.
2) If you're "use"-ing a file, you only need the "use" statement once, at the top of the file that refers to it. Also, you don't need to declare the table inside the referring file, so all of this at the bottom of Poor Money in your second example: ...was messing you up.
3) Personally, I've found "Roll: 100" unhelpful. I guess it doesn't hurt, but InspirationPad can guess the possible roll based on the options available, and including it can cause confusion if you change the range later and forget to change the "Roll:".
4) To make sure the code works in unusual circumstances (e.g., "Special", which only comes up 1% of the time), change the likelihood when testing. In the above case I changed the relevant row in your Poor Money table to: ...to ensure that Special was working correctly, then changed it back when I was satisfied.
Hope this helps!
Thanks!
Bruce