Bugfix pass.

Fixed onRespawn & onDying scripts.  Fixed XP awards.  Added temple hospital & library.
This commit is contained in:
Jaysyn904
2021-09-25 20:28:28 -04:00
parent 6195a6cf23
commit 3e3128ed1e
84 changed files with 64542 additions and 169 deletions

View File

@@ -0,0 +1,23 @@
/*
Conversation: persuade check with difficulty class of 25
(Pretty Damn Tricky). However, if PC is very low on hit points,
the difficulty drops to 12 (Rather Simple).
By WWWWolf 2003-10-29
*/
int StartingConditional()
{
object pc = GetPCSpeaker();
float hpratio = ( IntToFloat(GetCurrentHitPoints(pc)) /
IntToFloat(GetMaxHitPoints(pc)) );
int dc = 25; // Normal difficulty class
if(hpratio < 0.15f)
dc = 12; // Low-HP difficulty class
if(GetIsSkillSuccessful(pc, SKILL_PERSUADE, dc))
return TRUE;
return FALSE;
}