i need help W/ Advanced Scoreboard Logic

1 emeralds5 replies492 views
Roadkill2552 started 05/30/2013 12:12 am
and replied 05/30/2013 8:10 pm
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 avatar
Level 24 : Expert Engineer

5 replies

05/30/2013 4:08 am
Level 34 : Artisan Artist
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.
05/30/2013 8:10 pm
Level 24 : Expert Engineer
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/

05/30/2013 3:51 am
Level 30 : Artisan Archer
Google it...
05/30/2013 2:21 am
Level 16 : Journeyman Engineer
Has the actual scoreboard been taken off/deleted?
05/30/2013 3:42 am
Level 24 : Expert Engineer
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 Logo


© 2010 - 2020