![]() |
|
|
#1 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
Hello,
i would like to write an AI able to do something if NPC like RaidBoss is in an arena, in effect some players aggros RB in order he follows them to the nearest arena, in that way they can kill him without taking any risk to loose xp. then i can controle myself.start_x/y/z with the 4 coordinates of the arena and do something if: (x1<x<x2) && (x3<x<x4) && (y4<y<y1) && (y3<y<y2) using that way i have to declare 8 integers by area: int x1 = int y1 = int x2 = int y2 = etc... but is it possible to use arrays/strings to declare those areas with NASC, because i would like to restrict more than 1 area in same AI, like: MyAreas = {{{x11,y11};{x12,y12};{x13;y13};{x14;y14}};{{x21,y 21};{x22,y22};{x23;y23};{x24;y24}}} If anybody know what are availables functions :roll: Btw i found those functions: SetVariableList, CTerritory but i have no idea how to use them. Regards |
|
|
|
|