Adding additional pages to the map when Garrett find a map on the level - by Master of Dromed
Master of Dromed on 6/6/2020 at 17:57
Hi everyone! I'm trying to create an objective similar to the objective in T2OM Trail of Blood which requires Garrett to find a map on the level. In Trail of Blood you start with 2 map pages (a note page and another page with a forest picture on it). After you find the map near the first house of the pagan village and you complete the objective about finding a map to figure out where you are, the game adds another page on your map. Additional to this when you open the map scroll in your inventory it opens the new page of the map (page 3).
I tried to recreate this - i have 6 pages of maps on the start of the mission: page000.png, page001.png, ....., page005.png. After Garrett meet a servant on a certain place he receive a scroll with another 2 pages of the map: page006.png and page007.png.
What i tried until now:
- i set map_max_page to 5
- added a hammer scroll with the following properties: Book - Art: parch3, Book - Text: a random text, Inventory: Object name: name_NewquarterMap, Room - Automap {6, -1}, S-Scripts{MapSupplement; StdButton;;;FALSE}
-added a QuestVarTrap with the following properties: Trap - QuestVar: =7:map_max_page, Script - TrapControlFlags: NoOff
- added a link ControlDevice from the Hammer Scroll to the QuestVarTrap
Problem is when Garrett opens the scroll it opens the map pages in the game but fails to add the additional pages page006.png and page007.png to the map. I can only see the initial 6 pages. It seems the QuestVarTrap fail to set the maximum number of map pages to 7. My map is not an automap, just a normal map. I use OldDark.
- EDIT -
Problem partially solved: I switched the link StdButton on the hammer scroll with the link TrigInvFrob and now the QuestVarTrap is working. For some reason the script StdButton worked in the OM but is no longer working now.
Still when i frob the scroll in my inventory it opens the first page of the map(the notes one) instead of page 6 as intended. It seems the property Room - Automap{6, -1} has no effect at all and i can't figure out why.. maybe because my map is not an automap? In fact what is the script MapSupplement doing?
nicked on 7/6/2020 at 09:14
If you don't have an automap setup, I believe it will always default to the first page. It works in trail of blood because the roombrush you find the map in is a room on the map page you have found, so it just automatically flicks to it (I assume, I've not looked at that specific setup).
Master of Dromed on 7/6/2020 at 09:27
Quote Posted by nicked
If you don't have an automap setup, I believe it will always default to the first page. It works in trail of blood because the roombrush you find the map in is a room on the map page you have found, so it just automatically flicks to it (I assume, I've not looked at that specific setup).
It seems the script MapSupplement open the map pages pointing to the first page of the map as you said. So i have to give up my ambitions to open a specific map page when frobbing the scroll. It looks a bit odd but i don't have much of a choice. Thank you for your answer!
R Soul on 7/6/2020 at 11:06
MapSupplement sets the max page number and just brings up the map (same as the player pressing M), and then the game works out for itself what page to show. Nicked is right about why it works in Trail of Blood.
Script descriptions here: (
https://www.thiefmissions.com/telliamed/scripts.html)
In this case it might be best to use a book text saying "Here are a couple of maps of the New Quarter..." or use the conv with the servant to tell the player. Also consider replacing TrigInvFrob with TrigContained so that the player gets the extra pages just by getting the scroll, not by opening it.
Finally, something requires clarification: You say your maps are png files but you're using OldDark. I'm not about to install OldDark just to check on this, but I'm fairly sure it only supports pcx and gif maps.
Master of Dromed on 7/6/2020 at 13:52
Quote Posted by R Soul
MapSupplement sets the max page number and just brings up the map (same as the player pressing M), and then the game works out for itself what page to show. Nicked is right about why it works in Trail of Blood.
Script descriptions here: (
https://www.thiefmissions.com/telliamed/scripts.html)
In this case it might be best to use a book text saying "Here are a couple of maps of the New Quarter..." or use the conv with the servant to tell the player. Also consider replacing TrigInvFrob with TrigContained so that the player gets the extra pages just by getting the scroll, not by opening it.
Finally, something requires clarification: You say your maps are png files but you're using OldDark. I'm not about to install OldDark just to check on this, but I'm fairly sure it only supports pcx and gif maps.
Thank you for your answer R Soul! Very interesting scripts list!
You can't see .png files in OldDark but i build this misison to be fully playable in NewDark. I can see them after packing the mission with zip and play it with Darkloader in NewDark.
john9818a on 12/6/2020 at 05:19
What happens when you set map_max_pages to 7 at the start?
Master of Dromed on 13/6/2020 at 08:18
Quote Posted by john9818a
What happens when you set map_max_pages to 7 at the start?
If i set map_max_pages to 7 at the start you can see all the map pages including Raputo's areas but i want the last 2 pages to be seen after Garrett meets Cedric in the market. Cedric give Garrett the last two pages of map. I changed the story a bit for the update.