Bugfix pass.
Fixed onRespawn & onDying scripts. Fixed XP awards. Added temple hospital & library.
This commit is contained in:
23
_module/nss/merc_tmpl_check.nss
Normal file
23
_module/nss/merc_tmpl_check.nss
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user