Author Topic: How to set immunity to devastation critical?  (Read 415 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to set immunity to devastation critical?
« on: August 03, 2014, 04:19:41 am »


               

Is possible to set immunity to devastation critical to a creature hostile and not for other critical types?



               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #1 on: August 03, 2014, 04:26:42 am »


               

It depends on what else you're fine with making the creature immune to.


 


The simplest way is to make the creature Immortal and remove the Immortal flag at low HP.  However, being Immortal makes you immune to Mind Spells and *all* instant death effects.  So if you want creatures to still be vulnerable to those you'll need to remove the Immortality flag in those scripts, apply the effect, and then reapply Immortality if necessary (such as for a stun effect -- if you leave Immortality off they can be Dev Crit).



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #2 on: August 03, 2014, 06:53:00 am »


               

The first method that MM talks and which I invented (you could give a link MM :/ ) is here.


 


Other than that, CPP 1.72 brings a new method using NWNX that softcodes it so you can do more things with it such as replace effect. In 1.72 you can make specific monster immune by setting variable IMMUNITY_DEVAST int 1 on creature. Also you can set a module switch to enforce one devast per creature behavior.


 


Third option is one of the Terra777's new plugins, but I don't remember which one allows that. And there was lately problems with link all down but maybe fixed check nwnx.org.



               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #3 on: August 03, 2014, 07:01:25 am »


               


The first method that MM talks and which I invented (you could give a link MM :/ )




 


I didn't give a link, Shadooow, because you're not the only person to come up with the idea (hell, I didn't even remember you had done anything with it while writing that post and I certainly didn't know it existed on any vault).  At a minimum, I also invented the idea completely independently and I wouldn't be surprised if some others thought of it as well.  I'm not trying to be rude here but please don't think you hold the sole intellectual copyright or something.  I could have very easily linked to some of my work which uses the idea or just copy/pasted my code without referencing anything you've done.



               
               

               
            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #4 on: August 03, 2014, 10:09:13 am »


               

if you didn't want to be rude you could have just said you made a script for that too, linked your stuff, and left it at that. shadooow is a good guy but puts his foot in his own mouth a lot due to language and culture barriers. i do the same, but it's because i'm an ******* and not afraid to tell it how it is.


 


just saying... 



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #5 on: August 03, 2014, 02:15:58 pm »


               


 I'm not trying to be rude here but please don't think you hold the sole intellectual copyright or something.  I could have very easily linked to some of my work which uses the idea or just copy/pasted my code without referencing anything you've done.




Yea I could do that in my patch project as well, instead I gave credits even to peoples whose work I did not used only their idea/knowhow (they simply found sout omething is bugged).


 


Its called professional curtesy, if you didn't know about my work (as you came later into this community) FINE. But if you know someone did something that OP asks for you should mention that even if you don't like that project or the person who did that. But I guess I cannot expect a bit of common decendy from everyone.


 


(now speaking in general)


Yea you all made things that I did years before I even thought of that, I know that and its sometimes clearly obvious from the posts you write, but did you shared it with others? No you did not. That speaks for everything.



               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #6 on: August 03, 2014, 04:08:46 pm »


               Being devils advocate here, but there is a difference between inventing it, and releasing it.


Knowing who invented it at this late stage in the game is likely impossible - turns into a he says she says issue, and let's face it - it's not like there is prize money involved.


I acknowledge you probably are the first person to release that methodology to the public, but I do know that I personally have used that method for my PW to make Boss fights last longer and prevent bosses from being Vorpally or Critically killed before their health reaches X or some precondition is met- for years.

It is possible for complete strangers to arrive at the same solution independently, in this case- this is one of the only vanilla nwn methods of achieving immunity to criticals. So it's not surprising that more people have arrived at it as a solution out of necessity, opposed to coincidence.
               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #7 on: August 03, 2014, 06:01:55 pm »


               

Its called professional curtesy, if you didn't know about my work (as you came later into this community) FINE. But if you know someone did something that OP asks for you should mention that even if you don't like that project or the person who did that. But I guess I cannot expect a bit of common decendy from everyone.


 


Like I said in my first sentence: "hell, I didn't even remember you had done anything with it while writing that post and I certainly didn't know it existed on any vault."


 


My thought process was: "Oh, hey, I created a solution to this problem he might like, I'll post a few notes and depending on his needs help him with the code."  Neither you nor your work even crossed my mind, I certainly wasn't thinking: "Ha!  Shadooow also created this method and also has code involving it made public but I'll ignore him because I hate him!"


 


Which is particularly true given that I don't dislike you in the first place, despite what you evidently think.


 




It is possible for complete strangers to arrive at the same solution independently, in this case- this is one of the only vanilla nwn methods of achieving immunity to criticals. So it's not surprising that more people have arrived at it as a solution out of necessity, opposed to coincidence.




 


Precisely.



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #8 on: August 04, 2014, 02:21:16 am »


               


In 1.72 you can make specific monster immune by setting variable IMMUNITY_DEVAST int 1 on creature. Also you can set a module switch to enforce one devast per creature behavior.




 


That's pretty nice! Just updating my community patch 171 to 172 I'll be able to use IMMUNITY_DEVAST int 1 variable?


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #9 on: August 04, 2014, 02:36:59 am »


               


That's pretty nice! Just updating my community patch 171 to 172 I'll be able to use IMMUNITY_DEVAST int 1 variable?




Yes but note this is dependant on the new nwnx_patch plugin which hasn't been fully tested in PW environment...


               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to set immunity to devastation critical?
« Reply #10 on: August 04, 2014, 06:37:53 am »


               

I downloaded Shadooows D. Immunity code, it works well. I just understand how it works. haha.