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 - Yuna_Q

#1
AI Help Section / how to get unit's killcount ?
March 06, 2010, 01:55:26 PM

UnitGetPropertyInt(aiUnit, c_unitPropEnergy, c_unitPropCurrent);


its maybe looks like this...
c_unitPropKillCount doesn't work.
#2

const string c_PR_CarrierLaunchSpeedUpgrade = "CarrierLaunchSpeedUpgrade"; //
const string c_TR_MissileTurretRange   = "HiSecAutoTracking";        //
const string c_TR_RavenEnergy           = "RavenCorvidReactor";
const string c_TR_DurableMaterials   = "DurableMaterials"; //
const string c_TR_BattlecruiserEnergy   = "BattlecruiserBehemothReactor";                // BehemothReactor
const string c_TR_WeaponRefit   = "BattlecruiserEnableSpecializations";  //WeaponRefit
const string c_ZR_ChitinousPlating    = "ChitinousPlating";
const string c_ZR_AnabolicSynthesis    = "AnabolicSynthesis";
#3
AI Development / Researching "HiSecAutoTracking"
March 04, 2010, 05:44:12 AM
At terran research upgrades parts in requirementsai.galaxy

add this


const string c_TR_MissileTurretRange1   = "HiSecAutoTracking";


and, use like this

AISetStock( player, 1, c_TB_EngineeringBay);   
AISetStock( player, 1, c_TR_MissileTurretRange1);
#4
if ai doesnt make factory tech addon ,
check the number of barracks's tech addon
on sc2 buildings can share their addons.
so, if the number of barracks addon is 2 then,
number of factory addon must more than barracks.

wrong coding

AISetStock( player, 2, c_TB_Barracks );
AISetStock( player, 2, c_TB_BarracksTechLab );
AISetStock( player, 2, c_TB_Factory);
AISetStock( player, 2, c_TB_FactoryTechLab);


right coding

AISetStock( player, 2, c_TB_Barracks );
AISetStock( player, 2, c_TB_BarracksTechLab );
AISetStock( player, 2, c_TB_Factory);
AISetStock( player, 4, c_TB_FactoryTechLab);
#5
AI Help Section / how to repair buildings ?
March 02, 2010, 05:20:03 AM
can't find repair-like function in ai function.

and, how to detect damaged building ?

thx