- Joined
- May 2, 2011
- Messages
- 1,351
Hey everyone,
Why does it seem to me that Hard AI will prioritize targeting siege unit more than Normal and easy difficulty? towers also seem to prioritize unarmored units.
Could it have something to do with call SetTargetHeroes(false) which I found on some AI tutorials?
If I set it to true, will normal and easy towers target un-armored units? will they also target siege units?
Thanks!
below is the AI tutorial I am talking about
Why does it seem to me that Hard AI will prioritize targeting siege unit more than Normal and easy difficulty? towers also seem to prioritize unarmored units.
Could it have something to do with call SetTargetHeroes(false) which I found on some AI tutorials?
If I set it to true, will normal and easy towers target un-armored units? will they also target siege units?
Thanks!
below is the AI tutorial I am talking about
JASS:function CampaignAI takes integer farms, code heroes returns nothing if GetGameDifficulty() == MAP_DIFFICULTY_EASY then set difficulty = EASY call SetTargetHeroes(false) call SetUnitsFlee(false) elseif GetGameDifficulty() == MAP_DIFFICULTY_NORMAL then set difficulty = NORMAL call SetTargetHeroes(false) call SetUnitsFlee(false) elseif GetGameDifficulty() == MAP_DIFFICULTY_HARD then set difficulty = HARD call SetPeonsRepair(true) else set difficulty = INSANE endif call InitAI() call InitBuildArray() call InitAssaultGroup() call CreateCaptains() call SetNewHeroes(false) if heroes != null then call SetHeroLevels(heroes) endif call SetHeroesFlee(false) call SetGroupsFlee(false) call SetSlowChopping(true) call GroupTimedLife(false) call SetCampaignAI() call Sleep(0.1) set racial_farm = farms call StartThread(function CampaignBasics) call StartBuildLoop() endfunction