Well, i was fixing AI... and i test some of AI posted in this thread... all seens to work good... but i have a problem with this NPC...
This NPC is supposed to walk (yes, walk, not run) along Talking Island Village, from a door of the city to other.. and talk... i dont know what is bad.. i think maybe using WayPoints but i think this AI must me enought but i dont understand how SCRIPT_EVENT handler works or how it starts... someone can help ? i try to decompile AI of scribe_leandro.. i have this.. any idea ? why this npc dont walk ? this AI is incomplete ? or what is happening ?
NOTE: i dont know if I decompile this AI good.. is my first attemp with C4 AI. Maybe someone do a decompiler ? and a compiler ? It will be very usefull.
Code:
class 1 scribe_leandro : citizen {
handler:
EventHandler CREATED(myself) {
AddMoveSuperPointDesire((myself.sm.name), 0, 2000);
ChangeMoveType(myself, 0);
super;
}
EventHandler SCRIPT_EVENT(myself, script_event_arg1, script_event_arg2) {
if (script_event_arg1 == 10020) {
if (script_event_arg2 == 3) {
Say(MakeFString(1010205, "", "", "", "", ""));
}
else if (script_event_arg2 == 4) {
Say(MakeFString(1010206, "", "", "", "", ""));
}
AddMoveSuperPointDesire((myself.sm.name), 0, 50);
}
super;
}
}