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

Topics - mediavieja

#1
AI Scripts / A.I Script Question
March 11, 2010, 11:50:23 PM
Hi, im new to all this AI thing but im starting to figure it out, right now im trying to make some improvements on the defense capabilities of the AI, but there are a few commands that i still cant figure it out completely how they work, so if anyone can gimme a hand here it would be really nice :) so far iv been able to make the AI very defensive but when she builds the defenses they are too far from the entrance of the place and too disperse around the base, so that's what im trying to fix, anyways these are the commands im trying to figure out:

const int c_avoidChokePoint         = 0x00020000;
whats a ChokePoint? and whats that 0x00020000 the distance?

AISetStockUnitNext( player, 3, c_PU_Stalker, c_stockAlways );
AISetStockUnitNext( player, 3, c_PB_Pylon, c_stockAlways  );
and what does the c_stockAlways do on both, does that means that with that command i only have to use it once on the script and from that on i wont have to repeat it again cause the AI will always have 3 pylons or stalkers and whenever she doesnt she will build them?

thx in advance :)