View previous topic :: View next topic |
Author |
Message |
Awful Waffle
Joined: 18 Jun 2003 Posts: 73 Location: Canada
|
Posted: Sat Feb 17, 2007 12:44 am Post subject: NPC reference and alterNPC question |
|
|
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 |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sat Feb 17, 2007 3:57 am Post subject: |
|
|
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 |
|
 |
Awful Waffle
Joined: 18 Jun 2003 Posts: 73 Location: Canada
|
Posted: Sat Feb 17, 2007 2:43 pm Post subject: |
|
|
Alright, thankyou. I can resort to changing map tile graphics in this situation, at least. |
|
Back to top |
|
 |
|