Jump to content


Photo

Getting into treasure tables


  • Please log in to reply
18 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 09 January 2018 - 03:53 AM

:clown: At this point I have a number of new spells with corresponding scrolls for scribing. I decided not to put any into stores, all will have to be found somewhere in the world. In addition to replacing certain standard finds in some chests and on some creatures, the lower level scrolls should be droppable as random loot. This means I have to get into the treasure tables, what RNDTRE01-05.ITM call on. So, who can tell me how to do that?



#2 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 09 January 2018 - 06:44 AM

corresponding 2da.



#3 temnix

temnix
  • Member
  • 983 posts

Posted 09 January 2018 - 11:39 AM

Thanks. Looking at that interesting file, it's a random generator pointing to a bunch of other files, but not 2DAs. They are either concrete items, with references to ITMs for amulets, gemstones and so on, or numbers (gold?), or references to some resources I can't find anywhere. For scrolls they point to RNDSCR01-RNDSCR03, but the only table for scrolls that I see is RNDSCROL.2DA. That table has 4 rows labeled "1st" to "4th" and 20 columns for each, which means 80 possible spells to find at most, if there are no repetitions. I have to ask, first, just how that rolling works to arrive at this file, and second, wouldn't it be possible to extend this table with extra rows or columns? I don't see a particular reason in the computer version of AD&D why a 22-sided die shouldn't rolled, unless that's known to be hard-coded.



#4 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 09 January 2018 - 11:52 AM

It is 2d10 for the equipment/magic/treasure tables (expect a bell curve).

For scrolls/weapons it is 1d20.

For the iwd treasure table, it is as many as the column count.

 

So the column count is fixed, but i think you can have extra rows.


Edited by Avenger_teambg, 09 January 2018 - 11:53 AM.

Avenger

#5 temnix

temnix
  • Member
  • 983 posts

Posted 09 January 2018 - 12:33 PM

Okay... and how do I get into that scroll treasure table? The top-level 2DA doesn't refer to it.



#6 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 09 January 2018 - 01:55 PM

rndscr01 = 1d20 roll of first row of rndscrol.2da
rndscr02 = 1d20 roll of second row of rndscrol.2da
rndscr03 = 1d20 roll of third row of rndscrol.2da

Please refer to IESDP for further limitations and guidelines, and also other extremely simple questions like this

#7 temnix

temnix
  • Member
  • 983 posts

Posted 10 January 2018 - 10:37 AM

It's nowhere on top in the guide. I've been there about a zillion times, I should know. If this bit of info is buried in there somewhere, why don't you use your expertise and spare me the trouble of looking for everything? Or, if that's such a burden, just don't, instead of showing off how smart you are.



#8 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 10 January 2018 - 11:32 AM

why don't you use your expertise and spare me the trouble of looking for everything?

WHY ? I guess you have never heard of such thing as trying to find thing in there. It's not like it actually takes much, you just go to the main page, take a target games .2da tables froim there.. BGEE, and open every file in it and read what it says.


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#9 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 11 January 2018 - 08:23 AM

https://gibberlings3...ee/rndscrol.htm its described as fuck

#10 temnix

temnix
  • Member
  • 983 posts

Posted 11 January 2018 - 12:20 PM

That's very nice. I can't see the middle of the link from here without my telescope, though, it's too long.



#11 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 11 January 2018 - 01:19 PM

That's very nice. I can't see the middle of the link from here without my telescope, though, it's too long.
You can still click it and go to the page, and then remove the end, and you end up to the page I linked to... are you a child, do we need to tell you everything ?

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#12 temnix

temnix
  • Member
  • 983 posts

Posted 12 January 2018 - 08:35 PM

No, you don't.

 

Hey people, changing treasure tables is turning out to be difficult. Editing entries is easy enough, but the problem is that the levels of quality of treasure are already defined: poor, average and so on, and the items to be dropped written out. I don't want to change the breaks for the frequency of dropping scrolls or excluding any default spells from the loot. Besides, the installing player might have a 2da of his own from another mod, there would be compatibility problems. I would rather replace some of the instances of standard scrolls in drops than references to them. Any ideas? My own right now is to use Weidu to put an effect on all creatures with Remove Inventory Item, at some appropriate probability, like 50%, and repeat this for all of the standard scrolls of levels 1-3 (wrap this up in a spell). Then add a Cast Spell for a spell with a Create Inventory Item, at a lower probability, because this would apply to all creatures, so, let' say, 3%. The spell would have a table of my scrolls to draw on. I could use Weidu for extra filters, like limiting this only to humanoids, giant humanoids and undead.



