skill system with variables not working

Started by Dio_Brando06 on

Topic category: Help with modding (Java Edition)

Last seen on 11:15, 29. Jun 2023
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
skill system with variables not working
Mon, 06/20/2022 - 08:11 (edited)

so, recently i've been trying to create a sort of a skill sistem based on some variables to create a rpg like progression. 

I needed to create some buttons on the stats overlay for leveling up specific skills and thought it would be cool if the button only appear if the player have the necessary evolution points(another variable) to make this i used this procedure 

image

I added this procedure to the button display condition and thought it would work, but it didn't, when i run the cliend and try on a new world the buttons display regardless of my evolution points. 

I also created a procedure for every button, when the button is clicked it should subtract one evolution point and add a one point on the chosed skill.

one of the procedure for buttons

same issue the game completely ignore the pocedures and all I'm left with are some useless buttons that always display and do nothing when clicked.

I'm quite new to modding so I might be doing something wrong

this are the variables i used 

variables

Edited by Dio_Brando06 on Mon, 06/20/2022 - 08:11
Last seen on 11:15, 29. Jun 2023
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and nothing i resolved that
Mon, 06/20/2022 - 08:49

and nothing i resolved that