MyPa553ng3r 72 Posted December 10, 2018 (edited) I am new to scripting, so be gentle. I want to make chests that stay locked, unless the player has a specific item in their inventory. Besides the key. Edited December 10, 2018 by MyPa553ng3r_P1 Share this post Link to post Share on other sites
Oliver Hope 261 Posted December 10, 2018 Hey im a bit confused must the player have both the key and another item to access the chest? Share this post Link to post Share on other sites
Rudy.cz 41 Posted December 11, 2018 I think what will interest you are these character instructions: Active item Inventory Equipment You can use them to check item in players hand, equipment or in inventory. Example how this could work: Share this post Link to post Share on other sites
Igor Q. 519 Posted December 11, 2018 If the player requires a key and an item Create a dummy chest (locked) and a real chest (it can be unlocked with key) Then, create a trigger zone around chest. Event - On zone enter For each item: Get inventory of Character If [item] = name (string) Move real chest to fake chest and despawn fake chest. Share this post Link to post Share on other sites
Rudy.cz 41 Posted December 11, 2018 Or you can setup a Listener to wait for Unlock action on specific chest and and lock it immediately again if the player will not have the item. Share this post Link to post Share on other sites
Igor Q. 519 Posted December 11, 2018 56 minutes ago, Rudy.cz said: Or you can setup a Listener to wait for Unlock action on specific chest and and lock it immediately again if the player will not have the item. Did you test it in the editor though? I feel it might be prone to bugs like that Share this post Link to post Share on other sites
Rudy.cz 41 Posted December 11, 2018 34 minutes ago, Igor Q. said: Did you test it in the editor though? I feel it might be prone to bugs like that It works, just "Activate on" has to be set to "End" Share this post Link to post Share on other sites
MyPa553ng3r 72 Posted December 13, 2018 Thank you so much for your help. I was thinking something along the lines of Admin having an Ylandium sword, and only the ylandium sword would open the chests, activate time and weather levers..... stuff like that. Sorry Oliver, I realize I was not too clear about it. But I think I can make it work with the help you all gave me. Thank you. 1 Share this post Link to post Share on other sites