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:
50
_module/nss/jw_jump_trig_ok.nss
Normal file
50
_module/nss/jw_jump_trig_ok.nss
Normal file
@@ -0,0 +1,50 @@
|
||||
void main()
|
||||
{
|
||||
object oidUser;
|
||||
object oidDest;
|
||||
|
||||
int nIdx;
|
||||
object oAssociate;
|
||||
object oRender=GetObjectByTag("jw_hulk");
|
||||
|
||||
|
||||
|
||||
oidUser = GetPCSpeaker();
|
||||
oidDest = GetObjectByTag("jw_jump_wp");
|
||||
|
||||
for (nIdx=1;nIdx<=5;nIdx++)
|
||||
|
||||
{
|
||||
oAssociate=GetAssociate(nIdx,oidUser);
|
||||
if (GetIsObjectValid(oAssociate))
|
||||
{
|
||||
AssignCommand(oAssociate, JumpToObject(oidDest,FALSE));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (ReflexSave(oidUser,24,SAVING_THROW_ALL)==0)
|
||||
{
|
||||
SendMessageToPC(oidUser,"You didn't quite make it and fell in the water");
|
||||
FloatingTextStringOnCreature("Splash",oidUser);
|
||||
AssignCommand(oidUser,PlaySound("as_na_splash1"));
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectPoison(POISON_GARGANTUAN_SPIDER_VENOM),oidUser,130.0);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_POISON_S),oidUser);
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
{
|
||||
FloatingTextStringOnCreature("Made it",oidUser);
|
||||
}
|
||||
|
||||
AssignCommand(oidUser, ActionJumpToObject(oidDest,FALSE));
|
||||
|
||||
if (GetIsObjectValid(oRender)&&(!GetIsInCombat(oRender)))
|
||||
|
||||
{
|
||||
AssignCommand(oRender,ClearAllActions());
|
||||
AssignCommand(oRender,ActionMoveToObject(oidUser,TRUE));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user