Hello everybody,
I would like to give a feat to PC throught the module event on level up, but I'm not finding the function GiveFeatToPC().
There is a way to do it?
Hello everybody,
I would like to give a feat to PC throught the module event on level up, but I'm not finding the function GiveFeatToPC().
There is a way to do it?
You'd need NWNX or Leto or something to actually integrate it into the PC or use 2das and haks.
You could also use the bonus feat on item property and just attach it to the player skin, though. The catch is that usable feats always have infinite uses if added via skin. But if you just want a passive feat or a feat with infinite (or scripted uses) that works out fine.
Oh, yes, I have NWNX. (magical master) What is the procedure?
Proleric, how about to give Summon Mount to player? I got your idea, but In this case I think won't be possible because Isn't available to special properties to itens?
Modifié par WhiteTiger, 21 juillet 2014 - 10:44 .
I have no idea, WhiteTiger, all I know is you can't do it via scripting and you'd need something like that.
Regarding Summon Mount, you'd have two "problems." One, it would be infinite uses per day (maybe that's not a problem, just be aware of it). Two, you'd just have to add it to the 2da defining bonus feats and then you could add it via script.
Might even be able to do that server side with an override without needing a hak file but not sure. Will try to check later.
Oh =/... So discarting nwnx, is possible by 2da? do you know something about?
One, it would be infinite uses per day
the same feat that paladin uses?
Modifié par WhiteTiger, 22 juillet 2014 - 05:08 .
Might even be able to do that server side with an override without needing a hak file but not sure. Will try to check later.
That would be a perfect solution to my module - once that it doesn't use hak paks
Damn you are an impatient. I told you this will be possible in next CPP beta
.
Im going to include (almost) all feats a bonus feats which you can put on PC skin. The problem with unlimited uses can be solved by either tracking use in dabatase/item and restore this OnRest or by removing that feat completely and adding again after OnRest
and yes this solution doesnt need client to have this 2da nor CPP - it works as serverside (the only issue is that if you add this on item a player can wear then he will see Bonus feat: badd streff instead of "lasting inspiration" or whatever you use)
Oh =/... So discarting nwnx, is possible by 2da? do you know something about?
the same feat that paladin uses?
Haks would make it extremely simple to add properly with limited uses.
2da edits with bonus feats will let you add an unlimited use per day version of the feat except you'll need to track uses.
NWNX or Leto may let you simply add the feat.
NWNX or Leto may let you simply add the feat.
Leto is deprecated and require booting character to do that (and that process still sometimes fails so no can't recommend this one.
NWNX_Funcs: last several versions broken and crashing (does anyone have a link for the one that doesn't ?).
Anyway NWN method will make character illegal ! which is a matter if you check legallity with ELC.
I'm not impatient, but I loved to know that patch 1.72 will bring this function. I use patch 1.71 and I provide it for download on my website which you can access through the link of my signature.
Anxiously waiting to update the download info to 1.72! ![]()
http://www.amnesia-nwn.info/#downloads
Another possible issue one might want to keep in mind: Adding feats to the PC's skin item may work poorly with polymorphed characters. That may not be so much of a problem if one is talking only about feats that affect a mounted PC, since one cannot mount while polymorphed anyway. But, a druid, shifter, user of any of the standard polymorph spells (Polymorph Self, Shapechange, Tenser's Transformation), or PC polymorphed by item or other script will likely lose access to any feat added to the PCs skin during level-up, assuming the polymorphed form has its own skin.
Of course, it should be straightforward to alter the polymorph script so that PC skin feats "merge" onto the polymorph skin item.
If you have NWNX_Funcs installed properly all you have to do is script it with the proper function after the nwnx include file. This is a little snippet of what I use in Avernostra on my Module OnEnter script. Basically it checks to see if a player has Ambidexterity. If they don't it adds it to them. I use it to be more compliant with Pathfinder, which is my d20 system of choice.
#include "nwnx_funcs"
void main() {
object oPC = GetEnteringObject();
if (GetIsDM(oPC))
{ return; }
if ((GetHasFeat(FEAT_AMBIDEXTERITY, oPC) == FALSE))
{ NWNXFuncs_AddFeat(oPC, FEAT_AMBIDEXTERITY); }
}
If you have NWNX_Funcs installed properly all you have to do is script it with the proper function after the nwnx include file. This is a little snippet of what I use in Avernostra on my Module OnEnter script. Basically it checks to see if a player has Ambidexterity. If they don't it adds it to them. I use it to be more compliant with Pathfinder, which is my d20 system of choice.
#include "nwnx_funcs" void main() { object oPC = GetEnteringObject(); if (GetIsDM(oPC)) { return; } if ((GetHasFeat(FEAT_AMBIDEXTERITY, oPC) == FALSE)) { NWNXFuncs_AddFeat(oPC, FEAT_AMBIDEXTERITY); } }// Adds a feat to oObject's general featlist// If iLevel is greater than 0 the feat is also added to the featlist for that levelvoid NWNXFuncs_AddFeat(object oCreature, int iFeat, int iLevel=0)Once you get the include file added you can view all the NWNX functions in a list by typing 'NWNX' in the filter on the right side of the script screen. It's a great way to implement subraces because you can mod the ability scores directly and such.
This seems so intuitive. Where can I download nwnx_funcs?
This seems so intuitive. Where can I download nwnx_funcs?
You still havent clarified whether you are running ELC or not...
[...] 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
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
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.
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.
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.
Why wouldn't you?
Because ELC destroys the PC's skin item on client load.
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 .
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?
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
This was very productive thank you for pushing me towards finding a fix for the full inventory issue because I have found it ![]()