Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

[Help!] The KOTOR Remix is thisclose to being finished.

Page: 1 of 1
 shamelessposer
02-08-2007, 8:03 PM
#1
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).
 stoffe
02-08-2007, 8:27 PM
#2
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.
 shamelessposer
02-08-2007, 10:32 PM
#3
Once again, your scripting awesomeness saves me from having to abandon this project. Thanks!
Page: 1 of 1