Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

NPC numbering

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Spoon Weaver




Joined: 18 Nov 2008
Posts: 421
Location: @home

PostPosted: Wed Jun 02, 2010 1:26 pm    Post subject: NPC numbering Reply with quote

I've been trying to keep track of npcs for a while now, and something always seems to go wrong. When I try to reference an npc, another npc, of the same ID, get's referenced instead.

My questions is, are npc numbers recalculated when an npc of the same ID is destroied or has it's ID changed? If so, which I assume is the chase, how can I keep track of each npc and still deleted or change others?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Wed Jun 02, 2010 1:39 pm    Post subject: Re: NPC numbering Reply with quote

Spoon Weaver wrote:
I've been trying to keep track of npcs for a while now, and something always seems to go wrong. When I try to reference an npc, another npc, of the same ID, get's referenced instead.

My questions is, are npc numbers recalculated when an npc of the same ID is destroied or has it's ID changed? If so, which I assume is the chase, how can I keep track of each npc and still deleted or change others?


If you are talking about the NPC copy count index, then yes, that number can change if you add or remove NPCS.

If you are talking about NPC references gotten with the "NPC reference" command, then those should not change when you add and remove NPCs. (and they should even remain stable if you leave the map and come back using the feature to save NPC state when you leave the map)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Spoon Weaver




Joined: 18 Nov 2008
Posts: 421
Location: @home

PostPosted: Wed Jun 02, 2010 4:51 pm    Post subject: Reply with quote

I see...

So once a reference is store, the npc it refers to doesn't change?

Ok..

So, I should have a variable for each npc instance then?

Like, when I enter a map, I could load all the npcs into variables, then work with them like that?

I understand I guess... just trying to wrap my head around how I'm going to code this thing now.

Well anyways, thanks a bunch James.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group