mattxr 9 Posted July 31, 2007 Is there any way to detect the AI Skill Level via trigger or something? Share this post Link to post Share on other sites
raedor 8 Posted July 31, 2007 Look at this page. Try "skill aiunitone"... Share this post Link to post Share on other sites
mattxr 9 Posted July 31, 2007 trg=createTrigger["EmptyDetector",getPos player]; trg setTriggerArea[10000,10000,0,false]; trg setTriggerActivation["ANY","PRESENT",true]; trg setTriggerStatements["this", "'{_x = Skill} forEach thislist'", ""]; That doesnt work i dont get no hint saying what the AI Skill is as the AI is not named. Or is there any command on how to find a units name? Share this post Link to post Share on other sites
crashdome 3 Posted August 1, 2007 you don't need a "name" and your trigger statement is completely malformed. it should be <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> trg setTriggerStatements["this", "'{myUnitSkillVariable = Skill _x} forEach thislist'", ""]; but that doesn't matter anyways... first, I don't see where you "hint" anything.. second, the above code is useless because the global variable I made up "myUnitSkillVariable" will change for each unit and thus you only get the last unit's skill anyways. Share this post Link to post Share on other sites