Variable saving probleme

Started by RPJOF on

Topic category: Help with MCreator software

Active 2 years ago
Joined Apr 2019
Points:
788

User statistics:

  • Modifications: 4
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
Variable saving probleme

Hello,
I would like to make a variable per user and map! Is it possible?

Example: "tests" (variable) I would like it to change only for 1 user and save it! But now when I put "GLOBAL_MAP" it is for all players that it changes and I would like it to backup and that it is only for 1 player! Thank you for your answers (sorry for my bad english)

Active 2 years ago
Joined Apr 2019
Points:
788

User statistics:

  • Modifications: 4
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
I don't know if you…
Wed, 11/20/2019 - 12:19

I don't know if you understand

Active 5 years ago
Joined Aug 2019
Points:
1033

User statistics:

  • Modifications: 0
  • Forum topics: 31
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 450
This is possible using the…
Thu, 11/21/2019 - 12:36

This is possible using the GLOBAL_SESSION variable. The GLOBAL_SESSION variable is a variable that is stored per player, but is deleted when closing the game.

The way you can turn the GLOBAL_SESSION into a permanent variable is by: 

https://mcreator.net/tracker/issue/53918 (See my comments on this issue.)