GUI image button only checking display condition when Gui is reset

Started by KnickKnack on

Topic category: Troubleshooting, bugs, and solutions

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI image button only checking display condition when Gui is reset

I have a GUI trait system, like project Zomboid, I made it so the (turned off) toggleable trait (image button) would disappear showing another (turned on) image button (it is behind it in layers, so when the first one disappears, the second one shows behind it. The first image button will disappear instantly after pressing, showing the active one, but when the active one is pressed again, it will not make the first one return until the GUI is reset. (image shows the two buttons separated for understanding)

https://ibb.co/237xjBjc""

I suggest printing the…
Thu, 03/20/2025 - 18:32

I suggest printing the condition value in the console to see its value. It could be that condition data is not being synced

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its not working klemen, i…
Mon, 10/06/2025 - 07:41

its not working klemen, i saw dozens of people with thie problem - the button condition wont load true/false, and i cant find any solution for this, me and gpt are trying for hours now, i have this simple procedure:

IF player have Achievement = X, return True, else false.

the button condition loads it, appear blue there, but it wont read it ingame the button wont appear.

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nobody did yet?? because i…
Mon, 10/06/2025 - 15:24

nobody did yet?? because i seen people having the 100% same problem on 2020 and even before, in 5 years nobody reported it? i made it work with global var (player persistent) - logic, when achievement complete -> return Global Var = true, in this particular case the button condition reads, the problem here is that im doing a spellcast system so i will need a global var for each spell then, do you know another way i could do with just 1 global? thanks!