Aller au contenu

Photo

Automatic Feats, hardcoded?


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

#1
DragonTayl

DragonTayl
  • Members
  • 34 messages
I read elsewhere that the automatic feats every 3rd level are hardcoded into the game. 

Let me explain why you can probably hear me chuckling. 

I'm amazed (and pleased, once I learned how to use them) at all the stuff that is done by 2DA "lookup tables" and love the flexibility that lends towards having your own zany ideas put into play. 

So... while I am *on fire* to ask "Then, why is *this* one hard coded?" I'm not sure it would do any of us much good (beyond the aforementioned healthy chuckle).

Instead, realizing that it IS hardcoded that all characters are granted a feat every three levels (would suck if you wanted to eliminate feats in your concept, say if you had another system to replace feats) how far does this hard-coding go? Is it mathmatical, so that if you coded a game with 300 levels, characters would continue to get a feat every third level? Or is it by its own lookup table, so that if you created more levels than were planned for by the developers, at some point the feats would stop coming automatically?

Please tell me it's NOT the internal lookup table, because then raspberries will follow the chuckle. Because if it IS a hardcoded lookup table then I really DO want to know why it isn't a 2DA like everything else.

Anyway, for my purposes it really doesn't matter, I'm mostly interested if I am building my own feat schedule, when the automatic feat at every third level "runs out" if it ever does.

Thanks.

Chuckle.

#2
dunniteowl

dunniteowl
  • Members
  • 1 559 messages
Well hardcoded means it's done in the engine and is not accessible through modding tools included with the toolset or with simple 2da editing. So if there were 300 levels and the code said grant an extra feat every three levels automatically, then yes it would do that no matter what you did. That said, you might be able to disable the feats and prevent it from granting a feat if the feat isn't there -- even if it was supposed to grant it. If you can remove the feats, then even the hardcoded engine couldn't grant the feat. You would most likely have a blank page that wants to grant the user a feat, which might break the game. That's hard to say with certainty.

The level cap is at 30, so it probably does run out. At 30.



dunniteowl

#3
DragonTayl

DragonTayl
  • Members
  • 34 messages
Wow that was a fast reply. No worries. I'll test it and post my findings when I get that far along.

#4
dunniteowl

dunniteowl
  • Members
  • 1 559 messages
I live for the Community! :)



Plus I am not working at this time and have WAAAAY too much time on my hands.



dno

#5
DragonTayl

DragonTayl
  • Members
  • 34 messages
Hee! Well, our good fortune then, to both!



Another related question, in case you or someone else knows - the feat categories, is there a 2DA that enumerates those? I can't find them. I just see categories and I can tell what each category is by sorting feat.2da (they group logically) but I wonder if that is also hard coded? The way the feats are selected when you level? I like the grouping feature, but again was hoping to change some names, perhaps create new categories...

#6
dunniteowl

dunniteowl
  • Members
  • 1 559 messages
That one's out of my baileywick, I'm afraid. Hopefully some smarter person will come by and tell you what you need to know.

dno

#7
DragonTayl

DragonTayl
  • Members
  • 34 messages
Grr. Another question, maybe you know more about this one DNO (bah, about smarter person)!



Obviously I'm doing a lot of messing around with feats.



I have created a new race and given them the QuickMaster feat (258) in the custom RACE_FEAT_ 2da. While it does show up when I create a character of that race, they do not get the second feat from which to choose. This still works for Humans in the same module, but the custom race doesn't get the bonus. Is this also hard-coded in? Has anyone else created a custom race and given them the QuickMaster feat, or found another way to grant bonus feat(s) at first level?

#8
dunniteowl

dunniteowl
  • Members
  • 1 559 messages
Actually I don't know the answer to that one.

Now, because there are so many .2da's and so many little differences to so many of them, it reminds me of Morpheus in the Matrix when he's telling Neo about the rules of the simulation: "Some of them can be bent, some of them can be broken. Now hit me. If you can."

I am pretty sure that Feats are in this category (bent or breakable.) Howsomever, right or wrong, here are a couple places that would be a great benefit for you:

Reserved 2da Ranges; NWN2 Wiki
NWN2 Builders: Scripting Forums

There may also be room for you in IRC (look in the Sticky Topic in these, the General Discussion Forums about the NWN2 Chat for more information) where you can communicate online and directly with some others who can definitely answer a lot of these kinds of questions.

And believe me, there are plenty of much smarter (and dedicated) folks for this sort of stuff than myself, though I am flattered.

dunniteowl

Modifié par dunniteowl, 03 décembre 2010 - 01:45 .