Navigation

    forum

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

    xbelt

    @xbelt

    3
    Posts
    738
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    xbelt Follow

    Posts made by xbelt

    • RE: Setting creep role in Memory not working

      Well after executing the code and inspecting the memory of a newly spawned creep the creep does not have a role set...

      posted in Help
      xbelt
    • RE: Setting creep role in Memory not working

      I already tried the exact code from the documentation:

      Game.spawns.Spawn1.createCreep([WORK, WORK, WORK, CARRY, MOVE], null, {role: 'harvester'});

      This still does not work...

      posted in Help
      xbelt
    • Setting creep role in Memory not working

      Hello,

       

      I tried automating the creation of creeps but I still fail to set the role of a creep correctly.

      I use different approaches from the forum and tutorials and the still do not work:

       memory = {};
      memory['role'] = "harvester";
      var creep = Game.spawns.Spawn1.createCreep([WORK, WORK, WORK, CARRY, MOVE], null, memory);
      if (_.isString(creep) && Memory.creeps[creep]){
      Memory.creeps[creep].role = 'harvester';
      }
      posted in Help
      xbelt