#Cloud Variables Explained

1 messages · Page 1 of 1 (latest)

livid girder
#

What are Cloud Variables?
Cloud Variables are variables that are declared in the game and can be accessed by any script. Similar to 3.X Global variables, they store data that are accessible in any script within the game. They are categorized into 2 types; Player and Multiplayer Variables.

#

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

.

upper merlin
livid girder
summer crater
blissful heath
#

Thx

eager badge
#

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

livid girder
eager badge
forest nova
#

👍

thin surge
#

Alguien me puede traducir que son las cloud variables?