View Single Post
Old 09-24-2008, 11:29 AM   #3
Xiskio's Avatar
Join Date: Jan 2006
Posts: 26
Originally Posted by Istorian View Post
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:

void main()
object oRightHandWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, oPartyMember);
SetGlobalString("CarthRHW", GetTag(oRightHandWeapon));
That should solve your problem!

Anyway, welcome again and have a nice modding stay here at Holowan Labs!


Hi Istorian,

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.
Xiskio is offline   you may: quote & reply,