Multiple death items?

Post » Fri Feb 18, 2011 9:36 pm

I have been trying to figure this one out for awhile now: I know how to add a leveled list item to appear on an npc after it dies (death item). I am curious to know if it is possible WITHOUT scripting, to have multiple different items appear on an npc after death? Thank you.
User avatar
Josh Lozier
 
Posts: 3490
Joined: Tue Nov 27, 2007 5:20 pm

Post » Sat Feb 19, 2011 2:00 am

I have been trying to figure this one out for awhile now: I know how to add a leveled list item to appear on an npc after it dies (death item). I am curious to know if it is possible WITHOUT scripting, to have multiple different items appear on an npc after death? Thank you.

If you but multiple items into the leveled list, check the "Calculate for each item in count" box and set "Chance none" to 0, everything in the list should be added on death.
User avatar
Samantha Wood
 
Posts: 3286
Joined: Sun Oct 15, 2006 5:03 am

Post » Sat Feb 19, 2011 2:12 am

Thank you very much-Peace!
User avatar
Alexandra Ryan
 
Posts: 3438
Joined: Mon Jul 31, 2006 9:01 am

Post » Sat Feb 19, 2011 6:00 am

Well, I just tried it and it still doesn't work. I've tried placing the specific items in the leveled list, i've tried adding leveled lists containing each item into the main leveled list (death item) and still, only on occasion will it drop more than one specific item. Any more ideas? Thanks.
User avatar
Mélida Brunet
 
Posts: 3440
Joined: Thu Mar 29, 2007 2:45 am

Post » Fri Feb 18, 2011 8:14 pm

The basic mechanism is that the engine will select one line from the list randomly selected from those at or below the current player level or NPC level. That line can have a count on it that determines how many items are dropped, but only one line will be used. If you want distinct items, you need that line to refer to another leveled list, and check the "Calculate for each item" box.

What then happens is that the random selection from the inner list is made as many times as you specified for the count on the outer list. If you didn't check the box, it selects once, and gives you multiple copies of the same item. If the inner lists don't always return an item, then the count on the outer one is a maximum. If you want two items every time, make the count 2, and mark the inner lists with zero "Chance none".

Of course, that means that the inner list must be capable of returning different items, so these are typically a selection of items with the same level, so that any of them are eligible to be picked - an unleveled leveled list, if that makes sense. All the level adjustment is coming from the first list, but you can throw a few lower-level items into each inner one, if you want more variety.

You can take that all further with more layers of list, for example if you want to give the player a guaranteed leveled item, and the chance of another. At each stage you can replace an item in a list with another leveled list to make that one random.
User avatar
Terry
 
Posts: 3368
Joined: Mon Jul 09, 2007 1:21 am

Post » Fri Feb 18, 2011 9:22 pm

Hmmm, still not getting this to work. Let me explain what I am trying to accomplish in more detail:

I want bandit type enemies to drop multiple items on death only. The items are: 1 skull (guaranteed), leveled list human blood (multiple count 1-5),leveled list human hide (multiple count 1-4), leveled list mortal meat (1-5). I have made the custom items and they work ingame (except human blood potion which is vanilla oblivion). All leveld lists are set to chance of none zero and leveled at 1. I have the leveled lists and structure as follows:

Master death item leveled list(outer list) with 1 death item leveled list inside (chance of none zero) set for 2 count. Inside the first inner list, I have the 1 skull misc item and 1 leveled list set to a 2 count. Inside this inner list I have the leveled list containg the human blood (multiple count 1-5) leveled list, the human hide (multiple count 1-4) leveled list , and the mortal meat (1-5) leveled list . Now on occasion, I will get the skull and additonal items, but most times it will be 2 skulls or multiple single items, etc. Is it possible to get 1 skull item and 1-5 count on the other three items every time?

Thank you for your time and patience-Peace!
User avatar
Amber Hubbard
 
Posts: 3537
Joined: Tue Dec 05, 2006 6:59 pm

Post » Sat Feb 19, 2011 8:53 am

Having seen exactly what you want, I don't think it's possible to get a levelled list to do that. Inventory would but I suspect you don't want NPC's wandering around with body parts in their pockets...
User avatar
Conor Byrne
 
Posts: 3411
Joined: Wed Jul 11, 2007 3:37 pm

Post » Sat Feb 19, 2011 5:16 am

That's what I suspected. I could easily enough add a script that activates on the death of the NPC, but to be honest, I would be looking at alot of npc changes in my mod. I suppose I will have to settle with just a skull drop then. Thank you all for your time-Peace!
User avatar
X(S.a.R.a.H)X
 
Posts: 3413
Joined: Tue Feb 20, 2007 2:38 pm

Post » Sat Feb 19, 2011 2:40 am

Pity, those dropped items looked interesting.
User avatar
Chad Holloway
 
Posts: 3388
Joined: Wed Nov 21, 2007 5:21 am

Post » Sat Feb 19, 2011 8:53 am

That's what I suspected. I could easily enough add a script that activates on the death of the NPC, but to be honest, I would be looking at alot of npc changes in my mod. I suppose I will have to settle with just a skull drop then. Thank you all for your time-Peace!

You may have to resort to writing a script to add those and attaching it to the NPC(s) in question. It would look something like:


scn NPCDeathItemScriptBegin OnDeathAddItem LeveledList1AddItem LeveledList2AddItem LeveledList3End


That seems to be the only remaining way to get multiple death items.
User avatar
michael flanigan
 
Posts: 3449
Joined: Thu Jun 14, 2007 2:33 pm

Post » Sat Feb 19, 2011 6:44 am

You may have to resort to writing a script to add those and attaching it to the NPC(s) in question. It would look something like:


scn NPCDeathItemScriptBegin OnDeathAddItem LeveledList1AddItem LeveledList2AddItem LeveledList3End


That seems to be the only remaining way to get multiple death items.



Seriously!?! I was unaware you could add leveled lists to a script? I may have to check this one out-Peace!
User avatar
Dawn Porter
 
Posts: 3449
Joined: Sun Jun 18, 2006 11:17 am

Post » Sat Feb 19, 2011 4:02 am

? Did you use a clean save and wait for respawn timer to kick since you made changes to npc and added leveledlist death item to them. Else if you did not wait for respawn timer to kick in then changes would not take effect.
User avatar
Craig Martin
 
Posts: 3395
Joined: Wed Jun 06, 2007 4:25 pm

Post » Sat Feb 19, 2011 12:15 am

Seriously!?! I was unaware you could add leveled lists to a script?

Yep, you sure can. I did that in my remake of the Oblivion Gate Closer Spell and in my Ayleid Power Stones mod. It's a handy little trick.
User avatar
ImmaTakeYour
 
Posts: 3383
Joined: Mon Sep 03, 2007 12:45 pm

Post » Sat Feb 19, 2011 3:13 am

@CorePc-I believe I tried it initially, but it still did'nt work quite right.

@The Vyper-I just tried it with a script and it ran perfectly! The main death item for each NPC race/class was a skull and I used a generic "mortal body drop" script to reference the skin, meat, and blood leveled lists-works great! That's twice I owe you one! I will make sure to add your name to the readme when my mod is released in August-Peace!
User avatar
Carys
 
Posts: 3369
Joined: Wed Aug 23, 2006 11:15 pm


Return to IV - Oblivion