Author Topic: Creature only killable by certain weapon.. +Modifying NPC Spell DC  (Read 244 times)

Legacy_Kingdom_Of_Hearts

  • Full Member
  • ***
  • Posts: 142
  • Karma: +0/-0


               Is there a way to script so a creature can only be killed by a certain weapon? Thanks! Also, can someone tell me how to modify a spell's DC when cast by a NPC to get it into the 50's? Thanks! (Yes, this is designed as an extremely powerful boss!)
               
               

               


                     Modifié par Kingdom_Of_Hearts, 13 juin 2012 - 10:31 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Creature only killable by certain weapon.. +Modifying NPC Spell DC
« Reply #1 on: June 13, 2012, 11:47:51 pm »


               spell DC is calculated from formula 10 + spell level + ability modifier. There is no difference between PC and NPC but NPCs can be given spells via special ability tab. In this case where spell is not cast from class the caster ability is charisma. Simply increase it and it will raise DC.

Special abilities like auras, dragon breaths, cones etc. are mostly calculated from total creature level so the only way (without CC of course) how to raise DC is increase level. A single class can have 60levels but you can add two extra classes on class tab which means max lvl is 180. However this is a bit extreme and there are cap/rollback issues...

Also certain unoffical patch that is by a chance in my signature offers DC, caster level and metamagic override feature using local variable on creature (more info in documentation). Still this works only for spells. Creature abilities like auras doesnt have this feature.
               
               

               
            

Legacy_Kingdom_Of_Hearts

  • Full Member
  • ***
  • Posts: 142
  • Karma: +0/-0
Creature only killable by certain weapon.. +Modifying NPC Spell DC
« Reply #2 on: June 13, 2012, 11:52:31 pm »


               Awesome, thank you very much! I was using INT, explains why it wasn't working.
               
               

               
            

Legacy_Kingdom_Of_Hearts

  • Full Member
  • ***
  • Posts: 142
  • Karma: +0/-0
Creature only killable by certain weapon.. +Modifying NPC Spell DC
« Reply #3 on: June 14, 2012, 02:48:10 pm »


               Any ideas on a creature being only killed by a certain weapon?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Creature only killable by certain weapon.. +Modifying NPC Spell DC
« Reply #4 on: June 14, 2012, 05:54:54 pm »


               

Kingdom_Of_Hearts wrote...

Any ideas on a creature being only killed by a certain weapon?

Well its not so hard to do BUT its a bit nonsense actually. Spellcasters do not use weapon, so what about them?

Also, do you want the creature to be damaged by other weapon or not even that?

The best solution is OnHit unique power with tag based scripting where you perform saving throw vs death. This still leaves the possibility to kill the creature by other weapon or spells, just not so easily.