Closed KVonGit closed 3 years ago
Closing this, as it is not actually an issue. If I was thinking clearly, I would have posted this elsewhere.
I would consider a feature selection to be an issue, so feel free to post stuff like this here.
This modification doesn't seem to break anything.
There has to be something I'm overlooking -- an unknown unknown.
There may be an issue if you try to override an attribute in a template.
createItem("glass_cabinet", CONTAINER(true), {
examine:"A cabinet with a glass front.",
transparent:true,
loc:'lounge',
)
I get an error: "Uncaught TypeError: Cannot redefine property: transparent"
Huh.
I'll have to learn why that happens.
I don't know why, but it doesn't throw the error if I do it this way:
createItem("glass_cabinet", CONTAINER(true), {
examine:"A cabinet with a glass front.",
loc:'lounge'
})
w.glass_cabinet.transparent = true
EDIT
I bet it's because of this
.
Okay. I left the function modified (as shown above), and I created that glass cabinet like this with no errors, but now it doesn't update its verbs in the pane.
newItem("glass_cabinet", CONTAINER(true), {
examine:"A cabinet with a glass front.",
loc:'lounge',
transparent: true
})
//w.glass_cabinet.transparent = true
function newItem(wName, ...atts){
//console.log(atts)
let obj = createItem(wName)
if (!atts) return obj
atts.forEach(att => {
Object.keys(att).forEach(key =>{
obj[key] = att[key]
})
})
}
Isn't change script functionality the last big obstacle when converting from Quest 5 to Quest 6? In other words, do you even want to be able to add change scripts?
Isn't change script functionality the last big obstacle when converting from Quest 5 to Quest 6? In other words, do you even want to be able to add change scripts?
In theory, yes. In practice, there are plenty of other obstacles, and I am not convinced this is especially important. How much do Quest 5 games actually use them? Do people ask about them on the forum much?
I am not convinced this is especially important. How much do Quest 5 games actually use them? Do people ask about them on the forum much?
Now that you ask, I can only remember mrangel talking about them.
Hmm. I hereby declare this issue: closed.
Hello.
I think this mod allows change scripts:
EDIT
...and I don't update the system after changing the hitpoints in that example, so (as it normally works without this hack), the change does not truly take affect in the game until a turn is taken: