Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Need help with wierd scripting result

Page: 1 of 1
 tygaran
07-10-2007, 2:34 PM
#1
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:
Page: 1 of 1