<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[pause command]]></title><description><![CDATA[<p>hello everyone, I am truly enjoying this game and learning java scripting.<br>
I was wondering if there is a way to pause a command line for script behaviors.<br>
 I run into an issue with my creeps dying then having to clear my main script and add the module again.  here is my spawn module that works but when a creep decays it throws an error in my console and all creeps stop moving.</p>
<pre><code>var mod = require('DRONE2');
var mod = require('DRONE1');
var mod = require('DRONE0');

Game.spawns.MATRIX.createCreep( [WORK, CARRY, MOVE, MOVE], 'DRONE2' );
Game.spawns.MATRIX.createCreep( [WORK, CARRY, MOVE, MOVE], 'DRONE1' );
Game.spawns.MATRIX.createCreep( [WORK, CARRY, MOVE, MOVE], 'DRONE0' );
var count = 0;

        if (Memory.creepCounter &amp;&amp; Memory.creepCounter &gt; 2) {
            Memory.creepCounter--;
            return
        }
module.exports = 'spawntest';
</code></pre>]]></description><link>http://screeps.com/forum/topic/1742/pause-command</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 07:20:11 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/1742.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 May 2015 20:50:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to pause command on Invalid Date]]></title><description><![CDATA[<p>hello everyone, I am truly enjoying this game and learning java scripting.<br>
I was wondering if there is a way to pause a command line for script behaviors.<br>
 I run into an issue with my creeps dying then having to clear my main script and add the module again.  here is my spawn module that works but when a creep decays it throws an error in my console and all creeps stop moving.</p>
<pre><code>var mod = require('DRONE2');
var mod = require('DRONE1');
var mod = require('DRONE0');

Game.spawns.MATRIX.createCreep( [WORK, CARRY, MOVE, MOVE], 'DRONE2' );
Game.spawns.MATRIX.createCreep( [WORK, CARRY, MOVE, MOVE], 'DRONE1' );
Game.spawns.MATRIX.createCreep( [WORK, CARRY, MOVE, MOVE], 'DRONE0' );
var count = 0;

        if (Memory.creepCounter &amp;&amp; Memory.creepCounter &gt; 2) {
            Memory.creepCounter--;
            return
        }
module.exports = 'spawntest';
</code></pre>]]></description><link>http://screeps.com/forum/post/7544</link><guid isPermaLink="true">http://screeps.com/forum/post/7544</guid><dc:creator><![CDATA[shadowmatrix]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to pause command on Invalid Date]]></title><description><![CDATA[<pre><code>if(Memory.pause == undefined)
   Memory.pause = false;

if(Memory.pause)
   return
</code></pre>
<p>add that to the top of your main module. If you want to pause the scripts. go into your memory editor panel. find the pause option. and manually set it to false. </p>]]></description><link>http://screeps.com/forum/post/7545</link><guid isPermaLink="true">http://screeps.com/forum/post/7545</guid><dc:creator><![CDATA[Fusspawn]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>