1

I need help W/ Advanced Scoreboard Logic

Roadkill2552's Avatar Roadkill25525/30/13 12:12 am
1 emeralds 563 5
5/30/2013 8:10 pm
Roadkill2552's Avatar Roadkill2552
So I am currently making a COD Style Zombies map, using the scoreboard dummy command as a money system. I want it so, you can only buy a item if you have atleast the amount the item is sold for. i have tried a few things. and it worked for a while but it broke and will not work. i used this command:

scoreboard players remove @p[score_Money_min=800] Money 800

i donot know what happened but i now cannot get it to work, the signal passes right through, and will not take any money at all.

if someone could help that would be super-uber fantastic.

Thanks, -Roadkill
Posted by Roadkill2552's Avatar
Roadkill2552
Level 26 : Expert Engineer
28

Create an account or sign in to comment.

5

1
05/30/2013 4:08 am
Level 34 : Artisan Artist
Bench
Bench's Avatar
here's how i'd probably do it.

Scoreboard objectives list
- Money - dummy (your current cash)
- KillCheck - playerKillCount (This will be 0 for everyone, then go up 1 for each kill)

Then you need a clock running that pings the following command blocks...

scoreboard players add @a[score_KillCheck_min=1] Money 50
scoreboard players remove @a[score_KillCheck_min=1] KillCheck 1

Each time a player gets a kill, their KillCheck goes up by 1. Each time the clock pings, it detects people with a KillCheck of 1 or more, and gives them 50 money then reduces their KillCheck by 1. This also covers say splash potions that kill more than one person, as players with a KillCheck of 2 or more will get 50 for each kill they got.

This method doesn't require complicated testfor commands and is limitless. Just need to make sure the clock is running quick. And you can turn off the system just by turning off the clock.
1
05/30/2013 8:10 pm
Level 26 : Expert Engineer
Roadkill2552
Roadkill2552's Avatar
Thats not a bad idea, Ill give it a try later, when i get some free time. Thankyou though. this sounds good, here is a link to the map im working on. CHECK IT!-
http://www.planetminecraft.com/project/ ... nsaneepic/

Thanks..-Roadkill
1
05/30/2013 3:51 am
Level 30 : Artisan Archer
gusgus
gusgus's Avatar
Google it...
1
05/30/2013 2:21 am
Level 16 : Journeyman Engineer
atomick86
atomick86's Avatar
Has the actual scoreboard been taken off/deleted?
1
05/30/2013 3:42 am
Level 26 : Expert Engineer
Roadkill2552
Roadkill2552's Avatar
I actually solved that problem, but now im facing new waters and still need help.
see in my map i want it so, every time you get a kill you get 50$-100$. but
im not sure how to do this, id imagine it has to do with killcounts, but not sure what to do to make it work...any ideas?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome