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

@@ -1,15 +1,14 @@
#include "nw_i0_plot"
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.1
For download info, please visit:
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
//Goes OnPlayerRespawn of the module properties
void main()
{
object oPC = GetLastRespawnButtonPresser();
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("townport");
lTarget = GetLocation(oTarget);
if (!GetIsPC(oPC)) return;
@@ -19,11 +18,6 @@ ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectHeal(GetMaxHitPoints(oPC)), oPC)
RemoveEffects(oPC);
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("townport");
lTarget = GetLocation(oTarget);
//only do the jump if the location is valid.
//though not flawless, we just check if it is in a valid area.
@@ -35,9 +29,7 @@ if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
DelayCommand(3.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
oTarget = oPC;
DelayCommand(0.1, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
//Visual effects can't be applied to waypoints, so if it is a WP
//apply to the WP's location instead
@@ -45,7 +37,7 @@ oTarget = oPC;
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), GetLocation(oTarget));
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), oPC);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), GetLocation(oPC));
}