Aller au contenu

Photo

Subrace Related Questions


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

#1
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

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.  



#2
henesua

henesua
  • Members
  • 3 867 messages

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



#3
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 878 messages

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.



#4
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

Thanks guys. :D

 

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.



#5
henesua

henesua
  • Members
  • 3 867 messages

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?



#6
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

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?



#7
henesua

henesua
  • Members
  • 3 867 messages

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.



#8
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

Thank you. :D



#9
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

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



#10
Shadooow

Shadooow
  • Members
  • 4 470 messages

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);



#11
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

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? 



#12
Shadooow

Shadooow
  • Members
  • 4 470 messages

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.



#13
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

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.



#14
Shadooow

Shadooow
  • Members
  • 4 470 messages

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)



#15
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

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.



#16
Shadooow

Shadooow
  • Members
  • 4 470 messages

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.

yes it will work, in this case players dont have to have this 2da in their haks/override, the only drawback is that if you add one of these extra feats on item that is visible to pc and pc can examine it he will see "bonus feat: bad streff" instead of correct name. The only way to fix this is by adding this 2da into your custom haks and force players to download them.



#17
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

Well, these feats are for subraces, so I can put the feats on the PC's creature skin, and they will not see any bad streffs. As long as they get the feats, I do not mind the bad streffs. Now if I could figure out why players sometimes lose their creature skins, then everything will be fine, lol.

 

Thank you Shadooow, I appreciate the help. :wub:



#18
Shadooow

Shadooow
  • Members
  • 4 470 messages

Well, these feats are for subraces, so I can put the feats on the PC's creature skin, and they will not see any bad streffs.

Yes, exactly in this case it will work fine without using custom haks.

 

Now if I could figure out why players sometimes lose their creature skins, then everything will be fine, lol.

If you have ILR or ELC server option turned on, the skin disappears each time player logs in. My latest unofficial patch fixes this issue.



#19
MrZork

MrZork
  • Members
  • 940 messages

Note that putting things on creature skins can add complications when the PC does certain things, like horse riding or polymorphing. In other words, if a subrace is supposed to have +2 charisma and that is implemented by adding Great Charisma II to the creature skin, then the PC may lose that when shifted (even if the shift is not supposed to affect charisma).

 

Of course, it should be easy enough to modify the polymorph script to copy creature skin properties to the polymorphed creature skin. But, that is another complication and (as far as I know) it will still cause spell slot issues.



#20
Sadira of Tyr

Sadira of Tyr
  • Members
  • 172 messages

We do not use ILR or ELC, but have had reports of players losing their subrace properties. It does not happen often, but it does happen. However we do have an item to reapply the properties if they are lost. I have considered using your unofficial patch, and have read the documents, but it only explains how to add the patch as a hak. I have not found out how to install it, so that it is an option for players, and not a requirement.

 

As far as I know, polymorphing removes all ability bonuses from items, so I do not think losing some great feats will really matter. Most of our players avoid polymorphing, as the forms are weak, and having to reset spells from lost slots. We have one player who loves horses, but mostly plays humans anyways. The rest pretty much avoid horses, as the cep horse models can cause lag. 



#21
Proleric

Proleric
  • Members
  • 2 354 messages
Did you find the CEP appearance.2da? If not, open the CEP top hak with nwhak, and export appearance.2da. In notepad, with word wrap off, you'll easily find the appearance (row) number by searching for the description shown in the toolset.

Regarding skins, the 1.69 Horse tutorial in the Lexicon explains how to script skin conservation.

That approach works, even if you don't want to implement the 1.69 horses, which are an improvement on the old CEP ones IMO.

#22
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

Yeah, that tutorial you wrote, Proleric, should have been part of the documentation for the 1.69 patch. It's invaluable to understanding the horse system and creature scaling.