PDA

View Full Version : About AI NASC


Kirikups
06.02.2006, 23:46
Greetings,

i am looking for some informations about AI coding, as i dont know where to look for i ask here:

1) What is the language name used with NASC ? (Like C but...)

2) Is there a way to test pets/flutes levels ? (Mymyu test...)

3) Is there a way to unsummon a "talker's pet" ?

4) Can we include a class/handler like that:

class class_x : warrior
end_class

class class_a : warrior
end_class

class class_b : class_a
<include class_x>
end_class

class class_c : class_a
<include class_x>
end_class


In order to not copy/paste a full handler part code for class_b and class_c and etc...

5) Thank you :)

alexerne
15.06.2006, 07:04
Greetings,

i am looking for some informations about AI coding, as i dont know where to look for i ask here:
2) Is there a way to test pets/flutes levels ? (Mymyu test...)
You're working on the "Little Wings Big Adventure" quest? I'm doing so myself :p I kinda have the same problem on the test of the hatch's level. I think it should be done by summoning the hatch like this:
//
// Player has summoned his hatch. Now see if it is level 55+
//
// [hatchling_of_wind] = 1012311
// [hatchling_of_star] = 1012312
// [hatchling_of_twilight] = 1012313
//
if ((talker.sm.level >= 55)&&((talker.sm.race == 1012311)||(talker.sm.race == 1012312)||(talker.sm.race == 1012313))) {
//
// Ok, player has a hatchling of level 55+
//
ShowPage(talker, fnQAb);
SetMemoState(talker, @little_wings_big_adventure, 2)
}
3) Is there a way to unsummon a "talker's pet" ?
Good one. Try playing with the Despawn() function. I think it should be like Despawn(talker.sm). Not too sure though. I need to be sure that talker.sm refers to the talker's servitor/pet at that moment...