How to make a procedure check if a variable is true

Started by rex1234555 on

Topic category: Help with MCreator software

Last seen on 02:44, 17. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a procedure check if a variable is true

Hi! so i cant figure how to make a procedure check if a variable is true

for more context I'm trying to make it where when you talk to a entitle it sets a variable to true and if you talk to them again it will open up a different GUI can someone help? i will really appreciate it Thanks in advance

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if get logic local "example"…
Sun, 07/14/2024 - 12:03

if get logic local "example" = true

do .....

 

You could just do: if get logic local example 

                                    do ............

 

but doing it in the first way makes it easier if you want to change it to check if it's false in the future, or copy paste it and just change the true to false to check if it's false somewhere else in the procedure

Last seen on 02:44, 17. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
alright ill try that thanks
Mon, 07/15/2024 - 04:26

alright ill try that thanks

Last seen on 02:44, 17. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
one more question will this…
Mon, 07/15/2024 - 05:23

one more question will this work for global variables?

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes
Mon, 07/15/2024 - 09:47

Yes

Last seen on 02:44, 17. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks  
Wed, 07/17/2024 - 02:44

Thanks

 

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome 
Wed, 07/17/2024 - 11:26

You're welcome