Mototroller,
Thanks for the link to beginner JS. I am just a little past beginner. I was just hoping for a little assistance. In other programming languages I was able to do this using strings, just can't figure it out here. Thanks.
Mototroller,
Thanks for the link to beginner JS. I am just a little past beginner. I was just hoping for a little assistance. In other programming languages I was able to do this using strings, just can't figure it out here. Thanks.
I am trying to create a Screep Creator the is dynamic. Here is what I have:
var partOne = "Game.spawns.Spawn1.createCreep([";
var partTwo = "WORK,CARRY,MOVE";
var partThree = "], undefined, {role: 'test'})";
var fullScript = partOne + partTwo + partThree;
So, the question is, how do I run this now created command?
Also, I have tried standard Javascript commands that do not work. Does Screeps use full javascript or a custom set for just the game?