Hey guys its me again,
i have some trouble with my AI trigger's. I couldnt find a way to give my AI controlled player's a random hero.
Altough i tried a few things.
For example: i made a unit-type variable and let the computer select with a random integer. This had 2 problems: the computer always selected the same unit and i could select the same hero. I didnt know how to remove it from the tavern or remove the hero that the AI picked from the tavern.
I tried some crazy stuff with region but that was way too crazy to handle.
I also could not find a tutorial that would explain what i need. THe tutorials i find were about picking random heroes for all players and so on.
I basicly need a trigger that picks a random hero for AI and then blocks the hero for other players and the other way around. So that AI doesnt pick the hero i just picked.
I would be very glad if someone could help me with this.
i have some trouble with my AI trigger's. I couldnt find a way to give my AI controlled player's a random hero.
Altough i tried a few things.
For example: i made a unit-type variable and let the computer select with a random integer. This had 2 problems: the computer always selected the same unit and i could select the same hero. I didnt know how to remove it from the tavern or remove the hero that the AI picked from the tavern.
I tried some crazy stuff with region but that was way too crazy to handle.
I also could not find a tutorial that would explain what i need. THe tutorials i find were about picking random heroes for all players and so on.
I basicly need a trigger that picks a random hero for AI and then blocks the hero for other players and the other way around. So that AI doesnt pick the hero i just picked.
I would be very glad if someone could help me with this.