Thread: [WIP] LDR's WIPs
View Single Post
Old 10-29-2010, 07:58 PM   #34
Senior Member
TriggerGod's Avatar
Join Date: Mar 2008
Location: hiding
Posts: 2,415
With my now rudimentary knowledge of coding, I can tell that you are missing a couple end braces

void main()
  object oEntering = GetEnteringObject();
  object oPC=GetFirstPC();
  if (GetIsPC(oEntering))
      //check if the object is already there to avoid multiple objects
      if  (!GetIsObjectValid(GetObjectByTag("kor_czex1")))
          //Note that the script uses OBJECT_TYPE_CREATURE instead of OBJECT_TYPE_PLACEABLE - that's the only difference with the container:
          CreateObject(OBJECT_TYPE_CREATURE, "kor_czex1", Location(Vector(22.99,23.79,59.10), 00.28));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_czex2", Location(Vector(40.78,00.68,59.22), 00.23));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_czex3", Location(Vector(32.08,-40.12,59.16), 00.12));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_cmer", Location(Vector(18.13,11.03,58.94), 00.97));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_coff1", Location(Vector(10.20,-20.08,63.71), -00.61));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_coff2", Location(Vector(10.24,08.61,63.71), -00.70));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_coff3", Location(Vector(10.96,10.71,63.71), 00.99));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_coff4", Location(Vector(10.96,10.71,63.71), 00.99));

     ExecuteScript("k33b_openacademy", OBJECT_SELF);
Of course I could be completely off, but in my short time of programming, my most common error was forgetting the correct number of end brackets I needed.
TriggerGod is offline   you may: quote & reply,