#13 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 14 January 2018 - 07:07 AM

You can have 9 rows.


Avenger

#14 temnix

temnix
  • Member
  • 983 posts

Posted 14 January 2018 - 09:12 AM

Yes, but then I would have to redirect creatures away from old rows. If a xvart was set for a roll on the "Poor" row, with standard 1st-level scrolls, a copy of this line with my substitutes would take away all chances of getting the old spells. It's one or the other.



#15 -kjeron-

-kjeron-
  • Guest

Posted 14 January 2018 - 10:04 AM

You can have 9 rows.

Not quite, rows follow hex value order, just like armor tiers.

After 9:

rows 10 - 16 are : ; < = > ? @ (mostly unusable in filenames, not that the .ITM files actually need to exist for them work though)

rows 17 - 42 are A - Z

rows 43 - 48 are [ \ ] ^ _ `

rows 49 - 74 are A - Z again, as the engine isn't case sensitive here.

rows 75 - 78 are { | } ~



#16 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 14 January 2018 - 01:07 PM

Yeah, that's something temnix would use, i wouldn't recommend, then he would take offense :D

Lets say we are through those exchanges.


Avenger

#17 temnix

temnix
  • Member
  • 983 posts

Posted 14 January 2018 - 04:26 PM

What exchanges? I'm really through everything that I left behind. I don't see how these rows are useful... One still has to roll on SOME row, and if it's a custom one, then it's not the default one with standard treasures. The only thing that would expand the table for real, adding more options without destroying the old, would be if we could add more columns, and we can't.



#18 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 14 January 2018 - 05:10 PM

adding more options without destroying the old, would be if we could add more columns, and we can't.
Sure you can, you just place a treasure item into the treasure table:
2DA V1.0
*
      1      2      3      4      5      6      7      8      9      10       11     12     13     14     15     16     17     18     19     20
1st   SCRL6N SCRL6T SCRL70 SCRL66 SCRL66 SCRL67 SCRL68 SCRL69 SCRL71 SCRL72   SCRL73 SCRL75 SCRL76 SCRL77 SCRL78 SCRL79 SCRL80 SCRL7M SCRL7L SCRL7K
2nd   SCRL8M SCRL8Q SCRL8R SCRL8S SCRL8T SCRL8U SCRL8V SCRL8W SCRL8X SCRL8Y   SCRL8Z SCRL7B SCRL7C SCRL7D SCRL7E SCRL7F SCRL7G SCRL7H SCRL7I SCRL7J
3rd   SCRL9L SCRL9G SCRL9F SCRL9E SCRL9D SCRL9C SCRL9B SCRL9A SCRL8A rndscr04 SCRL8C SCRL8D SCRL8E SCRL8F SCRL8G SCRL8H SCRL8I SCRL8J SCRL8L SCRL8M
4th   SCRL8B randr1 randr2 randr3 randr4 randr5 randr6 randr7 randr8 randr9   SCRL8B SCRL8B SCRL8B SCRL8B SCRL8B SCRL8B SCRL8B SCRL8B SCRL8B SCRL8B
This table willresult in addition of a few more scrolls which are named randr1-9.itm, while the rndscr04.itm is just a renamed copy of the rndscrl01.itm -file. You want it to be more common, place more of the same into the tables ...

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#19 temnix

temnix
  • Member
  • 983 posts

Posted 15 January 2018 - 01:07 PM

Hmm, that's a very good idea. I would just need the new tables to contain 50% references to the original scroll and fill the rest with my scrolls on the same level.

 

While I'm at this: I heard that a few magic schools don't have any spells for some levels. No Alteration at level 6 or something like that. Maybe I should fill in those gaps. Help out specialists. Who can tell me which levels are missing?