Author Topic: How to give a feat to PC?  (Read 560 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to give a feat to PC?
« Reply #15 on: July 24, 2014, 10:56:30 am »


               


[...] NWN method will make character illegal ! which is a matter if you check legallity with ELC.




 


yeah, this is the reason that this will not work for me


 


well-minded



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to give a feat to PC?
« Reply #16 on: July 24, 2014, 11:24:20 am »


               


yeah, this is the reason that this will not work for me


 


well-minded




i will release a new 1.72 beta this weekend, in this version you will be able to do this:


 


itemproperty bonusfeat = ItemPropertyBonusFeat(100+FEAT_*);


 


or if you rush so much I can post the 2da file that allows this today - you will need to put it into override on server


 


of course this has the drawback MrZork mentioned - PC will lose this feat while shapeshifted - but that can be workarounded and new CPP version will allow to customize whole item merging process without need to recompile all polymorph spells - though I dont think it would mind for the purpose you need this


               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
How to give a feat to PC?
« Reply #17 on: July 24, 2014, 06:43:59 pm »


               


You still havent clarified whether you are running ELC or not...




 


Yeah... good point. I don't use it, and these functions do make your character illegal in NWN. Shy of hacking or some dirty tricks servervault characters are pretty secure from tampering. Unless you have problems with players abusing your kindness I would keep ELC off. 


 


 




This seems so intuitive. Where can I download nwnx_funcs?




 


http://sourceforge.n...wnxstuff/files/


 


I'm not 100% sure on this, but I use the _094 version, and not the _0941 version. From what I understand the _0941 was beta or something, and not completed entirely. It's supposed to have a few bugs here and there while 094, while having a few less functions, works better. That's all hearsay from me though. Someone more familiar with NWNX can assuredly tell you far more accurate information.


               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
How to give a feat to PC?
« Reply #18 on: July 28, 2014, 06:11:11 pm »


               


You still havent clarified whether you are running ELC or not...




 


If you're using the skin for this or other persistence you can't use ELC anyway. 


 


Also, adding feats as itemprops does not work the same as on the actual PC in regards to the level-up feat menu. You will see feats you already have listed as selectable (assuming they are class choosable feats) and these added feats won't satisfy pre-reqs for other feats you may want to select.  Whether or not that is an issue for you depends on the feat(s) you are adding of course.


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to give a feat to PC?
« Reply #19 on: July 28, 2014, 06:49:26 pm »


               


If you're using the skin for this or other persistence you can't use ELC anyway. 




Why wouldn't you?


 



 


Also, adding feats as itemprops does not work the same as on the actual PC in regards to the level-up feat menu. You will see feats you already have listed as selectable (assuming they are class choosable feats) and these added feats won't satisfy pre-reqs for other feats you may want to select.  Whether or not that is an issue for you depends on the feat(s) you are adding of course.



Yes thats true. In the OP case when he is trying to add summon mount for blackguard it won't be a problem.


               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
How to give a feat to PC?
« Reply #20 on: July 28, 2014, 08:32:20 pm »


               


Why wouldn't you?




 


Because ELC destroys the PC's skin item on client load.


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to give a feat to PC?
« Reply #21 on: July 28, 2014, 09:14:03 pm »


               


Because ELC destroys the PC's skin item on client load.




thought you mean this


 


well, CPP 1.71 fixes this but even then this issue itself doesn't prevent using skin to add feats, builder just have to recreate and rebuild skin each login, but I know OP has 1.71 installed so I didnt mentioned this


 


EDIT: rather say that I am aware of that ultra rare issue and then the second point applies - that doesnt prevent from using skin for this



               
               

               


                     Modifié par Shadooow, 28 juillet 2014 - 08:17 .
                     
                  


            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
How to give a feat to PC?
« Reply #22 on: July 28, 2014, 10:08:33 pm »


               


thought you mean this


 


well, CPP 1.71 fixes this but even then this issue itself doesn't prevent using skin to add feats, builder just have to recreate and rebuild skin each login, but I know OP has 1.71 installed so I didnt mentioned this


 


EDIT: rather say that I am aware of that ultra rare issue and then the second point applies - that doesnt prevent from using skin for this




 


Not sure it's an ultra-rare issue. Recreating the skin on load and re-adding all the feats is certainly doable. Much nicer is to just have them there on the PC. You also don't have the polymorph issues.


 


Btw, I thought this was hardcoded in the engine. How does CPP fix it?


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to give a feat to PC?
« Reply #23 on: July 28, 2014, 10:29:15 pm »


               


Not sure it's an ultra-rare issue. Recreating the skin on load and re-adding all the feats is certainly doable. Much nicer is to just have them there on the PC. You also don't have the polymorph issues.


 


Btw, I thought this was hardcoded in the engine. How does CPP fix it?




well yea, I am not saying this is the best wayto do that, each method has pros and cons, I personally used nwnx in past but with ELC off builder needs to patch all potentional exploits which is usually long way home. So each method needs several workarounds, you either workaround missing ELC or you need to workaround the polymorph issue and potentional lost of the skin item (which still can happen even in 1.71).


 


Look into x2_mod_def_unequ.nss


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to give a feat to PC?
« Reply #24 on: July 28, 2014, 10:50:44 pm »


               

This was very productive thank you for pushing me towards finding a fix for the full inventory issue because I have found it ':wizard:'



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
How to give a feat to PC?
« Reply #25 on: July 28, 2014, 11:13:03 pm »


               


well yea, I am not saying this is the best wayto do that, each method has pros and cons, I personally used nwnx in past but with ELC off builder needs to patch all potentional exploits which is usually long way home. So each method needs several workarounds, you either workaround missing ELC or you need to workaround the polymorph issue and potentional lost of the skin item (which still can happen even in 1.71).


 


Look into x2_mod_def_unequ.nss




hmm, I can't look into any of it because I can only find some .exe file, which with I can do nothing. Sometimes those self extracting things can be defeated with unzip but this one doesn't like that. Do you have a Linux friendly version?


 


Edit: Nevermind, was looking only at 1.72 beta. Found 1.71 files...



               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
How to give a feat to PC?
« Reply #26 on: July 28, 2014, 11:13:51 pm »


               


This was very productive thank you for pushing me towards finding a fix for the full inventory issue because I have found it ':wizard:'




 


An NWNX fix, or the common work-around of copying items off the PC, destroying items, delay, add the new item, copy items back onto the PC?


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to give a feat to PC?
« Reply #27 on: July 28, 2014, 11:28:09 pm »


               


An NWNX fix, or the common work-around of copying items off the PC, destroying items, delay, add the new item, copy items back onto the PC?




setting the heigh and with to 0


               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
How to give a feat to PC?
« Reply #28 on: July 29, 2014, 12:42:16 am »


               


setting the heigh and with to 0




 


Okay, so this will only work for skins and creature weapons.