Okay, so after playing with the thing on and off for the better part of a year, my KOTOR Remix is almost complete. The only thing I need now is a scripting function. I've played around with the tutorial examples, but I've hit a little bit of a brick wall.
Is it at all possible for someone to give me a script sample that puts a new item into the character's inventory, then immediately puts it in the character's "hide" slot? It needs to be able to work in a dialogue. The idea here is that you'll be able to speak to Bastila and learn one of the seven lightsaber forms from her (the lightsaber forms being represented by the "hide" items).
Is it at all possible for someone to give me a script sample that puts a new item into the character's inventory, then immediately puts it in the character's "hide" slot? It needs to be able to work in a dialogue. The idea here is that you'll be able to speak to Bastila and learn one of the seven lightsaber forms from her (the lightsaber forms being represented by the "hide" items).
Something like this should work:
void main() {
object oHide = CreateItemOnObject("HideResRef", GetFirstPC(), 1);
DelayCommand(0.2, AssignCommand(GetFirstPC(), ActionEquipItem(oHide, INVENTORY_SLOT_CARMOUR, TRUE)));
}
Change HideResRef in the script to the name of the UTI file (without the .uti extension) for your hide item.
Once again, your scripting awesomeness saves me from having to abandon this project. Thanks!