mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Updated Storage (markdown)
1 parent
ac2026bef2
commit
61ae8930d0
1 file changed
+4
-4
+4
-4
@@ -11,10 +11,10 @@ This is the preferred place to store things since it is not accesable outside th
|
|||||||
#### Example:
|
#### Example:
|
||||||
```lua
|
```lua
|
||||||
-- Set a value the same way as a regular LUA table
|
-- Set a value the same way as a regular LUA table
|
||||||
ProfileStorage["highscore"] = 500;
|
ProfileStorage["highscore"] = 500
|
||||||
|
|
||||||
-- Retrieve the value at a later time
|
-- Retrieve the value at a later time
|
||||||
local lastHighscore = ProfileStorage["highscore"];
|
local lastHighscore = ProfileStorage["highscore"]
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
### GlobalStorage
|
### GlobalStorage
|
||||||
@@ -25,10 +25,10 @@ Anything you store here can be accessed by all LUA scripts, this is useful if yo
|
|||||||
#### Example:
|
#### Example:
|
||||||
```lua
|
```lua
|
||||||
-- Set a value the same way as a regular LUA table
|
-- Set a value the same way as a regular LUA table
|
||||||
GlobalStorage["favoriteColor"] = "blue";
|
GlobalStorage["favoriteColor"] = "blue"
|
||||||
|
|
||||||
-- Retrieve the value at a later time
|
-- Retrieve the value at a later time
|
||||||
local favoriteColor = GlobalStorage["favoriteColor"];
|
local favoriteColor = GlobalStorage["favoriteColor"]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|||||||
Reference in new issue
Block a user