I will handle this. I already created the bitwise packer script. It enables You to read/write user defined composite variables stored in a series of "v" variables. I may use PO numbers as well.SantaGremlin wrote:First, thank you all for your work!
- I heard caravans is deleloped already. Is it still so?
exemple: Caravan type, 3 bit owner flag, 8 bit creature type, 3 bit timer, 10 bit number of creatures, 10 bit rounded experience. So we will have max. 7 caravans per town, stored on 48*7*34bit. I may store stack experience as well (required by caravans going from town to town).
** update **
Please, share your ideas about AI support. It's very hard to predict where the AI will need troops, and also hard to tell the AI that caravans will arrive.. (actually impossible)
I didived the script into the following moduls:
1. creating caravans from town
2. handling arrived caravans by player
3. creating caravans from dwelling
4. caravan moving algorithm (approx. 15 tiles/day, half day for map level change)
5. AI support
Modul 1 is almost done. From here I can copy most of the code for modul 3. Modul 4 is easy, the idea is clear. I will solve modul 2, but have to think over the last one. So, any idea?
** update 2:
** update 3: