been trying to make a working inventory system for a bit and i cant quite seem to get anything to work, like i want to make it so that some gear can boost other stats that other armors do not! i finally found one way i can do it but in testing it just keeps saying “unecpected identifier: chest”. does anyone know what i could do to fix the code to make it work? If i can make it so that it sets up this kinda stuff for an item as a test, then ill be able to make it work from there!
<<set $clothing to {
head: {
name: "Gladiator helm",
equipped: false,
description: "A golden helm warn by the strongest of arena fighters, it grants +10 armor and muscle",
stats: "<<set $muscle +=10>><<set $armor +=10>>",
undostats: "<<set $muscle -=10>><<set $armor -=10>>"
}
chest: {
name: "Gladiator chestplate",
equipped: false,
description: "A golden chestplate warn by the strongest of arena fighters, it grants +10 armor and muscle",
stats: "<<set $muscle +=10>><<set $armor +=10>>",
undostats: "<<set $muscle -=10>><<set $armor -=10>>"
}
Arms: {
name: "Gladiator braces",
equipped: false,
description: "A pair of golden braces warn by the strongest of arena fighters, it grants +10 armor and muscle",
stats: "<<set $muscle +=10>><<set $armor +=10>>",
undostats: "<<set $muscle -=10>><<set $armor -=10>>"
}
Belt: {
name: "Gladiator belt",
equipped: false,
description: "A golden belt warn by the strongest of arena fighters, it grants +10 armor and muscle",
stats: "<<set $muscle +=10>><<set $armor +=10>>",
undostats: "<<set $muscle -=10>><<set $armor -=10>>"
}
legs: {
name: "Gladiator boots",
equipped: false,
description: "A pair of golden boots warn by the strongest of arena fighters, it grants +10 armor and muscle",
stats: "<<set $muscle +=10>><<set $armor +=10>>",
undostats: "<<set $muscle -=10>><<set $armor -=10>>"
}
}>>