Jump to content

Photo

Adding a random item to the player through a script or dialogue

additem leveled list script dialogue

  • Please log in to reply
5 replies to this topic

#1
Oblivionaddicted

Oblivionaddicted

    Resident poster

  • Members
  • PipPipPipPipPip
  • 3,609 posts

Hello everybody!

 

Do you know what I should do to add a random item to the player through a dialogue or script like in Oblivion or Skyrim?



#2
FIMzzZzz

FIMzzZzz

    Enthusiast

  • Members
  • PipPip
  • 119 posts

if it doesn't have to be completely random and a pre defined list of items will work, for dialog there is random100 under global. and for script options check scripting for dummies and search for random.

no idea if those options are what you're looking for and also no idea what the options are in oblivion or skyrim.



#3
Oblivionaddicted

Oblivionaddicted

    Resident poster

  • Members
  • PipPipPipPipPip
  • 3,609 posts

Thanks for your reply, I would like to add items through leveled lists.



#4
FIMzzZzz

FIMzzZzz

    Enthusiast

  • Members
  • PipPip
  • 119 posts

https://en.uesp.net/...ind_Mod:AddItem

 

i did not test it, but to me it seams you can just use your leveled list as object id for use with additem as shown in the examples.



#5
Oblivionaddicted

Oblivionaddicted

    Resident poster

  • Members
  • PipPipPipPipPip
  • 3,609 posts

I appreciate your input but as you can read on the UESP article

 

Leveled items can be added to any actor or container, but they may not work as expected. They are only evaluated, if added to the object inventory. Added to the player, or a container in state 3, or an actor that has already been loaded, they appear as some strange and unusable icon.



#6
FIMzzZzz

FIMzzZzz

    Enthusiast

  • Members
  • PipPip
  • 119 posts

then this shattered your plans using leveled lists? since you didn't describe what exactly you want to to, i'm just guessing now.

 

if you want this for quest rewards, at a static place, you could spawn a chest into the world and de-spawn it after it was looted. or de-spawn it when a new chest is required with new loot. for the first option, if spawned inside the player fov you can use particle effects so it doesn't look to gamey and more "magic"

 

maybe there are other unusual solutions to make leveled lists work, but without more details what you want to do, it's not exactly easy to offer solutions.







Also tagged with one or more of these keywords: additem, leveled list, script, dialogue

IPB skins by Skinbox
Page loaded in: 0.956 seconds