Objects
This is a Script example showcasing how to use Objects in the Moddio Engine.
All relevant information is provided in the Open Source game link here:
This is a Script example showcasing how to use Objects in the Moddio Engine.
All relevant information is provided in the Open Source game link here:
R object to string is for see what Inside a object
CONVERT OBJET INTO STRING
T string to object is to transform string into object
CONVER STRING INTO OBJET
F string to object > get element value of key 1 from obj1
GET VALUE
G for all element in obj 1 > string conver obj selected element
loop through all values
LOOP VALUES
string is just text / and / object is coding data structures
keys is just label or can be object or array, (string)
value can be word, number , array index, array ( almost anything)
H keys from obj1 loop
loop through all keys
LOOP KEYS
Z Add element key3 : value3 to obj2
ADD ELEMENT
X UPDATE ELEMENT from objet
C REMOVE ELEMENT from objet
V NESTED OBJECT TO STRING , string converted from object
B string to obj, element nestedkey 1 from element outerkey1 from obj3
GET VALUE OF KEY OF NESTEDKEY