screeps 游戲中的 tips

screeps 系列教程

screeps 里會(huì)時(shí)不時(shí)的給你一個(gè)提示纯续,平時(shí)也沒(méi)怎么看過(guò),今天特地點(diǎn)了一遍灭袁,把常見(jiàn)的 tip 都記錄一下供大家參考猬错。


Walking over swamps is 5 times slower compared to plain land.

在沼澤地上行走比平原慢5倍。


Ramparts and walls initially have 1 hit point. Repair them after construction.

城墻和城墻最初有1點(diǎn)hit茸歧。要記得施工后進(jìn)行維修倦炒。


If you want to play from scratch, you can always Respawn in a new room.

如果你想從頭開(kāi)始玩,你可以在一個(gè)新房間里重生软瞎。


You can output HTML content to the console, like links to rooms.

您可以將HTML內(nèi)容輸出到控制臺(tái)逢唤,例如一個(gè)跳轉(zhuǎn)到指定房間的超文本鏈接。


The RANGED_ATTACK body part is 2 times weaker than ATTACK and 2 times costlier at that.

RANGED_ATTACK身體部件的相對(duì)傷害只有ATTACK部件的 1/2涤浇,成本卻高2倍鳖藕。


Observers allow to get the Room object for the rooms that have no objects of yours.

Observers可以獲取那些沒(méi)有你單位存在的房間對(duì)象。


Respawning in a chosen room would automatically destroy all structures except walls and roads

在選定的房間重生會(huì)自動(dòng)破壞房間內(nèi)除墻和道路以外的所有建筑芙代。


You can build and repair roads in any rooms, even neutral ones.

你可以在任何房間修建和維修道路吊奢,甚至是中立房間盖彭。(容器container也可以)


A creep can execute some commands simultaneously in one tick, for example move+build+dropEnergy.

creep可以在一個(gè)tick內(nèi)同時(shí)執(zhí)行多個(gè)命令纹烹,例如 move + build + dropEnergy


Use storage to not lose surplus of mined resources.

使用storage來(lái)存儲(chǔ)開(kāi)采出來(lái)的過(guò)量資源召边。


There is a keyword debugger in the simulator that stops your script in the browser.

模擬器中有一個(gè)關(guān)鍵字debugger铺呵,可以用于在瀏覽器中暫停腳本。


The console.log function of the simulator displays a live expandable object in the browser console.

模擬器的console.log函數(shù)可以在瀏覽器的控制臺(tái)中同步顯示(可以對(duì)object進(jìn)行展開(kāi)操作)隧熙。


If CPU limit raises, your script will execute only partially.

如果運(yùn)算量超過(guò)CPU限制片挂,腳本將只執(zhí)行部分代碼。


To output an object content into the console, use JSON.stringify.

要將對(duì)象內(nèi)容輸出到控制臺(tái),請(qǐng)使用JSON.stringify音念。


Sources in neutral rooms have reduced capacity. Reserve or claim the room to restore it to full capacity.

中立房間礦的能量上限只有1500沪饺。預(yù)訂或占領(lǐng)房間可以使其恢復(fù)到最大容量。


Send emails to yourself with the function Game.notify to be aware of everything happening in the game.

使用Game.notify函數(shù)向自己發(fā)送電子郵件來(lái)了解游戲中發(fā)生的一切闷愤。


You can apply transfer and heal to another player’s creep, and transfer, build and repair to others’ structures.

你可以transferheal另一個(gè)玩家的creep整葡,以及transferbuildrepair到其他玩家的建筑讥脐。


Walls and roads don’t belong to any player, so they should be searched with the help of FIND_STRUCTURES, not FIND_MY_STRUCTURES.

墻壁和道路不屬于任何玩家遭居,因此應(yīng)該使用FIND_STRUCTURES進(jìn)行搜索,而不是FIND_MY_STRUCTURES旬渠。


A creep with an ATTACK part automatically strikes back at every attacker by ATTACK.

一個(gè)帶有ATTACK部分的creep會(huì)自動(dòng)反擊任何帶有ATTACK的攻擊者俱萍。


To save your CPU, use less creeps of a larger size.

生成數(shù)量更少、身體部件更多的creep來(lái)節(jié)省你的CPU告丢。


Use Room.energyAvailable and Room.energyCapacityAvailable to determine how much energy all the spawns and extensions in the room contain.

使用Room.energyAvailableRoom.energyCapacityAvailable來(lái)確定房間中所有spawnextensions包含多少能量及能量上限是多少枪蘑。


You can use more CPU than your CPU limit allows in short bursts.

你的CPU使用量可以在短時(shí)間內(nèi)使用超過(guò)你CPU上限。(“短時(shí)間”取決于你的cpu桶中的余額)


Roads wear out as they are used, so don’t forget to repair them.

道路在使用過(guò)程中會(huì)逐漸磨損岖免,所以別忘了修理它們腥寇。


