How to pick a player and give them money

Thank goodness. I JUST finished the system assuming that was the case. I’m making a little guide right now!

thank you so much Ben_to_10th

What you will need
  • Lifecycle Device: Set to listen for game start
  • x2 relays
  • x2 triggers
  • Item granter
  • A popup
  • A counter
  • A boatload of properties. (63 to be exact…) Sorry
Step 1: Prep Stuff

First you need to get some things taken care of that will be needed later. We need to set up a couple of the properties, and keep track of how many players are in the game.

  1. Property/Game Setups

    • Lifecycle Device: I technically already mentioned this, but set the settings to this.

      Picture

      image

    • One of the Relays: Make it so the game start broadcasts for everybody; not just the game host. I relayed on “everybody start” when receiving on “start”

      Picture

      image

    • Two basically identical properties. One called “iteration” and one called “iteration2” (Or whatever makes sense to you, like loopNumber or something. I will refer to the properties as iteration and iteration2)

      Pictures


  2. Track the amount of players in game

    • Property: Set the property name to “players”, make it a number property, make it global.

      Picture

    • Counter: Pretty easy settings for this. Default value = 0, Increment when receiving on “everybody start” keep track of property “players”

      Pictures


      image

Step 2: Way Too Many Properties

Make a property that is called “name1”; Property type is text; Scope is global

Picture

Now just copy that property over and over and over increasing the number next to name by 1 until you get to 60. (So make a property called “name2” and “name3” until you get to “name60” It should look something like this when done.

Picture

Step 3: Assigning Names

We only need 1 trigger for this. The only setting it needs is “Trigger when receiving on” channel “everyone start”

Picture

But, we also need block code. Go to blocks, create a block, and set it up like this.

Picture

Step 4: The Menu
  1. First you need something that will open up the popup/the menu where you choose a player. I just used a button, but you can use whatever you want! Like a game overlay or something. But whatever you use should transmit on the channel “name popup”

    What I Did

  2. The Popup: This will be our menu to select names.

    • The Settings: Nothing in header text; Content text is "Do you want to give money to this person?; Open Popup when receiving on “name popup” You can choose what it looks like. Call to Action 1 will say “Yes” and transmit on “give money relay”. Call to Action 2 will say “No” and transmit on “name popup”

      Pictures


    • The Block: Go to blocks and create a “When receiving on channel” block. Make that channel “name popup” Set up the block like this.

      Picture

      image

Step 5: Receiving the Cash
  1. The Relay: Make it relay to all players, receive on “give money relay” and transmit on “give money”

    Picture

    image

  2. The Trigger: Only one setting needed. Receive on “give money” But, there’s blocks. Set up a block like this

    Pictures


  3. Item Granter: Last and definitely least, (difficulty wise) it just needs to receive on “actually give money” Also set the item to cash and however much you want to give them.

    Picture

Phew! That was a lot! If you have any questions, feel free to ask! :smile:
Edit: Should look something like this when done.

3 Likes

You should make a guide with this

Oh my guide…

Drop downs and pictures and everything

1 Like

I’ll make a poll.

Should I Make This A Guide?
  • Yes
  • No
0 voters

Wondering how much memory did this take?

2460, so 2.4% memory

there was just a guide for how to donate, just got to find it.

Here this could help.

1 Like

thats for team’s not for players, he needed one for players, he said that in a topic that got closed bc of @Gamingwolf

1 Like

I may need to make a few changes though. I have some questions for @Jordon.meiser .

  1. Can anyone do this, or just the game host?
  2. Does giving the money subtract from your own total?
  1. the game host
  2. give Money

So… if I the host had 200 dollars and gave 100 dollars to player 2, would the host still have 200 dollars, or would they have 100 dollars.

1 Like

Why not drop the money on the floor for the player to pick up?

just saying

Because someone else might pick it up (and in a 15+ player game, thats hard).

Just tell them to drop it again
and if they don’t? Then why would they do that if it’s a cooperative game

200 or 100 which one you like

Thank you @Ben_to_the_10th

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.