Skip to content

General Questions

IamKhaunaIamKhauna Member Posts: 40
Hi there, I'm building a extraordinary module that will rock totally everyone by it's awsomness.

But I have some doubt's, nothing complex, I'll post all my questions here:

First, where I define the max number of henchmans in a party?

How can I create a world map?

Wait for answer, cheers, Khauna.

Comments

  • IamKhaunaIamKhauna Member Posts: 40
    Sorry about my lack of humillity, but I got ecxited becouse the module is becoming really good.

    Wait for answers, cheers, khauna.
  • ForSeriousForSerious Member Posts: 543
    My guilty pleasure in NWN is that I have played through all the campaigns over 10 times in my life and I avoid the henchmen as much as I can. All that to say, I don't know how to increase the max number, but I am pretty confident that some one has asked that very question on these forums before.
  • MelkiorMelkior Member Posts: 265
    There's a scripting command, SetMaxHenchmen(n), which will set this value (although there's a practical limit) which can be set in the module load script. You need to remember that when you have more than one henchman or other associate, only the first henchman or associate is actually linked to the PC. The second henchman is actually linked to the first henchman, and the third is linked to the second and so on. This means that the GetMaster() function will return only the "immediate" master, not the PC. I made a function called GetTrueMaster() which returns whoever is at the top of the chain. It uses a loop which goes something like:

    object GetTrueMaster(oPerson)
    {
    while (GetMaster(oPerson)!=oPerson) oPerson=GetMaster(oPerson);
    return oPerson;
    }

    In other words, keep going up the chain until there's no master to find (which is indicated by the GetMaster function returning the same person it was given to find the master of) then return whoever was at the top of the chain, as an object.
Sign In or Register to comment.