Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Doix

#16
AI Development / Re: Improved combat AI
March 09, 2010, 03:56:29 PM
Hi Aeg1s. Nice work on changing the AI stuff. Do you have a reason to use an array instead of AISetUserInt/GetUserInt?


const int c_townGather = 109;

int GetTownGather(int player) {
    AIGetUserInt(player,c_townGather);
}

void SetTownGather(int player, int town) {
    AISetUserInt(player,c_townGather,town);
}


Don't you think that is better? This way it'd work for an unlimited number of players + you're not allocating space in an array which doesn't get used (assuming there are less than 8 players).

Sorry, if it looks like I'm trying to convince you :p, had this discussion with Sylvex and he really doesn't like AISetUserInt and AIGetUserInt for a reason which is beyond my comprehension.
#17
AI Scripts / Re: Advanced Melee AI 2(AMAI)
March 07, 2010, 05:50:14 AM
That code is in the default AI... Read the ifs, if (PlayerDifficulty(player) >= c_skirCheater), PlayerDifficulty depends on the APM, in this AI the APM is 400, which would make the difficulty less than c_skirCheater and that code would never run.