I Want To Make A Score That Changes When You Click A Button And The Score Shows Up In A GUI

Started by Cool_Wesley_Dude on

Topic category: Help with MCreator software

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I Want To Make A Score That Changes When You Click A Button And The Score Shows Up In A GUI

PLEASE HELP ITS HARD AND I WATCHED TUTORIALS, THEY DONT HELP!!!

Im trying to put the string in the math block D: it doesnt work.

Anyone know how to help?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry for not making it…
Wed, 01/17/2024 - 19:01

sorry for not making it clear, i made a click shop that you can buy gold diamonds blah blah from but i can buy it and like iron is 100 clicks and i have 50 right, so i buy it and then i get it but i have -50 clicks now D:

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i send pic of code?
Wed, 01/17/2024 - 19:03

how do i send pic of code?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to upload the…
Wed, 01/17/2024 - 19:03

You need to upload the picture somewhere else, (mediafire, a personal website, etc), and then copy the URL. As long as it exists somewhere on the internet, you can link it on MCreator.

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That appears correct. It's…
Wed, 01/17/2024 - 22:44

That appears correct. It's possible it's reading as holding down the button instead of clicking it once, which would mean that once you click it once, it just continuously goes down every tick. I think this is a bug with MCreator, though I don't recall personally having this problem? Even if this was the case, it should be going up out of control, not down. Are there any other procedures that target your GUI, or the player's variables?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this wont workso now i cant…
Wed, 01/17/2024 - 23:26

this wont workso now i cant show you the buying things

 

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, what I mean is, have you…
Wed, 01/17/2024 - 23:28

No, what I mean is, have you made any other procedures that have anything to do with the shopping GUI?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no, theres stuff how you buy…
Wed, 01/17/2024 - 23:29

no, theres stuff how you buy wood for clicks

and how do you make a varible reset command?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so there is 3 buy buttons…
Wed, 01/17/2024 - 23:30

so there is 3 buy buttons and then a back and next button

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, slow down. Your most…
Wed, 01/17/2024 - 23:35

Okay, slow down.

Your most pressing problem is that you've made a repeat bracket that repeats infinitely. It's not going to add +1 every 200 ticks; it's going to trigger every tick. Meaning there's a 200 tick delay, and then every tick it adds +1 to the counter. 

To make a variable reset command, you need to add a new 'command' element to your workspace. Make a procedure that sets your clicks variable to zero. Then have your new command element run this procedure. You can also change the variable to player-lifetime, in which case it will reset when the player dies.

If you have a lot of buttons and procedures that manage them, there may be more problems that are affecting this. You may want to consider trying duplicating the element or just making a new, identical interface, step by step, testing it after each step to see if you can find more issues. It's much easier to diagnose problems if you go through them one step at a time, otherwise there's all sorts of things that could be causing the issue.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i tried to make a upgrade…
Wed, 01/17/2024 - 23:37

i tried to make a upgrade that every 10 seconds gives you 1 click