# Time Delay Protocol?

**URL:** <https://forum.kirupa.com/t/time-delay-protocol/189650>\
**Category:** Uncategorized\
**Created:** [June 5, 2006, 12:13am UTC](https://forum.kirupa.com/t/time-delay-protocol/189650 "2006-06-05T00:13:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shard](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Shard](https://forum.kirupa.com/u/Shard)\
**Post date:** [June 5, 2006, 12:13am UTC](https://forum.kirupa.com/t/time-delay-protocol/189650/1 "2006-06-05T00:13:07Z")

</div>

Greetings all - Iam having a REAL problem with actionscript timing and hope that someone can help me? … please … 🙂

I have just finished writing my own Texas Hold em poker client and need help with slowing it all down. basically the AI players make their call/raise/fold decisions at the speed of light and I want to slow them down for a custom length of time before they act. Ideally what I would like is a prototype that I could call with a custom time length and it would count that long before executing their actions e.g.

if(plyr1\_condition1 && plyr1\_condition2){  
wait(5);  
execute actions  
}  
else {  
wait(10);  
execute actions;  
}  
}  
…etc … as move onto next player

Any help greatly appreciated - setInterval is just one of those actionscript things I’ve never been able to get my head around. lol:esmirk:
