Results 1 to 4 of 4

Removing all territories sectors

  1. #1
    Member
    Join Date
    Aug 2006
    Location
    Europe... in Ruins... [http://www.europeinruins.com]

    Removing all territories sectors

    I went thru a map last night and removed all the points in an attempt to remove territory sectors completely. This included removing the flags and click the 'TER' button and setting the territory to null.

    As best as I can tell it worked fine, however when playing the map in game, the edge of the mini-map (bottom left) had red/blue lines merged together. It wasn't too distracting, I was simply curious as to if this is normal or anyone has tried this before...

    One more question that I'll throw into this thread because I don't want to make another. Is this legal SCAR? I'm trying to implement the variable name also...
    Code:
    	for i = 1, World_GetPlayerCount() do
    		player..i = World_GetPlayerAt( i )
    	end
    Europe In Ruins :: Persistent Online War for Company of Heroes and Opposing Fronts (MMORTS)
    http://www.moddb.com/mods/8627/europe-in-ruins
    * Voted Editor's Choice ModDB 2007
    * 9.6 ModDB Rating

  2. #2
    Hatge
    Guest
    i think the scar-code will not work.
    but you could put the player1,player2 into a t_player-table.

  3. #3
    The 22nd Hyperspace Core Corsix's Avatar
    Join Date
    Sep 2004
    Location
    Oxford
    Code:
    	for i = 1, World_GetPlayerCount() do
    		_G["player"..i] = World_GetPlayerAt( i )
    	end
    will do what you intended. _G is the globals table; _G._G = _G (http://www.lua.org/manual/5.1/manual.html#pdf-_G)

  4. #4
    Member
    Join Date
    Aug 2006
    Location
    Europe... in Ruins... [http://www.europeinruins.com]
    Very nice Corsix, thanks.

    That globals table holds all the variables that are declared without local in front of them right? That's good to know.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •