Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Skin.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Title.php on line 132

Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Title.php on line 219

Strict Standards: Declaration of ConcatenatedGzipHistoryBlob::addItem() should be compatible with HistoryBlob::addItem() in /home/jkhub/public_html/library/includes/HistoryBlob.php on line 168

Strict Standards: Declaration of ConcatenatedGzipHistoryBlob::setText() should be compatible with HistoryBlob::setText() in /home/jkhub/public_html/library/includes/HistoryBlob.php on line 168
JK Hub - [Reference]

COG Verb - Reset

Removes all threads/calls in the cog "thread stack" except the current one. Thus, only the current thread will continue to run.

Syntax:

 Reset();


Reset() will allow infinite loops, so be careful.

For example,

     loop:
        Print("Hi");
        call loop;
     Return;

loops 5 times then terminates.

but

     loop:
        Print("Hi");
        Reset();
        call loop;
     Return;

creates an infinite loop and locks up Jedi Knight. A recursive loop can be used, provided there is a condition inside that terminates it.

  • Create:
This page was last modified 18:19, 28 August 2007.   This page has been accessed 1,442 times.