Pro de automação
Mestre de estratégia
Táticas avançadas

Domine a arte da automação: guia definitivo de scripts

Bem‑vindo ao guia definitivo do recurso mais poderoso de Steal a Brainrot: o sistema de scripts in‑game. Não é trapaça; é elevar suas capacidades estratégicas. Scripts são uma ferramenta legítima integrada que permite automatizar ações complexas, executar estratégias com precisão cirúrgica e personalizar o comportamento das unidades. Dominar o sistema separa o top 1% do resto. Seja para otimizar a economia ou criar uma defesa automatizada impenetrável, este guia mostra como.

O que são scripts in‑game e por que usá‑los?

In Steal a Brainrot, a script is a set of commands you create in a visual editor to control a unit or structure's behavior automatically. Think of it as a custom AI you design. This powerful, officially supported feature is your key to unlocking peak efficiency and executing flawless strategies. The main benefits are:

Eficiência incomparável

Automatize tarefas repetitivas como coleta de recursos, patrulhas da base e sequências de construção. Foque no quadro estratégico enquanto os scripts cuidam do micro‑gerenciamento.

Precisão cirúrgica

Execute sequências complexas com timing perfeito, impossível manualmente. Crucial para manobras avançadas e ordens de build.

Estratégia mais profunda

Implemente lógicas if‑then. Ex.: um script defensivo que ativa escudos e reposiciona unidades apenas quando um tipo específico de inimigo entra em alcance.

Seu centro de comando: o Script Editor

O Script Editor é uma ferramenta visual intuitiva para construir lógicas complexas sem escrever código. Um tour rápido do seu centro de comando:

01

Acessando o editor

Selecione uma unidade/estrutura e clique no ícone 'Editar script' na carta de comandos para abrir o editor.

02

Biblioteca de comandos

À esquerda, a biblioteca lista ações possíveis: `move_to`, `attack`, `gather_resource`, `patrol_area`, etc.

03

Blocos de lógica e eventos

Há blocos de Evento (ex. `on_enemy_sighted`, `on_health_low`) como gatilhos e blocos Condicionais (ex. `if`, `loop`) para lógica inteligente.

04

Canvas

Arraste comandos e blocos para o canvas central, conecte o fluxo, salve e atribua o script a uma ou mais unidades.

Seu primeiro script: automatizar coleta de recursos

Let's build a simple but essential script. We'll command a worker unit to find the nearest resource node, harvest it, and return the resources to the nearest base. This is the foundation of an automated economy.

1

Passo 1: defina o gatilho

Start by dragging a `Loop Forever` block onto the canvas. This will make our worker repeat its task endlessly without needing new orders.

2

Passo 2: encontre o alvo

Inside the loop, add a `Find Nearest 'Resource Node'` command. This tells the unit to scan the map for the closest available resource.

3

Passo 3: mover e coletar

Next, add a `Move to Target` command, followed by a `Gather from Target until Full` command. The unit will now travel to the node and harvest it.

4

Passo 4: retornar e repetir

Finally, add a `Find Nearest 'Base'` command, followed by `Move to Target` and `Deposit Resources`. The loop will then repeat, sending the worker to the next closest node. Save the script, assign it to your worker, and watch your automated economy come to life!

Suba de nível: conceitos avançados de scripting

Após dominar o básico, você pode criar comportamentos sofisticados. Estes conceitos são a chave para superar jogadores humanos.

Scripting defensivo: torre automatizada

Create an intelligent turret defense. Use an `On Enemy in Range` event block as the trigger. Inside, use an `if` block to check the enemy type with `Get Target's 'Type'`. You can prioritize targets by telling the turret to first attack 'Healer' types, then 'Siege' types, and finally any other target. This creates a smart defense that automatically neutralizes the biggest threats.

Scripting ofensivo: ataques coordenados

Coordinate multi-unit attacks for devastating results. Assign a script to a control group that uses the `Get Units in Group` command. You can then loop through each unit and issue a synchronized `Focus Fire on 'Target'` command, making all units attack the same enemy at the exact same time. This is far more effective at eliminating targets than scattered attacks.

Lógica com estado usando variáveis

Use variables to give your scripts memory. You can create a variable called `last_attack_time`. After an engagement, store the current `game_time` in it. Your script can then check this variable to decide its next action, like retreating to repair if `game_time - last_attack_time < 30` seconds, indicating it just finished a fight and might be damaged.

Como um pro: boas práticas e comunidade

Escrever scripts eficazes é uma arte. Siga estas dicas para automações limpas, eficientes e poderosas, e aproveite a comunidade para inspiração.

Mantenha scripts modulares

Don't build one giant, complex script. Create smaller, specialized scripts for specific tasks (e.g., one for gathering, one for patrolling). You can then have a master script that activates or deactivates these modules as needed. This makes debugging much easier.

Comente generosamente

The script editor has a `Comment` block. Use it to label parts of your script and explain what your logic does. This is invaluable when you come back to an old script or if you want to share it with other players.

Teste no modo sandbox

Before deploying a new script in a competitive match, always test it thoroughly in the sandbox mode. This lets you see how it behaves in a controlled environment and fix any bugs without risking your rank.

Participe da comunidade

The best scripters learn from each other. Visit the official Community Scripts Library to browse, download, and learn from scripts created by other players. Share your own creations on the forums or Discord to get feedback and help others.

FAQ do guia de scripts

Ainda com dúvidas? Aqui estão perguntas comuns sobre o sistema de scripts in‑game.

Usar o editor de scripts in‑game é trapaça?

Absolutely not. The in-game script editor is an officially supported feature designed to add strategic depth. It's a tool available to all players. Using external, third-party software for automation is cheating and will result in a ban.

Um script pode jogar por mim?

No. Scripts are for task automation, not strategic decision-making. A script can execute a build order, but it can't decide which build order is best against your current opponent. You are still the commander; scripts are just a tool to carry out your vision more efficiently.

Onde encontro scripts prontos?

The best place to start is the official Community Scripts Library, accessible from the game's main menu. You can browse popular and highly-rated scripts and import them directly into your editor to use or modify.

Meu script não funciona. O que fazer?

First, use the 'Debug Mode' in the sandbox to step through your script's logic block-by-block and see where it fails. Second, simplify! Temporarily disable parts of the script to isolate the problem. Finally, take a screenshot of your script and ask for help in the #scripting channel on our official Discord server.