Navigation

    forum

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

    Topics created by Dotnaught

    • Unable to create spawn
      Help • • Dotnaught

      6
      6
      Posts
      7285
      Views

      Hi, all! We apologize for this bug. It is fixed now.
    • Setting roles
      Help • • Dotnaught

      7
      7
      Posts
      14725
      Views

      You should never tamper with the object itself, but rather set the property: Memory.creeps[newCreep] = {role : myRole}; // should be if (Memory.creeps[newCreep]){ Memory.creeps[newCreep].role = myRole; } There is a huge difference between these two statements! The first one basically destroys the existing object and overwrites it with an object which contains one property (your role), while the second one "extends" your existing object with a new property role!