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 MyItem4. 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
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