Jump to content
Sign in to follow this  
mattxr

Any way to detect the AI Skill

Recommended Posts

Is there any way to detect the AI Skill Level via trigger or something?

Share this post


Link to post
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×