Vox Kalam Posted August 26, 2007 Share Posted August 26, 2007 Is there a TSL script to make an NPC (in this case, HK-47) regenerate vitality points at an advanced rate? EDIT: sorry, and also one to give an attack/defense bonus? Link to comment Share on other sites More sharing options...
Emperor Devon Posted August 26, 2007 Share Posted August 26, 2007 There probably is but it's less work to modify their hides ("armor" they're always wearing but never shows up on the equipment slot or interferes with what you equip them with). HK-47's is g_i_crhide013 and can be tweaked as any other uti file can. You can add or remove hides at the natural items part of a creature's inventory. Link to comment Share on other sites More sharing options...
Vox Kalam Posted August 26, 2007 Author Share Posted August 26, 2007 So I just script the new hide into HK's inventory? Link to comment Share on other sites More sharing options...
Emperor Devon Posted August 26, 2007 Share Posted August 26, 2007 Not script, you just open up his character template, go his inventory, and drag the hide or type a new one onto the armor section of his natural items. (That's the one with only 4 slots.) Link to comment Share on other sites More sharing options...
Vox Kalam Posted August 26, 2007 Author Share Posted August 26, 2007 I'm trying to make this happen during a dialogue. Sort of a mini-storyline in which he gets an upgrade. Link to comment Share on other sites More sharing options...
Emperor Devon Posted August 26, 2007 Share Posted August 26, 2007 In that case you'd script it. It's actually already done in some of HK's dialogue, (at the end of the parts he talks about his previous owners) so if you decompile the script there all you'd have to do is change the item name to get it to work. Link to comment Share on other sites More sharing options...
Pavlos Posted August 27, 2007 Share Posted August 27, 2007 I'm trying to make this happen during a dialogue. Sort of a mini-storyline in which he gets an upgrade. It's really just the same as creating and equipping a normal item . void main() { // Possibly use OBJECT_SELF if the creature "owns" the dialogue node object oNPC = GetObjectByTag("FooBar"); object oHide = CreateItemOnObject("HideResRef", oNPC, 1, TRUE); DestroyObject(GetItemInSlot(INVENTORY_SLOT_CARMOUR, oNPC)); AssignCommand(oNPC, ActionEquipItem(oHide, INVENTORY_SLOT_CARMOUR)); } Should work, though I've not tested it. Link to comment Share on other sites More sharing options...
Vox Kalam Posted August 27, 2007 Author Share Posted August 27, 2007 This is for TSL, not KOTOR I, will it still work? Link to comment Share on other sites More sharing options...
Pavlos Posted August 27, 2007 Share Posted August 27, 2007 What makes you think it's for K1? Anyway, it should work in TSL. Link to comment Share on other sites More sharing options...
Vox Kalam Posted August 27, 2007 Author Share Posted August 27, 2007 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.