How to generate a random name with a preceding nametag in Screeps?
<p>In the Programming Game Screeps I spawn creeps by using:</p>

<pre><code>if(transporters.length &lt; 0 &amp;&amp; harvesters.length &gt; 2) {
var newName = Game.spawns['SpawnZone'].createCreep([WORK,CARRY,MOVE], undefined, {role: 'transporter'});
console.log('Spawning new Transporter: ' + newName);
}
</code></pre>

<p>The 'undefined' tag is to spawn the creep with a random name. Now I'm wondering since I got different types of creeps if I can add a roletag infront of it? Like, for example, [Transporter] RandomName.</p>

<p>Is that possible?</p>