Nexus Modding > Scripting

The AI and You

<< < (6/20) > >>

The_Small_Time_Modder:
Okie dokie, thanks for the suggestion!

The_Small_Time_Modder:
Well... the problem is STILL persisting, blasted little...  >:(

Before you ask for the default_ai.mach, i have no clue what file exactly your talking about. do you mean from OTHER missions i have? or the 11_default_ai.mach?  ???

Sorry i seem to be as stumped as... well... a stump... but i get easily mixed up over things... you can thank the four letter noun 'ADHD' for that...  :P

Mularac:
you wrote this:

MACHINE "INNER_AI"
   STATE Start
      RULE event in
         :action
            SetAreaAbs(0, <-4000> , <-1000> , <-500> , <2250>);
            //We declare here the areas in the scene.
         :end
      END

   //For example, we want to boot the ai when one of the players ships reach the 0 area
   RULE event AreaEntered
      condition e.ship:race=#race_player&e.area=0
         :action
            M:GetMachine("INNER_AI"):ChangeState(Battle,
                                       e.ownMachine := M:GetMachine("INNER_AI");
                                       e.oRace := #race_raptor;
                                       e.oRaceList := -1;
                                       e.oShipList := -1;
                                       e.eRace := #race_player;
                                       e.eRaceList := -1;
                                       e.eShipList := -1;
                                       e.parentMachine := M:GetMachine("AI");
                                    );
            //Simple declaration of the AI, this will make the raptor ships launch towards the player ships.
         :end
      END
   END
END


MACHINE "INNER_AI"
#include "default_ai.mach"
END

I meant that "default_ai.mach" file, the one you've included there.

The_Small_Time_Modder:
OH that one!

I re-labeled it...  :-X

heres what i put:

MACHINE "INNER_AI"
#include "11_default_ai.mach"
END

Should i have done that?  ???

Mularac:
wait.... in the file named 11_default_ai.mach there is a line including the file 11_default_ai.mach???

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version