Adding Leveled Item results in 0 Container Count - Help

Post » Mon Sep 03, 2012 1:23 am

Hi,

I need some help with leveled items. No item seems to be put into the players inventory. What i did:

1. created an item:

MyItem


2. created an object script showing some debug message and removing the item from the players inventory:

ScriptName MyItemScript


Begin GameMode

showMessage ScriptIsRunningMessage

player.removeItem MyItem 1

End

3. assigned MyItemScript to MyItem

4. created a leveled list MyItemList having MyItem with level 1 and count 1 in its list

5. created a perk with entry point

Add Leveled List On Death - Add Leveled List - MyItemList


An now when i kill the first creature MyItemScript starts to show ScriptIsRunningMessage ... forever :confused:

I tried to get the item count before doing anything in MyItemScript

player.getItemCount MyItem


resulting in zero even at the first time. My expectation was that when i remove the item (destroying it) from the player the script would stop running.

Anyone who can give me a hint what I am doing wrong?

Thanks in advance, Harmlezz
User avatar
TWITTER.COM
 
Posts: 3355
Joined: Tue Nov 27, 2007 3:15 pm

Return to Fallout 3