I recently started playing this game again after about five years. Previously I had made about 20 scripts and some I wanted to run. I also had recently made over 50 scripts for NWN 1. These were mostly to add and equip or unequip armor and weapons. These scripts all worked well in NWN, so I imported them into the NWN2Toolset and re-compiled them. After I finished, I placed them in the My Documents\Neverwinter Nights 2\override folder along with weapon and armor blueprints I created with the tool kit. I did this before even starting the game.
As soon as I started the game, I tried to run a script to add and equip my armor. I used DebugMode 1 and then “rs aces_add12armor” to call the script. (name carried over from NWN) I received a script error “Virtual Machine reports unsuccessful execution of script aces_add12armor for object Ace sHigh.” I rechecked my spelling and tried it again. I then tried running several scripts to install weapons. I received errors every time. I had to use giveitem itemID to add everything I wanted and equip them manually. Since the console was working I knew that wasn’t the problem. I went back into the toolset and rechecked my scripts and they looked ok. I checked online for similar problems and did not see anything close.
I tried running some simple scripts to see if they would work and still received errors. I tried running several cheat scripts built into the game like rs ga_party_limit(6) and rs ga_influence (#,##) and those worked perfectly. I decided to add the Advanced Script Compiler to see if there was a problem with my scripts and did not find any. Finally, I wrote a very simple test script which is below:
sMsg=“This is a test!”;
I ran this script and also received the unsuccessful execution error. This has been very frustrating for me and I finally decided to ask for help. If anybody knows why this might be happening, I would appreciate your help!