|
发表于 2007-2-12 11:25:45
|
显示全部楼层
你的问题请自己看ERM帮助中的Flags and Variable中的内容进行解答:
我摘一段在这里:
Flag 999, which is set to 1 if the current player (when trigger executes) is a player "here" and 0 if he or she is at another PC. The AI has it always set to 0. If flag 999 is set, you can be sure that this is human and he is here. It's working for all triggers.
Flag 1000 has two meanings, depending on whether its used in a battle trigger or not. For a non-battle trigger, this flag will be set to true when a hero owned by a human player visits a map object or is the subject of a trigger such as a timer or level gain check. If a computer (AI) hero visits an object, flag 1000 will be set to false. Again, you can set this flag yourself but it's probably safest not to, since you may wish to check its value in a script to determine if the subject is a human or AI player.
Therefore, if checking the flag's condition -1000 means AI and 1000 means Human.
For battle triggers (e.g., !?BA0, !?BG, !?BF, !?BR, etc.) Flag 1000 is a check for a real vs. theoretical AI battle.
If Flag 1000=1 (True), it means there's a real battle (at least one human opponent).
If Flag 1000=0 (False), it means that it's a theoretical AI-only battle. |
|