Page 1 of 1

Key from NPC

PostPosted: Mon Apr 12, 2021 5:35 am
by Prickett
I want an NPC to give the PC a key. However, whenever I try to make it give me a key with the world ID “fork” (which is the ID for my world), nothing happens. Then I use the exact same string except for the different key name:

player.receiveitem(“base_key_03”,1);

And I get the key. Any idea why it’s not working for a key I created?

Re: Key from NPC

PostPosted: Mon Apr 12, 2021 7:25 am
by Elendil / Redshift
I'd double check the id. Make sure there really exist an item with the that id.

(If nothing else works, try and drop an item with that id on the ground in the editor, somewhere inaccessible.)