Jump to content

Home

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


shamelessposer

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...