Jump to content


Photo

Help a kid out with some innate abilities


  • Please log in to reply
No replies to this topic

#1 Pop

Pop
  • Member
  • 11 posts

Posted 26 June 2011 - 04:11 PM

Hello SHS forums ,

I'm Pop. I am fairly new to modding in general and to BG2 modding in particular, and I've made good use of the various beginner's tutorials around the internet, such that I am well into my first CNPC mod. However there are some gaps in my knowledge, seeing as how I'm learning this coding thing ala carte. I was hoping some of you more experienced folks could help me out with that!

I'm not looking to do anything particularly special or spectacular. I want to distinguish my NPC just a bit by giving him (1st or 2nd level spell) special abilities that he would gain at certain levels. My google-fu is not strong enough to find specific instructions on how to do this, even though people have said on various forums that it is indeed possible. I know how to add straight-up innate abilities via DLTCEP but those would always be there and so they wouldn't suit my purposes. My dude's a monk so I can't make a special kit for him, since that class is hardcoded. So I have to run a script that will add it automatically at a certain level. If someone could elucidate just how one does this in code (I assume it's an IF [level] THEN [addability] coding thing!) I would be most appreciative!

One more thing - is there a common-sense guide out there for different conditions and triggers one can use in .d files? Wouldn't really do me much good to have abilities that kick in if my guy didn't pipe up and announce that he had them.

I'm sure I'll have more questions as I trudge on into the wilderness, but right now that's all I really need. Thanks in advance!

Edited by Pop, 26 June 2011 - 04:13 PM.