- igor doesn't give boxes if you choose to explore a bit, but he takes the contract anyway [quest-breaking] *Fixed. Moved some dialog around so you couldn't skip out on taking the quest after you gave up the letter. - key 'Pilgrims Cave Key' it_pilgrimscavek to plot-locked door isn't provided anywhere [quest-breaking] *Not a bug. Key drops from the Elder Goblin Shaman in Pilgrim's Cave Full compile. Updated release archive. - can't get farmer bouillon's quest if already offered to buy an ox [quest-breaking] *Couldn't replicate. Nothing in the dialog is locked regarding this. - jerusalem watch captain doesn't recognise letter to ogre mage [quest-breaking] *Fixed. Quest item tag was mispelled. - plot key 'amulet of thievery' [amuletofthievery] to plot-locked door never given anywhere *Not fixed. This may be for an incomplete area or quest. No NPC named "Fremmy South" exists in the module, nor is the name mentioned in dialogs. - key 'Lomendel's Front Door Key' [it_LomFrontKey] to plot-locked door never given anywhere. *Not fixed. This appears to be a DM or system area. No NPC named Lomendel exists & the only mention of them in the dialogs is by the Efreeti merchant in the area. - key it_RachelsRoomKey [rachelskey] to plot-locked door never given anywhere *Not fixed. This may be for an incomplete area or quest. No NPC named "Rachel" exists in the module, nor is the name mentioned in dialogs. There is nothing of note in the room. - east tower key given but no doors on any east towers anywhere *Not fixed. There is no "East Tower Key" in the item palette at all. Balkan East Tower doesn't require a key. - transitions within areas don't jump henchmen with pc *Fixed. Changed the triggers to use scripted transitions that bring all associates with the PC. - rd to bethlehem - broken trans [gate to nowhere] *Not fixed. Not an actual transition, There is no "Convent" in the area list. Gate description now tells you it's barred. - faction bugs with guards at pilgrims' rest *Maybe fixed. I added a "faction zoo" and set the merchant faction to neutral to all of the other factions. - faction bugs with watchmen in jerusalem *See above - dwarf captives in svirfneblin lair - invalid exit waypoint *Fixed. Added missing waypoint. - elvish grove quest journal doesn't close *Couldn't replicate. Journal entry cleared normally upon completion of the quest. - dwarven mine quest journal doesn't close *Fixed. Final journal entry wasn't set to close the quest. - idun's apple quest journal doesn't close *Fixed. Final journal entry wasn't set to close the quest. - implementation of climbing rope, while well-intentioned, doesn't work correctly *Couldn't replicate. Worked fine for me. https://i.imgur.com/45UC3xS.jpeg - doors close automatically without anyone to close them *Not a bug, desired behaivior. - henchmen don't level up *Fixed - when henchmen are dismissed, they don't just go back to where they were; they're destroyed and respawned *Fixed
215 lines
4.6 KiB
Plaintext
215 lines
4.6 KiB
Plaintext
/*69_leadership
|
|
Leadership Library Functions
|
|
Created by: 69MEH69
|
|
Created on: Sep2004
|
|
*/
|
|
//void main(){}
|
|
|
|
//Level of PC when Leadership begins
|
|
const int LEADERSHIP_LEVEL = 1;
|
|
|
|
//Returns Loyalty modifier
|
|
int GetHenchLoyalty(object oHench, object oPC);
|
|
//Returns TRUE if PC has Leadership (must be level 6 or higher)
|
|
int GetHasLeadership(object oPC);
|
|
//Returns Leadership Score
|
|
int GetLeadershipScore(object oPC);
|
|
//Sets maximum number of henchmen based on Leadership
|
|
void SetMaxHenchmen69(object oPC);
|
|
//Returns maximum number of henchmen based on Leadership
|
|
int GetMaxHenchmen69(object oPC);
|
|
|
|
int GetHenchLoyalty(object oHench, object oPC)
|
|
{
|
|
int nCharisma = GetAbilityModifier(ABILITY_CHARISMA, oPC);
|
|
//Initial roll + charisma
|
|
int nLoyalty = d6(3) + nCharisma;
|
|
string sLoyalty;
|
|
//Test
|
|
//sLoyalty = IntToString(nLoyalty);
|
|
//SendMessageToPC(oPC, "nLoyalty = " + sLoyalty);
|
|
|
|
int nHenchAlign = GetAlignmentGoodEvil(oHench);
|
|
int nPCAlign = GetAlignmentGoodEvil(oPC);
|
|
int nHenchDeath = GetLocalInt(oPC, "Hench_Death");
|
|
//Adjustment for alignments
|
|
if(nHenchAlign == nPCAlign)
|
|
{
|
|
++nLoyalty;
|
|
}
|
|
else
|
|
{
|
|
--nLoyalty;
|
|
}
|
|
//Test
|
|
//sLoyalty = IntToString(nLoyalty);
|
|
//SendMessageToPC(oPC, "nLoyalty - Alignment = " + sLoyalty);
|
|
|
|
//Adjustment for number of dead henchmen
|
|
nLoyalty = nLoyalty - nHenchDeath;
|
|
//Test
|
|
sLoyalty = IntToString(nLoyalty);
|
|
//SendMessageToPC(oPC, "nLoyalty - nHenchDeath = " + sLoyalty);
|
|
SendMessageToPC(oPC, "Loyalty score = " + sLoyalty);
|
|
return nLoyalty;
|
|
}
|
|
|
|
int GetHasLeadership(object oPC)
|
|
{
|
|
int nLeadership = GetHitDice(oPC);
|
|
if(nLeadership >= LEADERSHIP_LEVEL)
|
|
{
|
|
//SendMessageToPC(oPC, "Leadership is True"); //Test
|
|
return TRUE;
|
|
}
|
|
else
|
|
{
|
|
//SendMessageToPC(oPC, "Leadership is False"); //Test
|
|
return FALSE;
|
|
}
|
|
}
|
|
|
|
int GetLeadershipScore(object oPC)
|
|
{
|
|
int nPCLevel = GetHitDice(oPC);
|
|
int nCharisma = GetAbilityModifier(ABILITY_CHARISMA, oPC);
|
|
int nPersuade = GetSkillRank(SKILL_PERSUADE, oPC);
|
|
int nLeadershipScore = nPCLevel + nCharisma;
|
|
//Test
|
|
//string sCharisma = IntToString(nCharisma);
|
|
//SendMessageToPC(oPC, "Charisma score = " + sCharisma);
|
|
//string sPersuade = IntToString(nPersuade);
|
|
//SendMessageToPC(oPC, "Persuade score = " + sPersuade);
|
|
string sLeadershipScore = IntToString(nLeadershipScore);
|
|
SendMessageToPC(oPC, "Leadership score = " + sLeadershipScore);
|
|
//End Test*/
|
|
return nLeadershipScore;
|
|
}
|
|
|
|
void SetMaxHenchmen69(object oPC)
|
|
{
|
|
int nLeadershipScore = GetLeadershipScore(oPC);
|
|
|
|
//Primary Code
|
|
if(GetHasLeadership(oPC) == FALSE)
|
|
{
|
|
SetLocalInt(oPC, "MaxHenchmen", 0);
|
|
}
|
|
else if(nLeadershipScore >= 25)
|
|
{
|
|
SetLocalInt(oPC, "MaxHenchmen", 10);
|
|
}
|
|
else if(nLeadershipScore >= 20)
|
|
{
|
|
SetLocalInt(oPC, "MaxHenchmen", 5);
|
|
}
|
|
else if(nLeadershipScore >= 15)
|
|
{
|
|
SetLocalInt(oPC, "MaxHenchmen", 4);
|
|
}
|
|
else if(nLeadershipScore >= 10)
|
|
{
|
|
SetLocalInt(oPC, "MaxHenchmen", 3);
|
|
}
|
|
else if(nLeadershipScore >= 8)
|
|
{
|
|
SetLocalInt(oPC, "MaxHenchmen", 2);
|
|
}
|
|
else if(nLeadershipScore >= 2)
|
|
{
|
|
SetLocalInt(oPC, "MaxHenchmen", 1);
|
|
}
|
|
else
|
|
{
|
|
SetLocalInt(oPC, "MaxHenchmen", 0);
|
|
}
|
|
//End Primary Code
|
|
|
|
//Secondary Code
|
|
//Uncomment following code to use this form
|
|
//Comment out the Primary Code
|
|
/*
|
|
if(GetHasLeadership(oPC) == FALSE)
|
|
{
|
|
SetLocalInt(oPC, "MaxHenchmen", 0);
|
|
return;
|
|
}
|
|
switch(nLeadershipScore)
|
|
{
|
|
case 0: case -1: case -2: case -3:
|
|
SetLocalInt(oPC, "MaxHenchmen", 0);
|
|
break;
|
|
|
|
case 1:
|
|
SetLocalInt(oPC, "MaxHenchmen", 1);
|
|
break;
|
|
|
|
case 2:
|
|
SetLocalInt(oPC, "MaxHenchmen", 1);
|
|
break;
|
|
|
|
case 3:
|
|
SetLocalInt(oPC, "MaxHenchmen", 1);
|
|
break;
|
|
|
|
case 4:
|
|
SetLocalInt(oPC, "MaxHenchmen", 2);
|
|
break;
|
|
|
|
case 5:
|
|
SetLocalInt(oPC, "MaxHenchmen", 2);
|
|
break;
|
|
|
|
case 6:
|
|
SetLocalInt(oPC, "MaxHenchmen", 2);
|
|
break;
|
|
|
|
case 7:
|
|
SetLocalInt(oPC, "MaxHenchmen", 3);
|
|
break;
|
|
|
|
case 8:
|
|
SetLocalInt(oPC, "MaxHenchmen", 3);
|
|
break;
|
|
|
|
case 9:
|
|
SetLocalInt(oPC, "MaxHenchmen", 3);
|
|
break;
|
|
|
|
case 10:
|
|
SetLocalInt(oPC, "MaxHenchmen", 4);
|
|
break;
|
|
|
|
case 11:
|
|
SetLocalInt(oPC, "MaxHenchmen", 4);
|
|
break;
|
|
|
|
case 12:
|
|
SetLocalInt(oPC, "MaxHenchmen", 4);
|
|
break;
|
|
|
|
case 13: case 14: case 15:
|
|
SetLocalInt(oPC, "MaxHenchmen", 5);
|
|
break;
|
|
|
|
case 16: case 17: case 18:
|
|
SetLocalInt(oPC, "MaxHenchmen", 6);
|
|
break;
|
|
|
|
default:
|
|
SetLocalInt(oPC, "MaxHenchmen", 7);
|
|
break;
|
|
}*/
|
|
//End Secondary Code
|
|
|
|
}
|
|
|
|
int GetMaxHenchmen69(object oPC)
|
|
{
|
|
int nMaxHenchmen = GetLocalInt(oPC, "MaxHenchmen");
|
|
//Test
|
|
string sMaxHenchmen = IntToString(nMaxHenchmen);
|
|
SendMessageToPC(oPC, "Maximum allowable henchmen = " + sMaxHenchmen);
|
|
return nMaxHenchmen;
|
|
}
|