Author Topic: Lay on Hands - Paladin Spell  (Read 1018 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« on: March 21, 2014, 06:05:47 pm »


               

Hello, everybody!


 


I would like to know if it's possible up to three times of use the paladin spell Lay On Hands Heal per Rest.


 


I think this class should have more cures/heals. OK?



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #1 on: March 21, 2014, 06:15:45 pm »


               

If isn't possible do it, can we recovery the spell use of lay on hands after a time in seconds and if sleep cancel this integer?



               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #2 on: March 21, 2014, 06:27:37 pm »


               

Either is possible.  Extremely easy to give it three uses through 2da edits, but if you want to avoid that it's still doable.


 


Basically, whenever you finish resting you'd delete the integer called "layonhandsuses" and then whenever you use the spell you increment the uses of Lay on Hands if "layonhandsuses" is less than 2 and then increment "layonhandsuses."  Would need to store the integer on an item the player possesses that they can't drop, ideally, so it's not reset if the player logs out.


 


Alternatively, you could set "layonhandsuses" to 2 and then increment Lay on Hands if it's greater than 0 which avoids the problem of it resetting if a player logs out -- but it does mean the player would then LOSE all uses if they get disconnected.  So either way you'd want to store the data on a player item.



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #3 on: March 22, 2014, 12:30:16 am »


               

OK, only need a way to restore spell uses.


 


"Extremely easy to give it three uses through 2da edits"


 


And what about 2da? How to? 


 


I'm very intersted...



               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #4 on: March 22, 2014, 12:53:01 am »


               

2da changes require a hak or override. Also, lay on hands is actually implemented as a feat, not a spell. The feat just references spells.2da to get the information for the spell-like effects. The HCR 2.0 has a system for modifying feat recharge via resting. You should look at how they did it. 



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #5 on: March 22, 2014, 01:12:13 am »


               

"2da changes require a hak or override" to override changes works is necessary stay installed only on dedicated server or to all client players?



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #6 on: March 22, 2014, 01:20:06 am »


               

i think if you edit feats.2da and put it in the server's override it should work



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #7 on: March 22, 2014, 02:03:30 am »


               

Wow! That good to know. And How to edit this? would be great if someone could explain with thanks


 


Something useful that I did using "2da" was to merge Druid and Transformation items. (with the help of shadooow)



               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #8 on: March 22, 2014, 03:38:12 am »


               

As mentioned, Lay on Hands is considered a Feat so incrementing the uses is very easy.


 


If you go the 2da route, you'd simply find the row in feats.2da that corresponds to Lay on Hands, find the column that defines uses per day, and change it from 1 to 3.  Then done.  No scripting needed.  Would still need to put the edited feats.2da in override or possibly the players would need to have it, I'm not sure on that.



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #9 on: March 22, 2014, 01:49:18 pm »


               

OK. Where is Feats.2da?



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #10 on: March 22, 2014, 02:01:14 pm »


               

I downloaded nwnexplorer and find feat.2da


 


this line



299        LayOnHands                 1392    6089          ife_layon         ****             ****     ****     ****     ****     ****          ****          ****          0              0              0                  7          1       313       ****        0.5       1            ****         ****         ****         ****         ****         ****         ****         ****       FEAT_LAY_ON_HANDS                             6                 ****          

After 0.5, we change value 1 for how much uses we want per rest to spell Lay on Hands.


 


so save file and put on dedicated server override. 


 


Credits:


 


http://www.neverwint...lorerreborn.htm


 


http://social.biowar...-17504431-1.html



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #11 on: March 22, 2014, 02:11:26 pm »


               

I'm having a trouble with add feat.2da to ded.server override folder.


 


On Character Selection - Login:


 


"Invalid character - player login refused.


Character has an invalid feat."


 


note: all characters classes  are unable to login and not only paladin


 


feat.2da (with or without changes) on dedicated server override folder are blocking to enter in game ):



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #12 on: March 22, 2014, 02:11:45 pm »


               

Oh, one thing. You will find all current 2DAs in the "builders resources" folder that comes with the community patch. Thats exactly its purpose as you aske me about it earlier. If you exported the 2DA via nwnexplorer there is a big chance its the vanilla version without all of the fixes from CPP, unless you extracted it from the patch171.bif file in it (its a bit hidden in the HotU Patch Datas).



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #13 on: March 22, 2014, 02:24:04 pm »


               


Oh, one thing. You will find all current 2DAs in the "builders resources" folder that comes with the community patch. Thats exactly its purpose as you aske me about it earlier. If you exported the 2DA via nwnexplorer there is a big chance its the vanilla version without all of the fixes from CPP, unless you extracted it from the patch171.bif file in it (its a bit hidden in the HotU Patch Datas).




 


Good job, Shadow!


 


No more errors on login.


 


1.71 community patch dl


http://social.biowar...t_file_id=15871


 


find feat.2da in "1.71 builder resources\1.71 full 2dasource" and change line 299 uses per day and it's work without errors on login.


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Lay on Hands - Paladin Spell
« Reply #14 on: March 22, 2014, 02:55:15 pm »


               

huh thats strange, I didnt thought it will fix the login error issue, maybe you messed up the edit for the first time? could you send me the 2da file you get that error with?