Originally Posted by Istorian
Hello and welcome to the forums! Congratulations on your mod, I am sure it will be very nice! Now, about your script problem, you have to declare what is the "oRightHandWeapon"...use this one:
object oRightHandWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, oPartyMember);
That should solve your problem!
Anyway, welcome again and have a nice modding stay here at Holowan Labs!
Thank you for your warm welcome.
The code I posted was just an excerpt. The object was already declared earlier in the code. Sorry that I forgot to mention it.
To be on the safe side, when it comes to the values of the variables I use, I used some debug output to check it and everything is fine, except that the values are not stored in the global var.
May it be that the global string vars just accept strings of a certain maximum length and that the weapon tag strings are too long?
I will test that.