Nautical Directions
K.V.
24 Feb 2018, 04:22This library allows me to switch the compass to nautical directions and add nautical exit commands.
Example game (VERY rough prototype):
[DEAD LINK REMOVED]
The library:
Doctor Agon
27 Feb 2018, 22:29I thought 'The Pixie' had already produced a library to handle 'shipboard' directions:
https://github.com/ThePix/quest/wiki/Library:-Port-and-starboard
K.V.
27 Feb 2018, 22:47From what I could tell:
The compass doesn't work.
Plus, you can't use standard directions on land and nautical when aboard a ship.
It's a ship-only thing, I think.
Doctor Agon
27 Feb 2018, 23:45Oh, ok.
Would you also need to modify the 'ReverseDirection
' function too from the 'core' library?
Or the 'NiceDirection
' function from the 'NpcLib' library?
K.V.
27 Feb 2018, 23:57Would you also need to modify the 'ReverseDirection' function too from the 'core' library?
Or the 'NiceDirection' function from the 'NpcLib' library?
Good questions!
Maybe?
(Be right back.)
Doctor Agon
28 Feb 2018, 00:01I've only seen the 'ReverseDirection' used from the 'CreateBiExits' function, but I could be wrong.
K.V.
28 Feb 2018, 00:45Okay, I've got it fixed up, I just wonder:
Should it be "enters from the fore side", or "enters from fore"?
K.V.
28 Feb 2018, 00:50I added the code to NiceDirection.
K.V.
28 Feb 2018, 00:52I also added the code to ReverseDirection.
K.V.
28 Feb 2018, 00:54DrAgon,
If you ever start to ask me why I put you in the credits, remember this (and the code scrambler).
Doctor Agon
28 Feb 2018, 08:12Sorry KV, I know it's probably been a lot of head-scratching trying to figure it out. I'll have a play with it later, and see if I spot anything else.
K.V.
28 Feb 2018, 13:46No need for apologies! Quite the contrary, in fact!
I want it to be correct and cover all the bases.
Plus, I enjoy every aspect of this. (I like to fix stuff, as long as it doesn't require manual labor.)
...and, speaking of fixing stuff, someone reported that the compass does not work on the ship when playing the example game online.
I've tested it out in the desktop player, in Firefox, and in Chrome, and it all worked for me.
If anyone has a different browser (or Firefox or Chrome) and notices that you can't use the compass, please let me know which browser you're using so I can nip it. Nip it in the bud!