Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
25
_module/nss/fr_iwd_ettinv02.nss
Normal file
25
_module/nss/fr_iwd_ettinv02.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
void SetFacingObject(object oTarget)
|
||||
{
|
||||
vector vFace=GetPosition(oTarget);
|
||||
SetFacingPoint(vFace);
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
object oInv = GetObjectByTag("fr_iwd_ettinking_inv02");
|
||||
object oPC = GetEnteringObject();
|
||||
object oEK = GetObjectByTag("fr_etting_und02");
|
||||
|
||||
if (GetIsPC(oPC)==TRUE && GetLocalInt(oEK,"Appear2")==1)
|
||||
{
|
||||
SetLocalInt(oEK, "Appear2", 2);
|
||||
AssignCommand(oEK, SetFacingObject(oPC));
|
||||
effect eFX = EffectVisualEffect(VFX_IMP_SUPER_HEROISM, FALSE);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eFX, oInv);
|
||||
DelayCommand(2.0, AssignCommand(oEK, SpeakString("We warned you... now shall you pay.", TALKVOLUME_TALK)));
|
||||
//DelayCommand(5.9, SetPlotFlag(oEK, FALSE));
|
||||
DelayCommand(6.0, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eFX, oInv));
|
||||
DestroyObject(oEK, 6.0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user