Author Topic: Subradial Uses per day  (Read 457 times)

Legacy_DM_Vecna

  • Hero Member
  • *****
  • Posts: 501
  • Karma: +0/-0
Subradial Uses per day
« on: August 01, 2013, 01:00:21 am »


                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
               
               

               
            

Legacy_DM_Vecna

  • Hero Member
  • *****
  • Posts: 501
  • Karma: +0/-0
Subradial Uses per day
« Reply #1 on: September 10, 2013, 04:38:32 am »


               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.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Subradial Uses per day
« Reply #2 on: September 10, 2013, 09:50:20 am »


               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
               
               

               
            

Legacy_DM_Vecna

  • Hero Member
  • *****
  • Posts: 501
  • Karma: +0/-0
Subradial Uses per day
« Reply #3 on: September 10, 2013, 07:47:04 pm »


               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.
               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Subradial Uses per day
« Reply #4 on: September 10, 2013, 10:27:18 pm »


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

               
            

Legacy_DM_Vecna

  • Hero Member
  • *****
  • Posts: 501
  • Karma: +0/-0
Subradial Uses per day
« Reply #5 on: September 11, 2013, 02:47:12 am »


               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.
               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Subradial Uses per day
« Reply #6 on: September 11, 2013, 03:53:05 am »


               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.
               
               

               
            

Legacy_Khuzadrepa

  • Sr. Member
  • ****
  • Posts: 347
  • Karma: +0/-0
Subradial Uses per day
« Reply #7 on: September 11, 2013, 12:52:30 pm »


               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 .
                     
                  


            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Subradial Uses per day
« Reply #8 on: September 11, 2013, 06:15:13 pm »


               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.
               
               

               
            

Legacy_DM_Vecna

  • Hero Member
  • *****
  • Posts: 501
  • Karma: +0/-0
Subradial Uses per day
« Reply #9 on: September 11, 2013, 06:22:20 pm »


               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 .
                     
                  


            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Subradial Uses per day
« Reply #10 on: September 11, 2013, 10:26:51 pm »


               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.
               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Subradial Uses per day
« Reply #11 on: September 12, 2013, 07:45:10 am »


               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.
               
               

               
            

Legacy_DM_Vecna

  • Hero Member
  • *****
  • Posts: 501
  • Karma: +0/-0
Subradial Uses per day
« Reply #12 on: September 14, 2013, 07:15:17 am »


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

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Subradial Uses per day
« Reply #13 on: September 14, 2013, 07:41:19 am »


               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        ****       ****       ****

               
               

               
            

Legacy_DM_Vecna

  • Hero Member
  • *****
  • Posts: 501
  • Karma: +0/-0
Subradial Uses per day
« Reply #14 on: September 15, 2013, 04:58:30 am »


               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 '<img'>