Navigation

    forum

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

    Giovanni

    @Giovanni

    1
    Posts
    646
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Giovanni Follow

    Posts made by Giovanni

    • Problem with accessing memory of new Flag

      So I've been playing this game since yesterday, and tried to make my harvester code more intelligent using flags, placed on the sources (to store information).

      However, something goes wrong when I try to access the flags memory, because they behave as if they do not exist. (source refers to the corresponding source (this works, as it places the flag at the right spot)

      var title = Game.spawns.Spawn1.room.createFlag(source.pos);
      console.log('Making Flag: ' + title); //Prints: Making Flag: Flag1

      Game.flags[title].memory.spots = 3; //Here is the error

      To at the last line it goes wrong and I cannot seem to get it fixed (I'm not experienced in programming, so it might be very obvious.

      posted in Help
      Giovanni