Jump to content

Home

Need help with wierd scripting result


tygaran

Recommended Posts

For the most part, I do know what I'm doing. =]

 

However, I'm getting a rather wierd result on a simple script I'm working on.

 

void main () {
    // Other Item mods
    ExecuteScript("give_warp",OBJECT_SELF);

    object oPC = GetPCSpeaker();

    // Grant Tygari Items
    CreateItemOnObject("tyg_clothes", oPC);
    CreateItemOnObject("tyg_robes", oPC);
    CreateItemOnObject("tyg_implant", oPC);
    CreateItemOnObject("tyg_blade", oPC);
    CreateItemOnObject("tyg_glasses", oPC);
    CreateItemOnObject("tyg_gloves", oPC);
    CreateItemOnObject("tyg_belt", oPC);

}

 

Now, this code works fine up until it creates "tyg_clothes"

 

After it reaches that point, it must somehow abort because none of the other items are created. I think it must have something to do with the compiler (kotor tools); since recompiling the give_warp script under the name of my script produces the same kind of result: the first item is created but none of the remaining one.

 

Any ideas on how to fix this?

 

 

[EDIT]

 

Turned out it was a compiler problem. I fixed it by deleting all instances of nwscript from kotor tool and game directories, extracting a new copy from the bif, and then making sure the version of nwnnsscomp.exe I had was correct for the kotor tool version I was using. All fixed now.

 

Still was a weird result. :shrug:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...