- Joined
- Feb 2, 2006
- Messages
- 1,589
Hi,
my map has lots of water areas and I would like to give the AI players some attacking ships. I want players who have bases next to water sometimes be attacked by other player armadas even if the hero and the main army is not part of it. Ideally, I could sync it with the AI's actual target if the target is reachable via water.
There is no native support in Warcraft III from what I have found so far:
I could create some shipyards via triggers if the AI is not able to build them at the correct location where nothing is blocked and I could try to exclude trained ships with:
since it seems that AI scripts only have one single attack group at a time and some defending units.
Hence, I need to exclude the ships and somehow let them patrol on the map to some islands as soon as they are a group of n, so when they see another ship/building, they will start fighting.
I want to store all areas which are reachable from the water and as soon as the AI chooses a base which is reachable from the water in its AI script to be attacked, I trigger the corresponding group of ships to go there instead of simply defending/patroling on the sea.
This would require some custom triggers.
Is there any easier/better way to achieve this/any existing system and do you think it might work this way?
Btw. what is the effect of the AI native:
for?
Does it mean they can attack through water?
my map has lots of water areas and I would like to give the AI players some attacking ships. I want players who have bases next to water sometimes be attacked by other player armadas even if the hero and the main army is not part of it. Ideally, I could sync it with the AI's actual target if the target is reachable via water.
There is no native support in Warcraft III from what I have found so far:
- [AI] - WC3: TFT - Mod Computer AI to Use Boats
- Suggestion: Add Shipyard and Water functionality to AI
- [General] - Getting AI to use Transport ships.
- [AI] - I need an AI expert
- [General] - Getting AI to use Transport ships.
- [AI] - Ships
I could create some shipyards via triggers if the AI is not able to build them at the correct location where nothing is blocked and I could try to exclude trained ships with:
JASS:
native RemoveGuardPosition takes unit hUnit returns nothing
since it seems that AI scripts only have one single attack group at a time and some defending units.
Hence, I need to exclude the ships and somehow let them patrol on the map to some islands as soon as they are a group of n, so when they see another ship/building, they will start fighting.
I want to store all areas which are reachable from the water and as soon as the AI chooses a base which is reachable from the water in its AI script to be attacked, I trigger the corresponding group of ships to go there instead of simply defending/patroling on the sea.
This would require some custom triggers.
Is there any easier/better way to achieve this/any existing system and do you think it might work this way?
Btw. what is the effect of the AI native:
JASS:
native SetAmphibious takes nothing returns nothing
Does it mean they can attack through water?