Results 1 to 4 of 4

Thread: Any way to detect the AI Skill

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

    MattXR ( MxR )

    Check out my Twitter BIS Fans and Sub!
    -- MRKCCO Twitter --


  2. #2
    Moderator, ret.
    oida ouk eidos
    raedor's Avatar
    Join Date
    Sep 30 2002
    Location
    Germany, Austria
    Posts
    5,284
    Look at this page. Try "skill aiunitone"...

  3. #3
    Captain MattXR's Avatar
    Join Date
    Jan 17 2005
    Location
    United Kingdom
    Posts
    6,027
    Author of the Thread
    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?




  4. #4
    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&#91;&#34;this&#34;, &#34;&#39;{myUnitSkillVariable = Skill _x} forEach thislist&#39;&#34;, &#34;&#34;&#93;;

    [/QUOTE]

    but that doesn&#39;t matter anyways... first, I don&#39;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&#39;s skill anyways.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •