How do I give players an item?
For things like fetch quests, I would like to have items that can be "picked up" by players and put into an inventory of sorts. This would then allow an NPC to react differently when they have it in their inventory (player could turn in item for a quest).
I found the "Inventory Resetter" gadget but it seems to be only for removing things?
How can I give an item to a player?
Also what's a good way to make an item "disappear" after the player grabs it?
Thanks in advance.
-
A lot of this stuff would have to be done manually. An item with a grab sensor that sets itself to invisible when grabbed. Also sets a key saying ‘item collected’ or something.
If you are using the dialogue options on the text gadget you could wire a global trigger zone looking for the items key into one of the dialogue options (maybe says something like ‘give item’) So this dialogue option would only be available if the player had picked up the item. And now you can trigger logic when the player gives the item to the npc.
Anyway, you get the idea. Currently there aren’t any inbuolt systems for inventory and collecting items but it can be built manually very quickly.
Hope that is OK :) Peter -
Have a look at my Treasure Chest with key for an example of a "collected" item. I just destroyed it when the player was in the trigger zone with a ping sound. It also set a counter in the chest microchip to say that the key had been collected and could now be opened.
-
That’s a great solution @LadyLexUK! Nice and simple too :)
-
Thank you for your help.
Sorry to make this complicated but..... How do I carry over that a player has "got" an item from a different scene? The NPC is sending the player on a quest far away... -
Where is the inventory resetter located ? Thanks
댓글을 남기려면 로그인하세요.