Player Resource Consortium


Recent Posts

Pages: 1 [2] 3 4 ... 10
Help / Just a tip
« Latest: by Arbaal on January 12, 2018, 01:35:12 PM »
Hi, i've done my spellhooking script and it works.

It recalls original nwn spells (modified from prc) without problems, and it does what it's been programmed to do.

I've only a problem. The code calls the spells by constant SPELL_XXXX_XXX, by using the switch function and "case by case" script.
Prc spells does not have constants.

How can i call the prc spell scripts? Is there a syntax to recall directly the spell scripts?

Below the first part of code:
Code: [Select]
void main()
object oTarget;
int nSpell=GetSpellId();
int nSpellDC=GetSpellSaveDC();
int nCastLevel=GetCasterLevel(OBJECT_SELF);
object oCaster = OBJECT_SELF;
if (GetCasterLevel(OBJECT_SELF) > 20)
nCastLevel = (GetCasterLevel(OBJECT_SELF) + (GetLevelByXP(OBJECT_SELF)-40));

     switch (nSpell)

//*Arcane Sfera 1

         //* Evoca I
               {int nMetaMagic = GetMetaMagicFeat();
               int nDuration = nCastLevel;

and so by case.

Can you help me to recall the spell scripts in my script? I would like to edit by spellhooking the spells/epic spells effects, without importing, exporting, compiling.
General Discussion / Re: How to remove XP penalty for multiple summons
« Latest: by Half-Virus on January 09, 2018, 12:42:12 PM »
Make a text file in your override folder, name it personal_switch.2da and fill it however you like.
here's mine for example, just change file format to .2da:
Help / Re: Need little help/suggestion - Ita Admin
« Latest: by Arbaal on January 05, 2018, 01:03:04 PM »
Ok, i've done what we said. I've used the compiler with all prc scripts (inc and all the others) in a folder.
It compiles the script but it finds errors.

Is there a pious soul that explains me how to use the spellhooking function that the prc staff has gently included in their scripts?

This is what i know:
1 - this is a part of the code in the x2_inc_spellhook
it seems to say that if you want you can tell it to execute a script that you create instead of an original script:

Code: [Select]
// Execute a user overridden spell script.
int X2RunUserDefinedSpellScript()
    // See x2_inc_switches for details on this code
    string sScript =  GetModuleOverrideSpellscript();
    if (sScript != "")
        if (GetModuleOverrideSpellScriptFinished() == TRUE)
            return FALSE;
    return TRUE;

// Set the user-specific spell script
void PRCSetUserSpecificSpellScript(string sScript)

// Get the user-specific spell script
string PRCGetUserSpecificSpellScript()

2 - part of the code of nw_s0_fireball (fireball original prc script) for example
it says something about spellhook

Code: [Select]
  Spellcast Hook Code
  Added 2003-06-20 by Georg
  If you want to make changes to all spells,
  check x2_inc_spellhook.nss to find out more


    if (!X2PreSpellCastCode())
    // If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell

// End of Spell Cast Hook

3 - the most important: it explains how to use the spellhook function i think
(x2_inc_switches - part of the code about spellhooking)

Code: [Select]
//                          S P E L L S C R I P T S

// Allows the module creator to specify a script that will be run before any spellscript is run
// You can call SetModuleOverrideSpellscript() at the end of the script specified by
// sScriptName. If you call this function this will prevent the original spellscript
// (and all craft item code) from being executed.
// If you do not add this line, the original spellscript and/or crafting code will
// run in addition to your script
void SetModuleOverrideSpellscript(string sScriptName);

Can someone make me an example of how to use that function with prc, without touching the original spell scripts of prc?
I think it's possible but i can't solve by myself
Help / Losing Racial Speed after death (Multiplayer OC)
« Latest: by Rhodes on January 05, 2018, 12:08:37 AM »
As stated in title, after dying during the multiplayer OC, characters will lose their racial speed.  Possibly losing other racial bonuses as well.
I installed the PRC Pack and Server Module via the .exe and ensured everything was patched up properly - most everything has been working fantastic so far.

Re-setting racial speed switch doesn't fix the issue.  Any suggestions?

News, Articles, and Website Management / Monsterology Videos
« Latest: by ThE LoSt BoY on January 03, 2018, 02:18:20 AM »
Highly detailed and similarly recommended:
Help / Re: Need little help/suggestion - Ita Admin
« Latest: by Arbaal on January 02, 2018, 05:53:33 PM »
Thank you xwarren. I'm very sorry for make you waste time! I've searched forums before writing but i've used wrong keywords.

Thanks again for your amazing work and all prc team. Your work is the best add to nwn ever made and me and my players are very grateful to this masterpiece.
I will follow the instructions in the compiler usage post :) :) :)
Help / Re: Need little help/suggestion - Ita Admin
« Latest: by xwarren on January 02, 2018, 03:24:28 PM »
I use nwnnsscomp.exe to compile scripts. You can find it in PRC SVN repo or on the Vault:
PRC Neverwinter Script Compiler v2.0

You can find usage example in this post:

I'm sure you will find more if you search the forum for 'nwnnsscomp'

Good luck!
Help / Need little help/suggestion - Ita Admin
« Latest: by Arbaal on January 02, 2018, 03:01:06 AM »
Good Morning!
Just a suggestion. I'm sure someone of you can know the way to help me.

I use prc from several years on my shard and i've completely translated all prc in Italian, adapting something specific for my world.

No problem with scripts, no problem with classes, no problem with nothing.

I've just a problem that i've tried to solve by myself for months, without finding a solution.
It's not a bug.

I would like to edit some strings of codes, some spell scripts to have them behave slightly different but i can't make it work.

Example: Fireball script; i would like to set the caster level cap to 24 instead of 10 and so on with some other spell scripts.

Now, i know that these scripts are in prcspells.hak and i've exported to edit them.
I can edit the nss but until i can't make a ncs of the script, also re-importing into the hak and using the new hak modified, the fireball will continue to do the same things as before.

The PRC compiler does not work on my windows 7. No compiler for nwn seems to work. It starts for a blink of an eye and then shuts down.
I have not an old machine on which i could make it work the compiler.

The first question: is it right? This is the way to edit that spell scripts or are there other ways?
I would like to touch only spell scripts of original nwn spells and not every spell, just a few; then some epic spells.

1- i open the hak
2- i export the spell script (nss and ncs)
4- i re-import into the hak
5- i use the new hak.

Am i missing something?
Do you have a compiler version that works with windows 7 that i can use to produce an ncs?
Are there other ways to do this?
General Discussion / Re: How to remove XP penalty for multiple summons
« Latest: by RufusDoofus on December 26, 2017, 12:23:42 PM »
Thank you for the response. I think these are the ones that i need to modify:


But the thing is, i can't seem to find them in the PRC options menu.
General Discussion / Re: NWNCX + PRC (spellcasting classes)
« Latest: by malonkey1 on December 26, 2017, 04:36:17 AM »
I, too, am very interested in this. Especially if we can use it for things like the Warlock's Invocations in amore NWN2 Style of using the spellbok.
Pages: 1 [2] 3 4 ... 10