Jump to content

[LE] How to add item to player when mod is loaded?


dactyl

Recommended Posts

It seems like a very simple thing, but I can't figure it out.

 

I have a quest (marked start game enabled) where I've made a Player alias (Forced: PlayerRef). Then, I made an alias for the item I want to add to the player's inventory selecting "Create Reference to Object <MyItemFormID> create in Player". But nothing is ever added to my inventory when I load a save or make a new character. Tried `resetquest <MyQuestID>` in the console too.

 

I also tried something like this to add the item to the player via a script on game startup, but that also did nothing: https://www.creationkit.com/index.php?title=Complete_Example_Scripts#Maintenance.2Fupdate_code_which_runs_once_per_save_load_and_shows_a_message_when_a_mod_is_updated_or_first_loaded

 

Anyone know what I'm missing? Or do you know of an example of this that I could just copy?

Link to comment
Share on other sites

Ah thanks, that worked!

 

Edit: Also I realized that my original way using Create Reference to Object will only work if I make the Player alias a "Unique Actor = Player", not a Forced reference. This other way is useful because I can now make the item alias a quest item with the quest item checkbox.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...