Climbing Exits and Stair Exits #151
-
|
Greetings, I was hoping someone could help me troubleshoot this code. I'm attempting to implement a set of rooms connected by a ladder. The Wiki (Attributes for Exits) shows how to use the ClimbExit and StairsUp / Down attributes, but implementing them is giving me errors. Specifically, the error is "uncaught ReferenceError: ClimbExit is not defined." I feel like I've copied the code from the Wiki pretty closely, so I'm not sure what I'm missing. As an added note, I have ensured that the code is error-free and that all rooms are navigable as intended when using the standard up and down Exits rather than the ClimbExit or StairsUp / Down exits. I've copied the offending code here. And here is the section where I've attempted to implement the StairsUp and StairsDown code. This, too, was copied pretty closely from the Wiki, but it gives me errors as well. As a final note, it seems that I get an error when trying the ClimbExit code on its own, and I get an error when trying the StairsUp/Down code on its own. Which seems to indicate that there are issues with both sections of code. I appreciate the help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The issue seems to be that the code the wiki references does not exist in the most recent release of QuestJS. Version 1.4 was released on March 11, 2023, but the exit types you are asking about were not added until March 31 in 458f408. You could try working off the master branch instead of 1.4, or potentially, you could just add the new exit types (though I'm not sure if there would be any conflicts with 1.4). I'm adding the relevant code here, for reference. |
Beta Was this translation helpful? Give feedback.
The issue seems to be that the code the wiki references does not exist in the most recent release of QuestJS. Version 1.4 was released on March 11, 2023, but the exit types you are asking about were not added until March 31 in 458f408.
You could try working off the master branch instead of 1.4, or potentially, you could just add the new exit types (though I'm not sure if there would be any conflicts with 1.4). I'm adding the relevant code here, for reference.