Help With Money

I’m trying to make a Jailbreak game and I wan to be the players to get money from killing members of the other team. How would I do that?

Have a cash system using a property or have them drop it on death. The cash property will have a trigger which updates a counter which updates a property.

Okay, here we go.

Place a Lifecycle.
Have it at the setting of Player Knocks Out.

Now, wire the Lifecycle to a Trigger.

(Lifecycle) Event Occurs —> (Trigger) Trigger

Now, go into the blocks (it’s in the top left section when you click the trigger)

Now, go into the logic tab.

Place down an if do block.

Now, go into the essentials and drop the “Triggering Player’s Team Number” block onto it.

It should look like this:

if Triggering Player’s Team Number =
do

Now for the last two blocks.
Go into the math section and drag a number.
Now, put the number of the enemy team into the Number’s value.

Lastly, place an “Broadcast Message On Channel” block which broadcasts a message on a channel to grant cash from an item granter.
If you don’t know what they are, look at this.

Final result:

if Triggering Player’s Team Number = 2
do Broadcast Message On Channel “grantcash”

Welcome to the community!

2 Likes

For some reason the “Trigger Player’s Team Number” block does not connect to the “if…do” block

You have to put it inside this block
Screenshot 2023-12-04 5.25.58 PM

Wait mb you have to connect the = block in the logic gate first and put the triggering player’s team number block in it (the first block gate of the = block if that makes sense)

welcome to the forum!

welcome to the forums @AverageRagr make sure to go see the user must reads in the tags

just get a knock out manager make sure its on player and make the item cash it should be like this: