GeorgNihilus Posted September 7, 2007 Share Posted September 7, 2007 Hi people, well I'm trying to equip with 2 pistols one of the cantina dancers in K1 (in Javyar's cantina) for a following fight but I'm not sure if these dancers can be equiped with weapons ... I already had the same problem trying to equip an ithorian (Yuka Laka) in Tatooine; I'm using this script: // give Cantina Bastila a little chance at Javyar's cantina /* "should" equip 2 Zabrak pistols on Cantina Bastila for her attack */ // Created by: GeorgNihilus void main() { object oTarget=GetObjectByTag("Cantina Bastila"); object oPistol = CreateItemOnObject("g_w_blstrpstl004",oTarget); object oPistol = CreateItemOnObject("g_w_blstrpstl004",oTarget); AssignCommand(oTarget,ActionEquipItem(oPistol,INVENTORY_SLOT_RIGHTWEAPON,TRUE)); AssignCommand(oTarget,ActionEquipItem(oPistol,INVENTORY_SLOT_LEFTWEAPON,TRUE)); } So ... any ideas? thanks as usual ... Link to comment Share on other sites More sharing options...
stoffe Posted September 7, 2007 Share Posted September 7, 2007 Hi people, well I'm trying to equip with 2 pistols one of the cantina dancers in K1 (in Javyar's cantina) for a following fight but I'm not sure if these dancers can be equiped with weapon The NPC will need either a weapon proficiency feat suitable for the weapon type, or the "Proficiency: All" feat to be able to equip weapons. Also your script contained an error. You re-declared the oPistol variable after it had already been declared (which shouldn't allow you to compile the script), and you tried to assign both object references to this same variable. Since you can't equip a single weapon in both hands at the same time it would fail even if you had been able to compile it. void main() { object oTarget = GetObjectByTag("Cantina Bastila"); object oPistol1 = CreateItemOnObject("g_w_blstrpstl004", oTarget); object oPistol2 = CreateItemOnObject("g_w_blstrpstl004", oTarget); AssignCommand(oTarget, ActionEquipItem(oPistol1, INVENTORY_SLOT_RIGHTWEAPON, TRUE)); AssignCommand(oTarget, ActionEquipItem(oPistol2, INVENTORY_SLOT_LEFTWEAPON, TRUE)); } Link to comment Share on other sites More sharing options...
GeorgNihilus Posted September 9, 2007 Author Share Posted September 9, 2007 Thanks, yes I missed typing the "2" in the 2nd definition of the pistol ; but that's not the problem ... I tried adding the proficiency all feat (the pistols proficiency was already set in the .utc) but it doesn't work, problem seems to be that the module in question in which this .utc is dropped (tar_m03ae.mod) of the /modules folder (which is a modded file by the way) is ignoring the .utc, because it doesn't recognize even the changed name of the dancer ... but it reads the dialog file for example ... pretty strange ... thanks as usual guys ... Link to comment Share on other sites More sharing options...
stoffe Posted September 9, 2007 Share Posted September 9, 2007 problem seems to be that the module in question in which this .utc is dropped (tar_m03ae.mod) of the /modules folder (which is a modded file by the way) is ignoring the .utc, because it doesn't recognize even the changed name of the dancer ... but it reads the dialog file for example ... Are you using a savegame where you have already been to the area in question? Dynamic resources (creatures, items, placeables, triggers, areas etc) gets stored in the save game when the area is instantiated (first time you visit it), while static resources (dlg files, scripts, sounds etc) are not included in the save. So, if you've already been to the area the UTC file is not used any more since the character instance is stored in your savegame instead. Link to comment Share on other sites More sharing options...
GeorgNihilus Posted September 9, 2007 Author Share Posted September 9, 2007 No, I'm using a savegame starting from the Upper City gate with the sith soldier in the entrance, just before entering the LowerCity; so I've never been in Javyar's cantina before ... Link to comment Share on other sites More sharing options...
stoffe Posted September 9, 2007 Share Posted September 9, 2007 No, I'm using a savegame starting from the Upper City gate with the sith soldier in the entrance, just before entering the LowerCity; so I've never been in Javyar's cantina before ... If you are using a MOD file for your modifications, have you checked that it's used at all? It's possible the game is loading the data from the RIM files if you haven't removed them from the Modules folder. If it is used, have you checked if the script that gives and equips the blasters is actually being run? If it is, have you doublechecked that you are using the proper tags and resrefs everywhere, and that you aren't using ResRefs where you should use Tags, or vice versa, if they aren't identical? Hard to say what could be wrong without knowing what you've done. Link to comment Share on other sites More sharing options...
GeorgNihilus Posted September 17, 2007 Author Share Posted September 17, 2007 I see, thanks anyway Stoffe, still finally I changed my mind and I won't go on with this cause, after all, it's pretty silly having a dancer firing at you in the cantina with a couple of blaster pistols and then going on with her dancing like nothing ... hmmm ... Good modding! :; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.