I faced odd behavior of blocking command <wait/> in AI scripts - it is never done. I'm investigating original script "trade.find.commander.xml" (v2.60) and made following diff patch:
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<diff>
<add sel="//attention/actions/do_if[@value='$buyoffers.count gt 0']/do_all[@exact='$buyspaces.count']/do_all[@exact='$buyoffers.count']/do_if[@value='$buyoffers.{$i}.available']/wait" pos="before">
<debug_text text="'wait started'" chance="$debugchance"/>
</add>
<add sel="//attention/actions/do_if[@value='$buyoffers.count gt 0']/do_all[@exact='$buyspaces.count']/do_all[@exact='$buyoffers.count']/do_if[@value='$buyoffers.{$i}.available']/wait" pos="after">
<debug_text text="'wait done'" chance="$debugchance"/>
</add>
</diff>
Code: Select all
<wait min="5s" max="10s"/>
Code: Select all
<debug_text text="'wait started'" chance="$debugchance"/>
<wait min="5s" max="10s"/>
<debug_text text="'wait done'" chance="$debugchance"/>
Why? There are no any error in debug log.
Thank you.