Some Map Questions

Summa_Civis
25 Oct 2022, 23:10Hello
I'm interested in stylizing the shape, color, and line weight of the room icons and interconnecting lines on the map. Is there a way to modify these map objects using a script?
Is there also a way to change the yellow circle that represents the player and to modify that icon's style?
One last question (sorry! I know how busy everyone can be to be answering all these rookie questions... I thank you in advance!) Is there a way to add an image to the entire map field or to dd any images to the "player" icon or "room"?
Ok.... I lied...
One extra follow-up last question! Is there a way to program multiple "player" icons that can be visible and move around the map like monsters that are updating after set number of moves?
That is all..
The Pixie
26 Oct 2022, 08:50How far are you into your game? These can all be done in QuestJS, but converting a Quest 5 game to QuestJS could take some effort, and there is no visual editor yet.
Maps:
https://github.com/ThePix/QuestJS/wiki/Node-based-Maps
General
https://github.com/ThePix/QuestJS/wiki

Summa_Civis
26 Oct 2022, 12:03Thank you! This looks awesome!

DarkLizerd
30 Oct 2022, 10:40Pictures in the map room boxes???
Like this? https://textadventures.co.uk/games/view/raytcm-ds0azglg0xfm39w/the-lost-unicorn
Add this to to the room description...
<attr name="grid_image">Forest1.png</attr>
Like this...
<object name="map">
<inherit name="editor_room" />
<object name="room_1">
<inherit name="editor_room" />
<description>You are at the northern edge of the forest next to a tall clift.</description>
<attr name="grid_image">Forest1.png</attr>
<usedefaultprefix type="boolean">false</usedefaultprefix>
<grid_parent_offset_auto />
<attr name="grid_label">forest</attr>
<attr name="grid_fill">White</attr>
<exit alias="south" to="room_4">
<inherit name="southdirection" />
</exit>
<exit alias="east" to="room_2">
<inherit name="eastdirection" />
</exit>
</object>
In the UI, you would go to the attributes tab and enter it on the grid_image line.
OK, you may need to add the attribute, I couldn't find it in another game I have.

Summa_Civis
31 Oct 2022, 22:47Thanks, DarkLizerd!
I was able to easily get the grid_fill and grid_label to work! I haven't been able to work in the attribute grid_image and will keep working at it.
Sorry, I'm really new at this still but I feeling that I have been making progress! The people on the forum have been amazing!!

Summa_Civis
01 Nov 2022, 02:47I looked through the Quest Forum and found GridImageLib by KV and was able to plug in the library and Javascript code into the game. After a few modifications, I can now add images on the grid, which is freaking awesome!! I'm going to have to look through the QuestJS that Pixie dropped earlier in this thread and see if I can modify the yellow circle image that represents the player.
One other question.
It seems that that I can load an image onto the map using the GridImageLib but the code doesn't recognize gif animations (unless I'm not doing something correctly, which is a very realistic possibility.) Is there a way to place animations on the map?
towardssize
29 Nov 2022, 03:09Many useful information at
https://github.com/ThePix/QuestJS/wiki/basket random/Node-based-Maps
I can load an image onto the map using the GridImageLib, but the code does not recognize gif animations (unless I'm doing something wrong, which is a very real possibility). Is it possible to add animations to the map?