Aller au contenu

Photo

Subradial Uses per day


  • Veuillez vous connecter pour répondre
15 réponses à ce sujet

#1
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
 I am plugging away on my subrace system and running into a roadblock. I assign custom feats through the subradial menu. I would like some (but would settle for all) to be activated only once a day. I tried editing this from the master feat in feats.2da but that does not look like a solution. Has anyone had expreience with this? Below is an example of the lines from my 2da files. 

from feat.2da
2148 subrace_drow_menu                              16966431 111954      ife_drow         ****           ****   ****   ****   ****   ****   ****   ****        ****        ****        0            0            0                10       ****  1671    ****      ****    1          ****       0          ****       ****       ****       ****       ****       ****     ****             ****      ****              FEAT_SUBRACE_DROW                              6               ****        1        ****          ****     ****        0          0
from spells.2da
1672 Drow_Darkness                     786      is_Darkness           V      L     v    0x1a      0x2F       NW_S0_Darkness   **** ****   ****  ****    ****   ****     1      0        head     ****            ****            vco_grndpurp    sco_megrdodd01  ****             ****             up       0        ****           ****           ****           ****             0    ****             ****         ****          ****             ****            ****           0            ****         ****         ****         ****         ****         10       1671   3        6132      0                0                 ****       0              336267364 ****     ****     0

#2
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
I wanted to bump this in case anyone has insight.

By way of recap I am unable to add a custom feat to the sub-radial with a limited use per day.

I have continued to look into this issue and found even when I apply a feat like bard song through either nwnx or by adding to a creature skin I do not get limited uses per day. So that tells me it is not my feat.2a or spell.2da settings.

I started digging into the PRC to see if they solved it. From what I can tell they worked around it by creating custom races and applying feats using cls_feat_*.2da in character creation but I cannot confirm that. If there are any prc users out there maybe someone can confirm if any of the prc custom feats are use per day.

#3
Shadooow

Shadooow
  • Members
  • 4 471 messages
well im adding feats with subradial via cls_feat_*.2da and it works normally - but iirc all subradial feats shares num uses with the master feat

dont know how nwnx handles or not handles this but yes any feat with uses added by a bonus feat turns into sn unlimited uses

#4
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
Thanks ShadoOow, would you mind pasting an example feat.2da, spell.2da, cls_feat_*.2da, and the script portion to add the feat to a pc that results in uses on the sub radial menu? That would be invaluable for me to see what I am doing wrong.

#5
MagicalMaster

MagicalMaster
  • Members
  • 2 003 messages
You have to give it to a player on level-up - if you forcibly add it via scripting, it'll always be unlimited.

#6
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
Thank you for the instruction. Can you do that on character creation at level 1 by any means? I am using nwnx Connect plugin which loads hak files before character creation.

#7
MagicalMaster

MagicalMaster
  • Members
  • 2 003 messages
If you can force hak files to load, probably. I wasn't using NWNX when I was fiddling with it so I simply gave it to people at level 2. Try just giving it to, say, fighters at level 2 and make sure that works. Once it does, try moving it to level 1 and make sure the hak files are loaded before creation.

#8
Khuzadrepa

Khuzadrepa
  • Members
  • 188 messages
Another way around is via scripting. When using the scripted feat, it could set a variable on a persistent player object that basically says the power has been used for the day, (which it checks for when using.) When they rest, have it reset. My only caution is if you plan on adding hundreds of feats like this it could get cumbersome, but for a couple dozen it shouldn't be a problem.

Modifié par Khuzadrepa, 11 septembre 2013 - 11:53 .


#9
MagicalMaster

MagicalMaster
  • Members
  • 2 003 messages
The other concern is that it gives less information to the player - it would be easy to forget they already used a feat earlier and still think it was available.

#10
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
Its a nice suggestion but I think I will aim for uses.

I can continue testing but has anyone tried to add uses through the race_feat_*.2da? Will this allow uses? To my testing so far it has not.

I am trying to give subrace powers. This means that I would have to give every PC all subrace powers through the cls_feat_*.2da then remove them upon first entry (maybe every level thereafter) into the world. I would love to find a way around like through race_feat_*.2da

Modifié par DM_Vecna, 11 septembre 2013 - 05:23 .


#11
MagicalMaster

MagicalMaster
  • Members
  • 2 003 messages
I'll give it a shot tonight - it would probably only possibly work in multiplayer by using the NWNX thing you mentioned.

That said (if it doesn't work), if the maximum number of subrace powers is, say, 3, you could give everyone 3 feats and then when the feat is used check the subrace to determine what will actually happen.

#12
MagicalMaster

MagicalMaster
  • Members
  • 2 003 messages
Yes, the feat can be added with a limited number of uses per day via race_feat_*.2da in single player.

Tested it with human specifically. If you can't get it working, then either the NWNX doesn't work as you hope or you're doing it incorrectly.

#13
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
Thanks for the insight. Any chance you can paste your feat/spell/race 2da lines. I am having some trouble making this work.

#14
MagicalMaster

MagicalMaster
  • Members
  • 2 003 messages
Human racial 2da...
2DA V2.0

      FeatLabel    FeatIndex
0     QuickMaster  258
2     FT_FTR_REND  1117

Feat 2da...
1117   FT_FTR_REND                                      8474    8456          ife_X2WSGSwd       99               ****     ****     ****     ****     ****     ****     ****          ****          ****          0              0              0                  22         ****    841       ****        1	      1            ****         1            ****         ****         ****         ****         ****         ****       ****               ****        ****                FT_FTR_REND 		                     1                 ****          ****       ****            ****       ****          0             0

Spell 2da
841   SP_FTR_REND                         ****    ****		    ****     ****    ****   ****        ****         ft_ftr_rend        ****   ****     ****    ****      ****     ****       ****     ****       ****       ****              ****		 ****              ****		     ****		****		    ****      ****       ****             ****             ****             ****               ****   ****	         ****	        ****            ****		    ****             ****             ****           ****           ****           ****           ****           ****           ****       ****     ****       ****        ****               ****                ****         1                1117        ****       ****       ****


#15
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
Thank you so much for all the help. I found the problem I was having. Though I made entries for the feats in the fests/spells/race 2da files I did not make an entry in class_feat_*.2da thinking that would force the feat to load through class rather than on race. Of course that was wrong thinking.

Problem Solved :)

#16
MagicalMaster

MagicalMaster
  • Members
  • 2 003 messages
Not sure what you're trying to say. You don't need an entry in the class_feat_*.2da file if you have it in the race_feat_*.2da file and feat.2da

I only included the spell.2da to show how you could attack a script to it.