Author Topic: Treasure Generation Question  (Read 408 times)

Legacy_SushiSlave

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Treasure Generation Question
« on: September 23, 2015, 09:54:08 pm »


               

Is there any script available that can be applied to enemies and containers that will generate random gold, gems, and jewelry while excluding all other forms of loot?



               
               

               
            

Legacy_bdtgazo

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +0/-0
Treasure Generation Question
« Reply #1 on: October 21, 2015, 04:42:09 pm »


               

Yes.  Many I should think.


 


Set a placeable treasure container in the toolkit down, and checks its scripts.  NWN has its own treasure generation script.  I think most mods don't use it, though, but its a good place to start an examination/understanding of treasure generation. 


 


The easiest method, imo, is to start using NESS for your spawns.  With NESS, you can just place some chests in a zone PCs can't get to, and fill them with loot.  NESS has a good guide, easy to learn.


 


I used to use NESS, but decided to use my own custom loot generation scripts to have better control of the % chance that a given item will drop.  I made my own loot tables.  The actual script is pretty simple, but I have found, and suspect most would agree, that actually making the loot, the descriptions of the loot, and the loot tables in the script, is probably about 70% of the work that goes into a mod.


 


Anyway, the answer is yes.  And I think a few are available on the Vault.



               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Treasure Generation Question
« Reply #2 on: October 21, 2015, 04:46:47 pm »


               

As mentioned above - 


nwn has default treasure scripts - if you dig into the scripts such as 


Drow_onSpawn  (think that might be one)


It calls several treasure include files - where there are methods such as 


SpawnRandomRings()


SpawnRandomWeapon()


SpawnRandomMisc()


 


choose what you want, modify if needed, and then use