shamelessposer Posted February 9, 2007 Share Posted February 9, 2007 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). Link to comment Share on other sites More sharing options...
stoffe Posted February 9, 2007 Share Posted February 9, 2007 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("[color=Yellow]HideResRef[/color]", 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. Link to comment Share on other sites More sharing options...
shamelessposer Posted February 9, 2007 Author Share Posted February 9, 2007 Once again, your scripting awesomeness saves me from having to abandon this project. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.