Graal Forums  

Go Back   Graal Forums > PlayerWorlds > PlayerWorlds Main Forum
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-20-2011, 07:44 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Televangelist View Post
Interesting!

This NPC limit you speak of... where could I learn more about this?
I don't think there is necessarily a hard limit, but things will stop working when you hit it. You can try by adding NPCs to a level until they stop showing up.

You generally won't hit the limit unless you're doing something wrong.
__________________
Reply With Quote
  #2  
Old 08-20-2011, 08:01 PM
Televangelist Televangelist is offline
Registered User
Join Date: Aug 2011
Posts: 21
Televangelist is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
I don't think there is necessarily a hard limit, but things will stop working when you hit it. You can try by adding NPCs to a level until they stop showing up.

You generally won't hit the limit unless you're doing something wrong.
Is this a limit per level, or limit per playerworld?


Also, I'm assuming I would need a fair number of 'invisible' NPCs for various reasons that might only be visible when certain events trigger.


For example!

I have two villages, Village A and Village B.

I have a player event where monsters attack Village B, and the players can either succeed or fail at repulsing the monster attacks.

If they fail, I want Village B's NPCs to flee their destroyed village and take up residence in Village A.


If Village B has 10 NPCs normally, I'm guessing I need 10 'invisible' NPCs on every level between Village B and Village A.

That way, when the event triggers -- the players fail, and the NPCs flee -- on each level in between, those invisible NPCs get the 'Village B has been destroyed' flag flipped from 0 to 1, and they become visible and start fleeing for their lives toward Village A.

Multiply that by many possible events, and I start to worry.

So long as we're just talking an NPC limit per level, though, that's not a problem at all! Worst comes to worst, levels can be split into smaller levels, creative NPC economizing can be done (if I know the 'monster attack on Village B' event and the 'alien invasion' event will never occur at the same time, I can have one invisible NPC that pulls double duty in both events, altering its appearance and actions according to the situation, rather than two separate ones), and things like that.


But a global NPC limit for the entire playerworld would be dicey. Even if I don't hit it at first, it limits the potential for later expansion.


(The game I'm planning doesn't have levels, XP, or hunting for loot in the traditional sense. Adding new NPC interactions, and new NPC dynamics, is very key to the game's planned long-term growth.)
Reply With Quote
  #3  
Old 08-20-2011, 08:12 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Televangelist View Post
Is this a limit per level, or limit per playerworld?
There is no per-server limit as long as you stay within reasonable memory and CPU usage as far as I know.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:27 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.