Hi Luke,
Here is what I found so far.
The attack aircraft needs a team=2 flag. That will shut the program down
quick. I know from experience, lol.
There is another problem though. There is resources that get transferred,
but the problem is that these start to run this infinite loop thing.
I think what is happening, is that the structures and units that have the
same resource points are transferring back and forth. So it becomes this
constant back and forth.
So I think what I would recommend is to put a no_self_cast flag on the
skills that transfer the points, and then I would use some kind of
limiting point, like actions or transfer that only allows a few transfers in
one round.
If the resources are always 250 resources,you don't need to have the
receiving unit literally get the points. Instead, the unit can receive the
resource, and just use the skill that drops off the resource use a different
point, like full load, or supply or useable goods. Something that indicates
the unit has the goods and can transfer it.
This then can use the skill with the ai_heal flag, and that can then turn
the points back into resources to the receiver of the resources.
That sounds right in my head, but I am not sure I explained it right.
If it is alright, I will try to make an example in the defense map and see if
that will help. I have had the same things happen t me in warlords so it
was all trial and error on my part till I finally got it in my thick head.
It does look interesting though. I keep thinking of that antman movie. He
had all these different ants do crazy stuff that would be perfect I think for
your map pack.
al
From: ian-reeds-games-bounce@xxxxxxxxxxxxx
[mailto:ian-reeds-games-bounce@xxxxxxxxxxxxx] On Behalf Of Luke Andrews
Sent: Thursday, March 30, 2017 1:15 PM
To: ian-reeds-games@xxxxxxxxxxxxx
Subject: [ian-reeds-games] defence of an ant hill
I might as well give you guys the link of what I have so far, It seems to
work fine except that it crashes after the first turn.
https://www.dropbox.com/s/c2vf1b4raozha35/defence%20of%20an%20ant%20hill.zip?
dl=0