Author Topic: Subrace Related Questions  (Read 755 times)

Legacy_Sadira of Tyr

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +0/-0
Subrace Related Questions
« on: March 09, 2014, 12:50:26 pm »


               

I am trying to make a dragon subrace, but I have a couple questions, that I cannot find any answers.


 


I would like these dragons to be able to switch to flying or walking. I know that there are flying dragon appearances, but I do not see them in the list of constants. I tried including some of the cep include scripts, but still no luck. Is it possible to give a flying dragon appearance to a PC?


 


Also I would like to give some feats, but I cannot find any functions for giving feats to a PC. I know there are bonus feats you can add to items, but these are pretty much limited. Is there a way to give feats without using an external program?


 


Thank you for any help you may provide.  



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Subrace Related Questions
« Reply #1 on: March 09, 2014, 04:01:24 pm »


               

To change the appearance of a PC you can apply a Polymorph (which has few pros and cons) or you can simply change the appearance of the PC by script:


SetCreatureAppearanceType()


 


For giving feats If you handle this with polymorph you'd probably put all the bonus feats on the skin item used by the polymorph, or if you only change the appearance you can add the feats to the PCs skin by script.


 


The key to that is adding feats to the 2da that contains bonus feat properties for items iprp_feats



               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Subrace Related Questions
« Reply #2 on: March 09, 2014, 05:11:32 pm »


               

Also, for SetCreatureAppearanceType(object oCreature, int nAppearanceType), you do not have to stick to the constants included in nwscript.  You can use the line numbers from appearance.2da for nAppearanceType.



               
               

               
            

Legacy_Sadira of Tyr

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +0/-0
Subrace Related Questions
« Reply #3 on: March 10, 2014, 10:58:39 pm »


               

Thanks guys. '<img'>


 


What I am looking for, are the flying dragon appearances from cep. I could not find them in appearance.2da, since I am sure that is only the standard Bioware appearances. I tried to find the 2da files in the cep hak files, but they looked like just a bunch of jumbled up numbers, lol. Is there a way to see the appearance.2da files from cep. If I could find it, I could then use the line numbers for my flying dragons.


 


Using the item property bonus feats, and then adding new feats, would be good enough, if they will work as prerequisites for other feats. Our server host does not wish to use external programs on the server. What I am trying to do, is use feats like great strength, to replace the leto stat changes for subraces. If giving great strength 4 to a subrace will allow the player to take great strength 5, then that is what I am looking for. If it is not possible, then I have other ideas to try.



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Subrace Related Questions
« Reply #4 on: March 11, 2014, 04:33:31 am »


               

Item Property feats seem to work just as other feats do in response to checks for whether the PC has the feat. I would think this is enough to enable selecting other feats on level up. But I have not tested this. Could you give this a test and let us know how it goes?



               
               

               
            

Legacy_Sadira of Tyr

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +0/-0
Subrace Related Questions
« Reply #5 on: March 11, 2014, 10:07:07 am »


               

Sure, but it may take me awhile. The 2da files are not letting me edit them. Is there a program I will need for this? Also will the server host need to have this edited 2da file as well?



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Subrace Related Questions
« Reply #6 on: March 11, 2014, 01:23:10 pm »


               

Do you have a 2da editor? Here is one.


 


It is not necessary because a 2da is just text so notepad should work fine. An actual 2da editor however makes things easier on you.



               
               

               
            

Legacy_Sadira of Tyr

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +0/-0
Subrace Related Questions
« Reply #7 on: March 11, 2014, 11:22:33 pm »


               

Thank you. '<img'>



               
               

               
            

Legacy_Sadira of Tyr

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +0/-0
Subrace Related Questions
« Reply #8 on: March 23, 2014, 02:41:36 pm »


               

Ok, I have edited my iprp-feats.2da to add some great charisma feats. However when I open the toolset, the great charisma feats are still not available as item property bonus feats. Is there something else I need to do, or did I do something wrong? Will this edited 2da file be required by the server host, or is it only needed by whoever is editing the module in the toolset?


 


Here is my edited iprp-feats.2da file:


 


Darn, this silly forum will not let me copy paste, so here is one line that I added. Maybe it will be enough.


 


63   764        FEAT_EPIC_GREAT_CHARISMA_1  0.01   3954



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Subrace Related Questions
« Reply #9 on: March 23, 2014, 02:59:19 pm »


               

Tip: Use this iprp_feat.2da which I have created for a PW I was a while working on. The advantage is that you dont need to know the exact line number and you can use ItempropertyBonusFeat(FEAT_EPIC_PROWESS+100) as I copied all feats there with starting at line 100.


 


However certain feats are not useable this way and I think the great charisma is one of them. Others when added as bonus feats are instead unlimited - that is case of Smite Evil feat.


 


But your problem specifically is that there is not any constant, you must provide the line number, in your case 63 thus ItempropertyBonusFeat(63);



               
               

               
            

Legacy_Sadira of Tyr

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +0/-0
Subrace Related Questions
« Reply #10 on: March 23, 2014, 06:16:39 pm »


               

Thank you Shadooow. ':wub:'


 


I see that the feats still do not show when editing an item, so I will assume they have to be added by a script, which is fine. If I add the great feats into your 2da file, will it work if I add the feats by script, and use the line numbers instead of constants?


 


Also I do not host a server. I work on the module, and send it to the host every week. Will this host need to have the edited 2da file as well? 



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Subrace Related Questions
« Reply #11 on: March 23, 2014, 06:25:08 pm »


               


I see that the feats still do not show when editing an item




I see. Wait, thats wrong. They should appear in a toolset in item properties, where are you giving this 2da? Into override? If so check if you dont have this 2da in one of your haks too - if so you must replace it.



               
               

               
            

Legacy_Sadira of Tyr

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +0/-0
Subrace Related Questions
« Reply #12 on: March 23, 2014, 11:17:39 pm »


               

I have put the file in the 2da source folder, which is in the NWN folder. We are using cep2.2c. I have tried looking in the hak folder, but the cep files look like just a bunch of random numbers. I do not know where I would find the 2da files in cep.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Subrace Related Questions
« Reply #13 on: March 23, 2014, 11:27:55 pm »


               

Wrong absolutely, guys DELETE the 2dasource folder! Its not even a week than someone else did a same mistake there.


 


put it into override folder instead and get rid of that source... (unless its a package you downloaded from vault and not unzipped 2dasource.zip from nwn folder which contains outdated 2das)



               
               

               
            

Legacy_Sadira of Tyr

  • Sr. Member
  • ****
  • Posts: 299
  • Karma: +0/-0
Subrace Related Questions
« Reply #14 on: March 24, 2014, 12:01:34 am »


               

Ah, I wondered why it was in a zip file only. I am not a guy, but I have deleted it, lol.


 


Ok, I have put it into my override folder, and I can now add the feats when editing items in the toolset. Is much more feats to select.


 


I thank you for your help, but I still have one more question.


 


If I edit our module, while using the 2da file in my override folder, and send it to our server host, will it work ok on his server? I ask because this is not a single player module, it is for our persistant world server.