I've been lazy. I should probably have learned JASS 3 years ago when I started my project, but it's been so off and on(with time) that I never sat down for it.
Is it possible with JASS to monitor the entire map(160x160)'s units to see when they're within range of a building, then have the unit attack the building, if they're not attacking another unit? The units are consistently being spawned, so it would have to be able to update new units, not preset units already on the map.
If unit is 100y from building and building is not invulnerable, order unit to attack building.
But then, have a script to monitor when enemies are attacking them, so they can be ordered to attack their attacker, and if they kill the attacker, back to the building, if it's alive?
I could probably figure something out with GUI, but I believe JASSing this would be much more beneficial. Plus I want to alpha/beta test my map already.
Is it possible with JASS to monitor the entire map(160x160)'s units to see when they're within range of a building, then have the unit attack the building, if they're not attacking another unit? The units are consistently being spawned, so it would have to be able to update new units, not preset units already on the map.
If unit is 100y from building and building is not invulnerable, order unit to attack building.
But then, have a script to monitor when enemies are attacking them, so they can be ordered to attack their attacker, and if they kill the attacker, back to the building, if it's alive?
I could probably figure something out with GUI, but I believe JASSing this would be much more beneficial. Plus I want to alpha/beta test my map already.