merchant quest on a new map
Posted: Thu Jan 02, 2003 1:37 pm
Got a different map than the OSI map. Want to get the merchant quests working. If I modify the file scripts\include\towns.inc to have the towns that are on my map, do I have to also change pkg\npcs\townfolk\merchants\merchant_quest.src because I don't have 13 towns? I see this bit of code
Say I had only 5 towns. What would I have to change this too? I assume the 13 would become a 5, but what is that RandomInt (4) about?
Anything else I would need to change that I'm not noticing?
Thanks for any help.
var mytown := FindMyTown (merchant);
var chosentown := mytown;
if (!chosentown or RandomInt (4) = 1)
chosentown := RandomInt (13) + 1;
endif
Say I had only 5 towns. What would I have to change this too? I assume the 13 would become a 5, but what is that RandomInt (4) about?
Anything else I would need to change that I'm not noticing?
Thanks for any help.