Major update

Created top hak for crafting dialog.  Moved Bioware creature abilities to top hak.  Fixed DMFI wand handouts.  Added DMFI language handouts.  Added CCOH 6.  Disabled PC corpse system.  Modified new player startup system.  Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-09-17 13:24:57 -04:00
parent 5d27edafba
commit 903f023230
626 changed files with 57291 additions and 9788 deletions

View File

@@ -26,6 +26,28 @@ void ClearAllFactionMembers(object oMember, object oPlayer)
oClear = GetNextFactionMember(oMember, FALSE);
}
} */
void onDeathApplyPenalty(object oDied)
{
int nXP = GetXP(oDied);
int nPenalty = 50 * GetHitDice(oDied);
int nHD = GetHitDice(oDied);
// * You can not lose a level with this respawning
int nMin = ((nHD * (nHD - 1)) / 2) * 1000;
int nNewXP = nXP - nPenalty;
if (nNewXP < nMin)
nNewXP = nMin;
if (nXP != nNewXP)
SetXP(oDied, nNewXP);
int nGoldToTake = FloatToInt(0.10 * GetGold(oDied));
// * a cap of 10 000gp taken from you
if (nGoldToTake > 10000)
nGoldToTake = 10000;
TakeGoldFromCreature(nGoldToTake, oDied, TRUE);
}
void Raise(object oPlayer)
{
effect eVisual = EffectVisualEffect(VFX_IMP_RESTORATION);
@@ -70,7 +92,7 @@ void main()
xPC = GetLastPlayerDying();
xLoc = GetLocation(xPC);
//Create corpse at player's feet
xCorpse = CreateObject(OBJECT_TYPE_PLACEABLE,"corpse002",xLoc);
/* xCorpse = CreateObject(OBJECT_TYPE_PLACEABLE,"corpse002",xLoc);
//Drop equipment on corpse
for (xCount = 1; xCount < 15; xCount++)
{
@@ -98,7 +120,8 @@ void main()
}
//Now drop half of player's gold.
xGold = (GetGold(xPC)/2);
AssignCommand(xItem,TakeGoldFromCreature(xGold,xPC,FALSE));
AssignCommand(xItem,TakeGoldFromCreature(xGold,xPC,FALSE)); */
onDeathApplyPenalty(xPC);
//Now let's pop the death GUI
DelayCommand(2.5, PopUpDeathGUIPanel(xPC,TRUE,TRUE));