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 reference and alterNPC question

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




Joined: 18 Jun 2003
Posts: 73
Location: Canada

PostPosted: Sat Feb 17, 2007 12:44 am    Post subject: NPC reference and alterNPC question Reply with quote

I have a whole bunch of NPC's I need to edit; more than the 35 limit I have for each map so I need to use references. I read that the alterNPC script doesn't work with references though... so my question is how would I go about specifically changing each copy of the particular NPC's picture and palette?

I was trying this...

Code:

variable(foo)
foo: = NPCreference(3, 5)

alterNPC(foo, NPCstat:picture, 98)
Back to top
View user's profile Send private message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sat Feb 17, 2007 3:57 am    Post subject: Reply with quote

You can't. All NPCs are instances of one fo the 36 Defined NPCs. Each Defined NPC has data associated with it: picture, palette, textbox and script triggers, speed, etc. Each NPC Instantiated with the same ID shares the same data.

The workarounds are:
1) Never have more than 36 NPCs on screen at once, and switch NPC pictures and palettes as they become visible
2) Fake NPCs with tiles
3) Multiple maps
4) Some other treachery
5) Cut down on your NPCs


Version Voxhumana will hopefully rewrite graphics handling, which is what imposes the 36 NPc limit.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Awful Waffle




Joined: 18 Jun 2003
Posts: 73
Location: Canada

PostPosted: Sat Feb 17, 2007 2:43 pm    Post subject: Reply with quote

Alright, thankyou. I can resort to changing map tile graphics in this situation, at least.
Back to top
View user's profile Send private message
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