mrdefender Posted February 2, 2006 Share Posted February 2, 2006 I was hoping someone could help me figgure out a couple of things with TSL modding.... 1) How do you create your own shop? With the HakPad source I know how to start/open it but how do you actually make it? From what I can see it's a .utm file .... :| 2) Where can I find a list, if it exists, with all of the "OBJECT_TYPE_????" stuff? I want to play around with those abit but not sure what they are yet. 3) How do you give experience points to the player, or another party member by using scripts? Any help with any of these questions would be very appreciated Link to comment Share on other sites More sharing options...
stoffe Posted February 2, 2006 Share Posted February 2, 2006 I was hoping someone could help me figgure out a couple of things with TSL modding.... 1) How do you create your own shop? With the HakPad source I know how to start/open it but how do you actually make it? From what I can see it's a .utm file .... :| This thread has some information about the format of UTM files. It's a rather old thread, but maybe it can be of some use anyway. 2) Where can I find a list, if it exists, with all of the "OBJECT_TYPE_????" stuff? I want to play around with those abit but not sure what they are yet. All NWScript constants are declared at the top of the nwscript.nss file (which comes with the game and is used by nwnnsscomp.exe uses, so you must have it already. ). Note that some constants are old junk leftover from Neverwinter Nights that have no purpose in KotOR. Some constant groups, like the SPELL_* and FEAT_* represent values from 2DA files, but usually don't have corresponding constants for all Powers/Feats in the game declared, so you'll to use the numeric values directly for those. 3) How do you give experience points to the player, or another party member by using scripts? You use the GiveXPToCreature() function, which will give XP and display a message informing the player how much they've received. Like, to give 100 experience points you could write: GiveXPToCreature(GetFirstPC(), 100); When you give XP to the main character, the whole party will get their share as usual. Link to comment Share on other sites More sharing options...
mrdefender Posted February 2, 2006 Author Share Posted February 2, 2006 Many 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.