How do I use Slynderdales turn Undead script in the OCs
#1
Posté 13 novembre 2013 - 09:20
How do I go about using Slynderdale's impriving turning/rebuke script with the origimal campaigns.
Link to code: nwvault.ign.com/View.php
I find 3 different turn undead scripts respectively in script, scripts_x1 and scripts_x2.
Would I simply just copy paste the script into a .nss file then name it NW_S2_TurnDead and compile it and put it in override for it to work?
thanks for the help.
#2
Posté 14 novembre 2013 - 02:44
also - the script would hace to be recompiled before the game could use it - the game needs the .ncs version to run - not the nss - that is just for builders...
Modifié par Morbane, 14 novembre 2013 - 02:46 .
#3
Posté 14 novembre 2013 - 03:16
#4
Posté 14 novembre 2013 - 07:48
if you just copy paste everything in the little window into a nss with the name he gave it at the very top, in the toolset and compile it - copy both the nss and the ncs into your override -you should get what the script is meant to do - provided it works like it says -
to get it into the toolset - in case you done know:
open toolset
file/new/module
script window - r-click - new script (script opens then)
paste your code
hit compile
file/save as directory/ name of your choice
close toolset
open the module folder copy the nss and ncs
paste into the override
test
enjoy
#5
Posté 14 novembre 2013 - 07:49
maybe the date of the most recent NWN2 turn script is the one to change - there are peeps who know this i just dont usually mess with stock scripts unless i am trying to learn something - rather than rewriting them...
Modifié par Morbane, 14 novembre 2013 - 07:57 .
#6
Posté 14 novembre 2013 - 07:59
Modifié par Morbane, 14 novembre 2013 - 08:00 .
#7
Posté 14 novembre 2013 - 08:53
the name of the Turn Undead spellscript is nw_s2_turndead
one of those in Override bakes the cake. sapient, thanks for pointing to Slynderdale's version; find mine at the Vault but it's much less complicated. When i get back to NwN2 (.. xcom:ufo ..) I intend to take a closer look at merging them, but for now it might help you understand what's going on. The feat in Feat.2da calls the spellscript from Spells.2da ... which fires off the effects via 'nw_s2_turndead'
Ps. the scripts/x1/x2 are as Morbane implies just expansion editions. Typically start with the x2=SoZ script(s)
#8
Posté 14 novembre 2013 - 04:13
xcom haha another blast from the past
thanks for the help Morbane I appreciate it.
#9
Posté 17 novembre 2013 - 04:44
I wanted to tweak some things in there but I can not find the includes cmi_*
Without them I can not compile. Can I remove the includes?
#10
Posté 17 novembre 2013 - 05:03
107: int nMoRLevel = GetLevelByClass(CLASS_MASTER_RADIANCE);
109: int nShadStalkerLevel = GetLevelByClass(CLASS_SHADOWBANE_STALKER);
110: int nCotSFLevel = GetLevelByClass(CLASS_CHAMP_SILVER_FLAME);
111: int nEldDiscLevel = GetLevelByClass(CLASS_ELDRITCH_DISCIPLE);
also
137 - 141, 149 - 153, 155 - 159, 161 - 165
and ofc the two cmi_* #includes at the top.
Those handle classes from Kaedrin's PrC pack -- hm, i notice that the AlternateTurn rules were already removed, ( heheh
#11
Posté 17 novembre 2013 - 05:27
I removed the lines as you posted and I get an error bad variable name
x0_i0_equip.nss(63)
Can i just use the 1.40 includes and leave the code as is?
#12
Posté 17 novembre 2013 - 05:48
But you still might have to figure out what's going on with 'x0_i0_equip'
#13
Posté 17 novembre 2013 - 06:07
so based on what I commented the only thing your power turn code was referencing was the turn undead levels for those 4 classes correct?
thanks for the help
#14
Posté 17 novembre 2013 - 06:36
it's sort of a blast from the past for me
#15
Posté 17 novembre 2013 - 08:22
I am finding MoTB way better than the OC because of the depth of the companions and the story in general.
Modifié par sapientCrow, 17 novembre 2013 - 08:23 .
#16
Posté 19 novembre 2013 - 04:46
I have a Doomguide 10, Cleric 6, Paladin 10 with the sun domain and improved turning and a 36 cha
my max turn with that character is 26
However my Dove Cleric level 23 with no domain or improved turning but with a lore 24 and 24 cha her max gets up to 28
I am pretty much lost on when the different bonuses get calculated?
I figured with improved and the high cha and the sun domain I would easily be out turning the cleric who has less than half the cha modifier and no domain bonus no improved turning and just has the lore bonus.
#17
Posté 19 novembre 2013 - 06:57
other things to note: the Paladin levels take a -3 level hit; Kaelyn's lore gives +2; and you'll find DC and damage of the Doomguide are better.
/hth ( i really should rewrite those varnames )
#18
Posté 19 novembre 2013 - 08:31
it should be replaced with:
nTurnLevel += (nTurnCheck + 2) / 3 - 6;
(including the "nTurnLevel -= 2" at the bottom)
if you get the drift, ints always round down
#19
Posté 19 novembre 2013 - 03:30
After sleeping on it I realized that my issue was simply the table and i was over thinking it.
That formula above for nTurnLevel you do instead of Cleric's Level +- as per the table right?
Then the subtraction of 2?
I agree the table is outdated especially for epic level characters and prestige classes.
The other thing I can not seem to understand is that my lowest roll with the Doom, Pal, Cleric is 1+13+1-2 unless I am confused again. Out of my 28 Turns I roll I rarely see a maxHD below 26 meaning it rarely rolls below 22.for the check. Unless again I am confused I should be seeing a range from 23 - 26 on my maxHD. Am I missing something else as far as bonuses given to a turn check roll? It seems like bumping Charisma anymore is pointless as the rolls are not spitting out anywhere near the lowest values.
#20
Posté 19 novembre 2013 - 04:34
nClassLevel, basically the addition of relevant character classes, determines damage and ability to outright destroy undead. Gets a bonus from Improved Turning.
nTurnLevel, follows nClassLevel for a while, then diverges because of Lore and the nTurnCheck table. Determines the maxLevel of an undead that can be affected. Gets a bonus from Improved Turning and from Lore/10.
nTurnCheck, a sort of weight or bias that affects nTurnLevel, based on d20 - 2, plus the Charisma modifier as well as Sun Domain.
nTurnHD, this is the maximum total levels of undead that can be affected, an algorithm with nTurnLevel as a parameter. Further increased by Sun Domain (which is a bit redundant), as well as Charisma modifier and nTurnLevel (which is a bit circular). Empower Turning adds in here.
nDC, is nTurnLevel + Charisma modifier + 10.
nDamage, d4(nClassLevel - 2). no benefit from Lore, Sun Domain, or anything else (This is purposely kept low because the stock Turn Undead doesn't even do damage.) Divine damage(save for 1/2); later in the script this becomes d3(nClassLevel) for Magical damage(no save).
nHDCount, how many hitdie of undead have been affected so far, a running tally as the spell executes.
bValid, a flag that marks a hostile in the AoE as affected by Turn Undead. Types other than undead can be affected, like constructs.
Now let's plug in some numbers.
.. I have a Doomguide 10, Cleric 6, Paladin 10 with the sun domain and improved turning and a 36 cha
my max turn with that character is 26
nClassLevel = 24
nTurnLevel = 24 + turnCheck_modifier
nTurnCheck = d20 - 2 = -1 to 18
w/ Sun = 0 to 24
+Cha_mod = 13 to 37
turnCheck_modifier = 1 to 4 // <- this is the cap that shouldn't be here
nTurnLevel - 2 = 23 to 26
etc.
.. However my Dove Cleric level 23 with no domain or improved turning but with a lore 24 and 24 cha her max gets up to 28
nClassLevel = 23
nTurnLevel + Lore = 25 + turnCheck_modifier
nTurnCheck = -1 to 18
+Cha_mod = 6 to 25
turnCheck_modifier = -2 to 4
nTurnLevel - 2 = 21 to 27
disclaimer: Those are rough results and i often make mistakes on calc's like this.
looks right. But that's merely the turnCheck, which in this whack system is merely another modifier for turnLevel, the latter is what actually prints to screen.sapientCrow wrote...
the Doomguide's max roll for a check can be d20+13+d6-2 using your power turn or is that incorrect.
yes. (do the math and they ought compute identically) ( but without the cap )After sleeping on it I realized that my issue was simply the table and i was over thinking it.
That formula above for nTurnLevel you do instead of Cleric's Level +- as per the table right?
Then the subtraction of 2?
I agree the table is outdated especially for epic level characters and prestige classes.
The other thing I can not seem to understand is that my lowest roll with the Doom, Pal, Cleric is 1+13+1-2 unless I am confused again. Out of my 28 Turns I roll I rarely see a maxHD below 26 meaning it rarely rolls below 22.for the check. Unless again I am confused I should be seeing a range from 23 - 26 on my maxHD. Am I missing something else as far as bonuses given to a turn check roll? It seems like bumping Charisma anymore is pointless as the rolls are not spitting out anywhere near the lowest values.
nTurnLevel is the maximum HD of a single creature affected.
nTurnHD is the maximum total HD of all creatures affected.
just clarifying that. Bumping Charisma without changing the table is partly pointless, although it should still increase your nTurnHD (total levels affected)
[edit]fixed up some math :\\
Modifié par kevL, 19 novembre 2013 - 06:09 .
#21
Posté 19 novembre 2013 - 04:53
Out of my 28 Turns I roll I rarely see a maxHD below 26 meaning it rarely rolls below 22.for the check. Unless again I am confused I should be seeing a range from 23 - 26 on my maxHD
you should be getting 23 to 26 with the current table....
Modifié par kevL, 19 novembre 2013 - 04:59 .
#22
Posté 19 novembre 2013 - 06:36
so there is no additional weight when rolling with a high charisma for the turn check?
I just find the fact that I roll the maxHD more than half the time strange. I guess somehow the d20 and d6 together make for an even greater chance in favor of rolling the max or should I say rolling a 22 or greater.
I think I will just add another 1 or 2 returns to the table above 22
#23
Posté 19 novembre 2013 - 07:36
it doesn't look like it. It looks like Charisma affects nTurnLevel only through the turnCheck table.
>I just find the fact that I roll the maxHD more than half the time strange. I guess somehow the d20 and d6 together make for an even greater chance in favor of rolling the max or should I say rolling a 22 or greater.
It shouldn't; it should be simply d6 and d20. Note though that if you're doing tests by reloading from the same save, that the RNG won't be random, but seeded to produce the same result each time. There also could be a bug somewhere but i didn't notice it
#24
Posté 19 novembre 2013 - 09:23
They are only useful to those with very high charisma though.
Strangely after adding 2 additional to the table my rolls vary quite a lot more.
I add a +4 from 22 to 28 and a +5 from 29 to 38 with a 6 if the roll is 39 or higher.
I have poured every single extra stat point into my cha and it was very disappointing that it really only added more turns and increased the amount to turn. neither of which are really necessary. I have yet to see more than 40 undead at once and I have yet to use my turn over 15 times without resting.
#25
Posté 20 novembre 2013 - 04:15
cool





Retour en haut






