Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Stephane
    3. Topics
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Topics created by Stephane

    • StructureObserver should use some energy to observe another room
      Feature Requests • • Stephane

      3
      3
      Posts
      4262
      Views

      Good idea, however i think it should always use energy for whatever distance (while working) but a lot less the 10 room away.
    • How to simulate easily invaders with SIM world ???
      Help • • Stephane

      2
      2
      Posts
      3656
      Views

      You can spawn units and buildings with the on screen UI at the top of the screen and side bar and change the script to point to the one you're running in the game world. You can edit the terrain the same way as well.
    • How to get the transferred quantity with creep.transfer ?
      Help • • Stephane

      2
      2
      Posts
      3551
      Views

      After calling creep.transfer(...) the operation is just scheduled to be executed at the current tick (see engine descriptions, http://support.screeps.com/hc/en-us/articles/203032752-Understanding-game-loop-time-and-ticks), so inner states of all objects wont change until next tick. Seems like the workaround (without exact amount specifying, 3rd argument) looks like: let result = creep.transfer(obj, resource);let transferred = result === OK ? Math.min(creep.carry[resource], /*obj.emptySpace*/) : 0; Dunno why u gonna do that, looks monstrous
    • Minor typo in documentation
      Technical Issues and Bugs • • Stephane

      1
      1
      Posts
      2557
      Views

      No one has replied

    • How much time is needed to spawn a creep ?
      General Discussion • • Stephane

      5
      5
      Posts
      9070
      Views

      there is also game const in case it changes in future CREEP_SPAWN_TIME: 3