(🟧) How to make a talking and trading sentry

**This is a tutorial on how to make a sentry that can talk and/or trade. Click on the arrows below to view the different sections of this post.

Talking Sentry Tutorial
  1. Add a zone where your sentry is and resize it (roughly) as shown below:

  1. Add a game overlay device, and make it a button in the bottom left corner (or anywhere). Set the overlay text to “Talk” and set “Visible on Game Start” to “No”.
  2. Add a wire from the zone to the overlay, and set it to: Player enters zone > show overlay.
  3. Click on the zone, and for “When player leaves zone, transmit on”, type in “hide button”.
  4. Click on the overlay, click “channels”, and under “Hide overlay when receiving on”, type in “hide button”.
  5. Place a Popup device, and set the popup style to “banner”.
  6. Set the header text to “Sentry” or whatever you want to call your sentry, and set the content text to whatever you want your sentry to say.
  7. Click on the overlay again, and under “when button clicked, transmit on” type in “talk”.
  8. Go back to the popup, and under “open popup when receiving on” type in “talk”.

You should now be done!

Trading Sentry Tutorial
  1. Place a(nother) zone around your sentry and resize it as shown in the above image.
  2. Add a game overlay device, and make it a button in the bottom right corner (or anywhere). Set the overlay text to “Trade” and set “Visible on Game Start” to “No”.
  3. Add a wire from the zone to the overlay, and set it to: Player enters zone > show overlay.
  4. Click on the zone, and for “When player leaves zone, transmit on”, type in “hide trade button”.
  5. Click on the overlay, click “channels”, and under “Hide overlay when receiving on”, type in “hide trade button”.
  6. Place a popup device, and set the popup style to “modal”.
  7. Set the header text to “Trade offer!” or something similar, and set the content text to an explanation of your trade (e.g. “This sentry is offering you a GimBerry for 8 cash!”)
  8. Click on the “call to action” tab, and under “call to action label”, type in “Deal!”.
  9. Under “call to action channel”, type in “trade”.
  10. Under “secondary call to action label”, type in “Not Interested.” and under “secondary call to action channel”, type in “close trade popup”.
  11. Go to the “all options” tab, scroll all the way down, and set “closable by player” to “No”.
  12. Go to the “channels” tab and under “close popup when receiving on” to “close trade popup”.
  13. Add a wire from the game overlay to the popup, and set it to: button pressed > open popup.
  14. Go over to an area where you think players won’t go, and place a vending machine.
  15. Click on the machine, scroll down, and set “visible in-game” to “No”.
  16. Set the granted item to whatever you want the sentry to be selling, and add your cost.
  17. Go to the “channels” tab and under "attempt to purchase when receiving on, type “trade”.
  18. Add a notification device anywhere. Set the notification type to “success”, set the title to “Trade successful!”, and set the content to “you’re a professional businessplayer!” or something.
  19. Add a wire from the vending machine to the notification device, and set it to: item purchased > send notification.
  20. Add another notification device. Set the notification type to “error”, set the title to “Trade unsuccessful.” and set the content to “you don’t have enough [resource] to buy that!”
  21. Add another wire from the vending machine to the new notification device, and set it to: attempt to purchase fails > send notification.
  22. Add a barrier device and place it on top of the vending machine.
  23. Click on the barrier, click “appearance”, and set “visible in-game” to “No”.
  24. Place down text anywhere, click it, click on “availability” and set “visible on game start” to “No”.
  25. Click on “blocks” and click “when receiving on channel…”. In the box that pops up, type in “trade”.
  26. In the block editor, add code as shown below:

Conclusion

Thanks for reading, and hopefully trying these out! Feedback is greatly appreciated, so test it out with your friends, and have fun! In the comments below, post screenshots of your coolest maps and mods, and let me know what kind of tutorial you want to see next! Hope this helped!

27 Likes

image

2 Likes

um what?

2 Likes

1 Like

umm okie dokie
i dont see that but ok

1 Like

I found a bug -
image
image

1 Like

yeah, i said to do that on step 2.

1 Like

I’m talking about when the game started, the overlay becomes visible

1 Like

yeah it happens sometimes, usually it happens if you start the game whilst standing in the zone. idk why but usually goes away if u just end and restart the game.

1 Like

how do you make the sentry stop holding the weapon?

1 Like

you can’t, idk why


1 Like

You can’t, but you can make one of the zones not allow gadget fire (in settings)

1 Like

You didn’t have a way to hide the button, but all you have to do is click on the zone, go to the place that says, When player leaves zone, transmit on, and type hide button.

1 Like

When I started the game the trade button was showing and I double checked that I followed you steps.

Was the setting for the overlay deactivate on game start?

1 Like

yes. I tried taking it off and then back on but it didn’t work.

wait when the sentry is not on the zone it works.

visible on game start = off

1 Like

I know, it still does not work.

If you want the sentry to have no weapon, I think you can put it on the same team as you.