ThePix / QuestJS

A major re-write of Quest that is written in JavaScript and will run in the browser.
MIT License
74 stars 16 forks source link

Tutorial 9 not correct? #74

Closed ImaBuggyMess closed 2 years ago

ImaBuggyMess commented 2 years ago

In tutorial 9, you are supposed to create a charger that charges a torch(?). However, when just copying the code in place, 2 things seem out of place for me. For one, the compartment cannot be closed since the Container(false) prevents it from being closable.

Secondly, there seems to be possibly out of place references to flashlight (or torches, since who charges a torch), since the game doesn't recognize w.flashlight.loc, but recognizes w.torch.loc. I'm assuming that it has to do something with synonyms, since flashlight would just be another word for torch.

createItem("charger_button", COMPONENT("charger"), { examine:"A big red button.", alias:"button", push:function(options) { if (!w.charger_compartment.closed || w.flashlight.loc !== "charger_compartment") return falsemsg("{pv:char:push:true} the button, but nothing happens.", options) }, })

also as well is w.flashlight.power

Cannot be closed, not named flashlight

ImaBuggyMess commented 2 years ago

Also not to post another issue again, but the button go to to tutorial 10, someone put an omega symbol (Ω) instead of the number 10 in the button link.

EDIT: Yeah, I know you can just click the right side, just saying the link at the bottom is broken and I almost lost my train of thought.

ThePix commented 2 years ago

Thanks for pointing out. I have corrected it.