Jump to content


Photo

Modify saving throws and others by script - BG II + ToB


  • Please log in to reply
3 replies to this topic

#1 Cat'sClaw

Cat'sClaw
  • Member
  • 2 posts

Posted 01 June 2015 - 09:18 AM

Hello.

 

I wanted to know if there's a way to make the next actions by scripts (in the .bcs files), specially for BG II + ToB:

_modify the saving throws of a character in the group.

_add innate abilities to a character in the group.

_change resistance to cold, magic cold, fire, etc. of a character in the group.

 

I'm sorry if it's not the right place to post this question, I didn't know where is the correct place.

 

Bye


Edited by Cat'sClaw, 01 June 2015 - 09:19 AM.


#2 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5155 posts

Posted 01 June 2015 - 09:40 AM

Those actions can be done with spells cast on a character, so the specific answer to the "Is it possible to do x?" is: yeah.
The answer to the "Will it be easy?" is likely to be: HELL NO.


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#3 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 01 June 2015 - 01:09 PM

Those actions can be done with spells cast on a character, so the specific answer to the "Is it possible to do x?" is: yeah.
The answer to the "Will it be easy?" is likely to be: HELL NO.

It is possible and I have done it for my own mod (SandrahNPC) but like the imp says it is not that easy.

 

- you can create your own spell, designte it as innate ability and assign it to your characted in the script with AddSpecialAbility("MyInnateSpellXXX").

- for saving throws or resistance you must create your own spell and cast it on your character by the script. The spell should be with immediate effect and permanent. However, myself I only managed to construct such spells by modifying existing spells with the same characteristics, like taking the code from an item protecting from cold and modifying it to increase resistance against cold with a spell cast on the NPC. I have no blueprint for such spells as each characteristic you want to modify on your character requires a different solution.

Another lesson learned is that there may be side effects and interferences later on if you apply multiple spells on the same character and during gameplay find magical equipment for the character that causes unforeseeable problems - or meet some high level opponents with rare and special spells against your group. In addition you may get problems in installations that have a lot of mods installed that change items or spell characteristics.


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#4 Cat'sClaw

Cat'sClaw
  • Member
  • 2 posts

Posted 03 June 2015 - 05:41 AM

Thanks for your answers.

I'll try to create some spells to see how this changes works, and see if there's problems as Roxanne mentions.

 

Thanks!