<?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[Get reference to selected entity in console]]></title><description><![CDATA[<p>Quite often I am in the situation of wanting to call some method of the selected object (spawn, creep, ...) in the console.</p>
<p>Currently I have to copy the objectId of the selected object, then call <code>Game.getObjectById('copiedId')</code> to get the reference to the selected object.</p>
<p>In most browsers debug tools you can get a reference to the currently selected DOM element by just accessing <code>$0</code> and I'd love to have this feature in the screeps console so I can just call something like <code>$0.spawnCreep()</code> or <code>$0.moveTo()</code> etc.</p>
]]></description><link>http://screeps.com/forum/topic/1998/get-reference-to-selected-entity-in-console</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 03:52:52 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/1998.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Nov 2017 16:28:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Get reference to selected entity in console on Invalid Date]]></title><description><![CDATA[<p>Quite often I am in the situation of wanting to call some method of the selected object (spawn, creep, ...) in the console.</p>
<p>Currently I have to copy the objectId of the selected object, then call <code>Game.getObjectById('copiedId')</code> to get the reference to the selected object.</p>
<p>In most browsers debug tools you can get a reference to the currently selected DOM element by just accessing <code>$0</code> and I'd love to have this feature in the screeps console so I can just call something like <code>$0.spawnCreep()</code> or <code>$0.moveTo()</code> etc.</p>
]]></description><link>http://screeps.com/forum/post/8824</link><guid isPermaLink="true">http://screeps.com/forum/post/8824</guid><dc:creator><![CDATA[kalaan]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Get reference to selected entity in console on Invalid Date]]></title><description><![CDATA[<p>This. I like that idea a lot. ive gone so far as to do stuff like <code>global.goid = Game.getObjectId;</code> just to make it easier to access stuff, but yes. this would make life so much easier.</p>
]]></description><link>http://screeps.com/forum/post/8895</link><guid isPermaLink="true">http://screeps.com/forum/post/8895</guid><dc:creator><![CDATA[SemperRabbit]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>