Hello, this is my first post on the forum, and I was just wondering how to make Barriers opened by purchasing it using an Item you have.
and ur pfp already giving me nightmares. and speaking from how far u r in gkc, i actually donât know tbh. i donât do enough with wires or devices lol
Or, you can use this:
@Chaosblade Try this
How to do it
Add a vending machine under the barrier, make sure its invisible then change the grant itm section to transmit on channel, and put the required item under item needed or required (forgot the exact name) also make it so its deactivates on purchase
Next step, choose channels or wires
Wires
Wire the vending machine to the barrier machine deactivated > deactivate barrier
Channels
to use channels, open the vending machine settings, and under the channel tab, machine deactivated transmit on (use a channel name of your choice) > (open barrier settings) under deactivate receiving on (then put in the channel name you used earlier).
That should work
Hi Chaosblade! Welcome to the forums!
If you want to purchase a barrier deactivation with a single item, just follow the guides in the previous posts.
If you want multiple items involved, well, use checkers!
Steps:
-
Create the barrier. Make sure it is âactive on game startâ, and the âplayer scopeâ is set to âplayerâ. Make it deactivate when recieving on the channel âdeactivatebarrierâ
-
Add a checker. Make it check for âitem amountâ. Make it check when recieving on âbuybarrierâ. Set the item amount to whatever you want it to be. When âcheck passesâ, broadcast on channel ânextchecker1â and when âcheck failsâ, broadcast on channel âcheckfailâ.
-
Add another checker, following the same steps as above, except with a few small changes. Make it check when recieving on ânextchecker1â, and broadcast on channel ânextchecker2â when it passes.
-
Add another checker, following the same steps as before, except with a few small changes (yes, i know. this is repetitive). Make it check when recieving on ânextchecker2â, and broadcast on channel ânextchecker3â when it passes.
-
and so on. (you see the pattern? if not, ping me). continue this until you have enough checkers for each of your items. Ex: lets say you need 7 snowballs and 1 bait to open the barrier. You would need 2 checkers, with one thats checking for 7 snowballs and another checking for bait. FOR THE LAST CHECKER: set âwhen check passes, broadcast message on channel:â to âdeactivatebarrierâ
-
place down an item granter for each of your items involved in the purchase. input how much item amount you used for the purchase. Note: all numbers must be negative! Ex: If you used 7 snowballs and 1 bait for the purchase, one item granter will grant â-7â snowballs and the other grants â-1 baitâ.
-
Make all the item granters âgrant itemâ when recieving on âdeactivatebarrierâ
-
The end! Thanks for reading! (Ping me if you have any questions)
Thanks! I already have like 20 notifications :
let me know if the way i said works or notâŚ