Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 01.06.2007, 15:05   #1
GMMorpheus
Архивный участник
 
Join Date: Jul 2006
Posts: 29
Default Help understanding NPCPOS

Hi All again,

I need some help to undertand the npcpos.txt format

territory_begin [giran11_npc2222_29] {{83260;147820;-3524;-3324};{83460;147820;-3524;-3324};{83460;148020;-3524;-3324};{83260;148020;-3524;-3324}} territory_end
npcmaker_ex_begin [giran11_npc2222_29] name=[giran11_npc2222_2901] ai=[default_maker] maximum_npc=1
npc_ex_begin [clavier] pos={83396;147904;-3404;16384} total=1 respawn=1min npc_ex_end
npcmaker_ex_end

look, I understand that [giran11_npc2222_29] is a codename for the territory, the coordinates indicates the territory's area, but 4 numbers each coordinate? I mean, in {83260;147820;-3524;-3324}
83260, 147820 are like x and y positions, what are -3524 and -3324?

if I want to put a npc within the territory [giran11_npc2222_29] area, I should add my npc_ex_begin/end line inside npcmaker_ex_begin/end lines correct?

if I want to put more than 1 of the same npc in diferent cities, do I have to change the "total=1" parameter? or just add others lines (changind the coordinates of course) between npcmaker_begin/end on other citie's territory?
GMMorpheus is offline  
Old 01.06.2007, 15:38   #2
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

1.- x,y,zmin,zmax
2.- If you want to add a NPC in this area add it there, but its better if you make a new area for your npc's
3.- If you want to add the same NPC in another town, then you should do a new area for this town.
Guaresnay is offline  
Old 01.06.2007, 21:18   #3
GMMorpheus
Архивный участник
 
Join Date: Jul 2006
Posts: 29
Default

The area I should create can have a size just enough to contain my npc?
and what the hell is zmax and zmin?
GMMorpheus is offline  
Old 01.06.2007, 23:34   #4
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

radius of 10 is enough for 1 npc usually

z min is as it says.. minimum z to maximim z
u can also call to it low z & high z
or z1 and z2

1 is below ground another is above ground. or 1 is on the ground to above ground or 1 is on the ground to below ground.
u make ur choice.. if u just want a 4 sided territorry, use hf's scriptmaker, get a loc in game and use the npcposmaker in the tool.
tpuNIsher is offline  
Old 01.06.2007, 23:43   #5
Asteroid
Архивный участник
 
Join Date: Jan 2006
Posts: 33
Default

If your NPC does not move - yes, just some 50*50 units. If it does move (mob) - make it as large as you need.
Zmax, Zmin should include needed geodata cells at your region (same for all vertices defining your polygon). That is:
- let geo have Z values at some point: (-3000), (-2000), (-1000)
- and you want to define NPC at Z (-2000)
- so your Zmin,max could be (-2300, -1700) or anywhere near, so that they included (-2000).
Most important constraint: the polygon you define for a territory must be convex. Draw it on a piece of paper if you can't imagine. AFAIK, point order (clockwise or counter-clockwise) does not matter, but they must define a convex poly without self-intersections.
Asteroid is offline  
 


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. The time now is 21:28.