Sugarcube 2.31.1
I’ve read that it’s better to put objects on the setup object for storage reasons, but now I’m wondering if it would be better to do it in a passage or in the javascript section? I’ve seen examples of both and just wondering if one is particularly better…
In passage:
<<set setup.mushroom = {
"name": "mushroom",
"size": ["small","light"],
"shape": ["round","domed"],
"age": ["young"],
"colour": ["grey","brown","pale"],
"origin": ["comes from the ground","grows in damp places"],
"material": ["spongy","soft","flexible","alive"],
"special": ["many different kinds"],
"purpose": ["edible","can be poisonous"]
}>>
Or in the Javascript section?
setup.egg = {
name: "egg",
loc: ["forest","swamp","mountain"],
app: ["amber","green","blue"],
type: ["chicken","stork","eagle","elemental","dragon"],
cond: ["chipped","cracked","pristine"]
};*/
I’ll probably be making LOTS of these fyi.
Thanks!