Build roads to save on MOVE body parts of your creeps.

建造道路可以讓你的creep使用更少的MOVE部件。


Use try/catch blocks in right places to avoid a complete halt of your script due to errors.

在適當(dāng)?shù)奈恢檬褂?code>try/catch代碼塊觅捆,以避免由于異常而導(dǎo)致腳本退出赦役。


A tower’s effectiveness depends on the distance to the target.

tower的工作效率取決于tower到目標(biāo)的距離。


Energy in a storage can not be used to spawn creeps. Transfer it to a spawn or extensions instead.

storage里儲(chǔ)存的能量不能用來(lái)產(chǎn)生creep栅炒,要先將能轉(zhuǎn)移到一個(gè)spawnextension掂摔。


Spawn extensions capacity increases on room levels 7 and 8.

RCL7 和 RCL8 將提升 extension 的容量。


Use towers to set up automatic defense of your room.

使用tower來(lái)建立你房間的自動(dòng)防御赢赊。


Dead body parts have weight and generate fatigue as well.

一個(gè)壞掉的身體部件也會(huì)產(chǎn)生疲勞乙漓。


The game is fully recorded, so you can see replay of any room for the past several days.

游戲已經(jīng)被完整錄制,所以你可以隨時(shí)回放過(guò)去幾天發(fā)生的事情释移。


Unless you use up your CPU limit each tick, it is stored for future use.

除非你每tick都用光了你的CPU叭披,不然沒(méi)有用掉的會(huì)被存起來(lái)以備以后使用。


The more spawn extensions in a room, the more energy you can spend on building one creep.

一個(gè)房間中的spawnextension越多玩讳,你就可以用更多的能量來(lái)構(gòu)建一個(gè)creep涩蜘。


Modular architecture of a script will allow easy testing of individual functions in the simulator.

腳本的模塊化架構(gòu)使得你可以在模擬器中輕松測(cè)試單個(gè)函數(shù)。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末熏纯,一起剝皮案震驚了整個(gè)濱河市同诫,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌樟澜,老刑警劉巖误窖,帶你破解...
    沈念sama閱讀 216,997評(píng)論 6 502
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件叮盘,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡霹俺,警方通過(guò)查閱死者的電腦和手機(jī)柔吼,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,603評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門(mén),熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)丙唧,“玉大人嚷堡,你說(shuō)我怎么就攤上這事⊥ё兀” “怎么了蝌戒?”我有些...
    開(kāi)封第一講書(shū)人閱讀 163,359評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)沼琉。 經(jīng)常有香客問(wèn)我北苟,道長(zhǎng),這世上最難降的妖魔是什么打瘪? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,309評(píng)論 1 292
  • 正文 為了忘掉前任友鼻,我火速辦了婚禮,結(jié)果婚禮上闺骚,老公的妹妹穿的比我還像新娘彩扔。我一直安慰自己,他們只是感情好僻爽,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,346評(píng)論 6 390
  • 文/花漫 我一把揭開(kāi)白布虫碉。 她就那樣靜靜地躺著,像睡著了一般胸梆。 火紅的嫁衣襯著肌膚如雪敦捧。 梳的紋絲不亂的頭發(fā)上,一...
    開(kāi)封第一講書(shū)人閱讀 51,258評(píng)論 1 300
  • 那天碰镜,我揣著相機(jī)與錄音兢卵,去河邊找鬼。 笑死绪颖,一個(gè)胖子當(dāng)著我的面吹牛秽荤,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播柠横,決...
    沈念sama閱讀 40,122評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼窃款,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了滓鸠?” 一聲冷哼從身側(cè)響起雁乡,我...
    開(kāi)封第一講書(shū)人閱讀 38,970評(píng)論 0 275
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎糜俗,沒(méi)想到半個(gè)月后,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,403評(píng)論 1 313
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡悠抹,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,596評(píng)論 3 334
  • 正文 我和宋清朗相戀三年珠月,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片楔敌。...
    茶點(diǎn)故事閱讀 39,769評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡啤挎,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出卵凑,到底是詐尸還是另有隱情庆聘,我是刑警寧澤,帶...
    沈念sama閱讀 35,464評(píng)論 5 344
  • 正文 年R本政府宣布勺卢,位于F島的核電站伙判,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏黑忱。R本人自食惡果不足惜宴抚,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,075評(píng)論 3 327
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望甫煞。 院中可真熱鬧菇曲,春花似錦、人聲如沸抚吠。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 31,705評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)楷力。三九已至蕊玷,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間弥雹,已是汗流浹背垃帅。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 32,848評(píng)論 1 269
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留剪勿,地道東北人贸诚。 一個(gè)月前我還...
    沈念sama閱讀 47,831評(píng)論 2 370
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像厕吉,于是被迫代替她去往敵國(guó)和親酱固。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,678評(píng)論 2 354