![]() ('Player 3') What is the correct syntax for the. I created my attacker creep: ('attack','move','Attacker1') Then when the first enemy came on the screen I tried running this command and it fails. If I understand correctly this should work better (not pretty though) module. While playing screeps I can't figure out how to attack an enemy. Rereading and I think what I did is not really what you were asking. It would look like this: (,'Harvester'+ Harvesters.length, ) Īnd you'd have to be sure to change your memory checks to memory.role. ![]() You could do an object there if you really wanted, but that seems unnecessary with how you have it set up right now. The way you're assigning to memory is fine though. ![]() This code instead looks at the name of the current creep and gets the last character, then turns that into a number, and compares it to 3. The spawn is important because it's one of the first elements available in the game that can be used. ![]() When enough energy is available in its storage device, the required energy will be subtracted from it and use it to spawn new creeps. An AI can request the spawn to spawn new creeps. The thing to note here is that index is not a property and the deceptive id property is unique and therefore not what you're looking for. Talk (0) The spawn is a building which can store energy and spawn new creeps. (,'Harvester'+ Harvesters.length, 'Harvester') You can do something like this: if(Number((-1)) < 3)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |