Jump to content

NPC Nations


William Mannax
 Share

Recommended Posts

Any possibility of generating some NPCs. You know, nations that aren't controlled by a real human that spawn at random at all nations scores and attack at random? 

 

Most alliances don't have to deal with raiders often enough. 

 

Also it would be nice to have a few rogues to hit that can't treaty with someone. 

 

Just a thought. 

 

I don't know if it is possible, much less ideal. 

  • Upvote 2
Link to comment
Share on other sites

wasnt their a similar suggestion with "Aliens" a while ago?

 

something along the lines of they had X times the normal amount of units (5k soldiers/barracks vs 3k. 36 planes/hanger vs 18.  ect) but couldn't rebuild.  So they would be a nuance for a short while before enough people took them down.

 

 

 

It was an interesting idea that would add some much needed conflict between wars. 

  • Upvote 1

HoloSig2017.png.afe1505c82cc3db09be025a9

Link to comment
Share on other sites

Any possibility of generating some NPCs. You know, nations that aren't controlled by a real human that spawn at random at all nations scores and attack at random? 

 

Most alliances don't have to deal with raiders often enough. 

 

Also it would be nice to have a few rogues to hit that can't treaty with someone. 

 

Just a thought. 

 

I don't know if it is possible, much less ideal. 

Sheepy made an npc one time called treasure island, but apparently he didn't like the idea, so he let it wrough away on inactivity till it deleted automatically. 

Link to comment
Share on other sites

Sheepy made an npc one time called treasure island, but apparently he didn't like the idea, so he let it wrough away on inactivity till it deleted automatically. 

 

I remember him creating those but I had the impression that they were just nations with decent militaries and lots of goods to raid out of them.

 

Were they ever programmed to attack anyone?

Link to comment
Share on other sites

Maybe it will compare the strength of it and the opposing nation, and chooses the attack when possible. Allowing it to use nukes and missiles is another question entirely.

 

Kinda like this, except this is in Java:

// Let "this" be the NPC nation
// The actual code may be different. Adapt if necessary.
War[] wars = this.getWars();

for (War war : wars) {
  Nation enemy = war.getOpposingSide();
  int soldiers = enemy.getSoldiers();
  int tanks = enemy.getTanks();
  int aircraft = enemy.getAircraft();
  int ships = enemy.getShips();
  // 1 for own control, -1 for enemy control, 0 for neither
  int groundControl = war.getGroundControlStatus();
  int airControl = war.getAirControlStatus();
  
  if (war.getMAP == 0) continue;
  
  if (this.soldiers == 0 && this.aircraft == 0 && this.ships == 0) {
    if (this.missiles > 0) {
      this.launchMissile(Targets.ANY, enemy);
    } else if (this.nukes() > 0) {
      this.launchNuke(enemy);
    }
  } else {
    // Got tired working on this, will come back later
  }
}

Of course, I don't know the internal workings of P&W, but at least this provides for some guides.

Attempting to contact Kerbin since 1983 (in-game)...

Hey, have anyone seen those fireworks? What do you mean, Jeb had them strapped to SRBs?

Discord: Ray3501#0305. I frequent the SK Network discord (duh).

Link to comment
Share on other sites

I had the same idea but make them into small groups with different personalities/play styles. However they only spawn for special events fully formed and armed then once the event is over and they are no longer engaged they delete.

 

 

Yes. But make it impossible to tell who's NPC

 

lol Turing Test

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.