#Cloud Variables Explained
1 messages · Page 1 of 1 (latest)
Player Variable
Player variables are a type of Cloud variables that stores data of a specific player. Each player has their own copy of variables that store different values. The variables only affect that specific player's and doesn't change others'.
Multiplayer Variable
Multiplayer variables are variables that belong to a set of players. Any changes can affect the value for a group of players in the game.
Possible Scenario:
You're making a survival multiplayer game which involves players keeping a campfire from going out. Each player has a backpack for inventory and has a goal of gathering wood for the campfire.
The Player variable in this scenario is the player's inventory. Each player has their own inventories. When a player gets wood, it doesn't update the other players'.
The multiplayer variable is the campfire, where fueling it affects the entire group. Everyone has access to this variable.
Possible Uses
Player variables are used in:
-Saving player's progress
-Saving player's status
-Saving player's data
Multiplayer Variables are used in:
-Keeping track of PvP scores
-Affecting multiple players' data
.
I know very well you got this example from 99 nights Lol
Hehe. Abt time someone noticed
I noticed a while lmao just wasn't in the mood since i was in a hurry to use this example also ty
Np bro 🙏🫀
Thx
We can also use map component attributes in the multiplayer mode as a public variable, they work the same,
And since JE doesn’t support 2D arrays+ we can js use text, to insert an item, convert the text into an array, then adjust the item, set item to item array convert to text
Those are also good alternatives, but the main focus of this post is to explain how Cloud Vars are supposed to be used through the example scenario
Others never played 100 nights at idk or whatever it’s called tho so I never understood your example scenario so,
👍
Alguien me puede traducir que son las cloud variables?