|
Thread: Would H3 profit from caravans? (not exactly working in the fashion of H4 or H5) | This thread is pages long: 1 2 · «PREV |
|
doom3d
Known Hero
Avatar of general Z
|
posted March 08, 2009 05:42 PM |
|
|
First part is fully done and tested. First caravans departed.
The 7 caravan/town limit works also propely.
Now working on arrival of caravans. Here the idea is clear, but scripting will take some time.
@Valery: Summer is coming, beautiful ladies in skirts.. will definitely slow down development. More sunlight always lowers electricity bills.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted March 08, 2009 07:35 PM |
|
|
Doom,
Do you have anything ready related to this script?
I am working on a map where I have to send units from underground to the surface without using teleporters.
So far I placed them as wandering monsters and set up the destination, when reach the destination, message is popping and they are set to friendly. But a caravan would be more appropriate.
____________
Era II mods and utilities
|
|
doom3d
Known Hero
Avatar of general Z
|
posted March 09, 2009 06:48 PM |
|
Edited by doom3d at 18:52, 09 Mar 2009.
|
re:
Hi,
I can tell You how to create a caravan and how to send it to a town.
It's quite easy with my bitwise packer library, wich was released.
But actually I'm working on the code wich gives back units when they arrived.
If You want to put them into a Town dwelling, then it's much easier.
There I don't have to check if there is a free garrison slot, or slot with the same type of creatures, or if there are two slots of the same kind with less, then 4 Warlord's Banner together, or free slot of visitor hero, or.. You know.
BTW, wich map is it? Might vs. Magic?
Best Renards ,
Eperbab (aka Doom3d)
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted March 09, 2009 08:16 PM |
|
|
The map in construction is here:
300 spartans
Well, there is no town, so they could be placed in a garrison. The garrison would be empty so there is no need to check, any way this part I can code.
Have something for me?
____________
Era II mods and utilities
|
|
doom3d
Known Hero
Avatar of general Z
|
posted March 15, 2009 10:49 AM |
|
|
Hi Valery,
I haven't got any mail from You. If You just want to send a few caravans, then You don't need to use bitwise packer.
Just do the following:
- store creature stack info to v variables, add a timer +garrison slot nr. to receive creatures
(quantity, creature type id, experience, number of Warlord's B.)
- kill stack
- decrement timer once a day (TM1 trigger with color check)
- place creatures to garrison when timer is zero, and clear stack variables (if the garrison is surely empty, then don't check it)
- enjoy
Please notice, that my caravans script will not show where the caravans are, until they arrive.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted March 15, 2009 02:53 PM |
|
|
Yes, this option was discussed too. It is only that it looks unrealistic. I would hope to find something else.
I sent mail but seems not working. I will try another address from the 6 you gave me.
I think you can have an option t show caravans moving. First you need the object and animated. Then script it as a wandering monster and link his moves to the AI turn. (IE moves 1 tiles during blue, 1 turn during green and so on).
In this way we have faster caravans for bigger maps where there are more players and slower caravans in smaller maps.
____________
Era II mods and utilities
|
|
pol
Known Hero
.^.
|
posted March 15, 2009 05:58 PM |
|
|
In that case here would arise possibility to attack caravans.
For me would be enough to let them work like collecting points, assign hero and reduce microclickmanagement. Close, to how's done now.
|
|
doom3d
Known Hero
Avatar of general Z
|
posted March 16, 2009 07:16 PM |
|
Edited by Cepheus at 23:55, 23 Jul 2011.
|
Quote: In that case here would arise possibility to attack caravans.
For me would be enough to let them work like collecting points, assign hero and reduce microclickmanagement. Close, to how's done now.
I am pleased to hear, that my idea is close to your needs.
So please, tell me the differences.
@Valery: problems with wandering monsters:
- hard coded moving algorithm is buggy. Time to work out moves of n unit is something around exp(n^2) class. Actually, the game freezes/crashes around 180..220 WMs, and slows done around 180.
I have discovered this when I have rerwritten the WM script to get more WMs proportional to map size.(now it is an official part of Script Update)
*** If You modify this script: Please, do not increase MAX number of WMs above 160. (80/map level)
- caravans can be blocked/attacked
- they have to use roads
- speed cannot be adjusted, depends on number of players (??)
=> it would be way too slow and risky
---
Moderator note: This thread has been inactive for two years or longer, and has been archived (closed) to prevent necro-posting. If you wish to revive the topic, send a message to Cepheus or create a new thread in its place. Thank you.
|
|
|