Navigation

    forum

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

    Kp0ral

    @Kp0ral

    7
    Posts
    1183
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Kp0ral Follow

    Posts made by Kp0ral

    • RE: My tower just keeps repairing a single piece of wall.
      tower.pos.findClosestByRange(STRUCTURE_RAMPART, {
           filter: (structuere) => structure.hits < 30000
      });
      

      Maybe just replace "structuere" by "structure" I use this :

      room.find( FIND_STRUCTURES, { filter: ( f ) => {
           return ( f.hits < f.hitsMax )}}).sort( function( a, b ) {
                return +a.hits - +b.hits })[ 0 ]
      posted in Help
      Kp0ral
    • RE: PS Changelog build 24

      Did the actual map is static ? or procedurally generated ? because i've use 'tools.resetAllData' so it reset the world and user data, but i also would like generate a different world ? maybe we have a seed to change or something else ?

      posted in Private servers
      Kp0ral
    • Add / Remove base Structures

      I would like know if we can actually add or delete structures, because i would like mod completly my server with a different gameplay

      posted in Private servers
      Kp0ral
    • Creep.say including unicode

      Hi, is this possible to include some other unicode chars like them :

      https://en.wikipedia.org/wiki/List_of_emoticons

      http://emojipedia.org/

      - U+1F60x U+1F61x U+1F62x ...

      Some ppl like me use emot instead of word, and i use a rand to allow my creep to speak 😄

      posted in Feature Requests
      Kp0ral
    • RE: Is there any way to remove other player construction sites from reserved room?

      Maybe ... not try but :

      creep.pos.findClosestByPath( FIND_HOSTILE_CONSTRUCTION_SITE );

      then creep attack it ?

       

      EDIT : but ... like FIND_MY_* i'm not sure if you can get neutral structures 😕

      posted in Help
      Kp0ral
    • RE: Error from using array to findClosestByPath

      I try this because of the doc : http://support.screeps.com/hc/en-us/articles/203079201-RoomPosition

      var targets = [
          Game.creeps.John,
          Game.creeps.Mike,
          room.getPositionAt(10,10)
      ];
      var closest = creep.pos.findClosestByPath(targets);
      posted in Help
      Kp0ral
    • Error from using array to findClosestByPath

      Hi, i need a little help about my script to find the nearest ennemy including creeps and structures and excluding the controler :

      var finds = [
      FIND_HOSTILE_CREEPS,
      FIND_HOSTILE_STRUCTURES,
      FIND_HOSTILE_SPAWNS,
      FIND_HOSTILE_CONSTRUCTION_SITES
      ];
      var target = creep.pos.findClosestByPath( finds, { filter: ( o ) => { return ( o.structureType != STRUCTURE_CONTROLLER ); }});

      That give me this error : Error: Invalid room name ... anyone can help ?

      posted in Help
      Kp0ral