Quest persistence bugfixing & continuing NESS spawn conversion
Quest persistence bugfixing & continuing NESS spawn conversion. Co-Authored-By: Awetizmo <107700980+Awetizmo@users.noreply.github.com>
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//::
|
||||
//:: qst_outcst_nope.nss
|
||||
//:: Copyright (c) 2022 Project RATDOG
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Refuses & tracks the "Outcasts" quest
|
||||
for the vagrants in the woods
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//::
|
||||
//:: Created By: Jaysyn
|
||||
//:: Created On: 20220618
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "pqj_inc"
|
||||
|
@@ -15,6 +15,8 @@
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "pqj_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
//:: Declare major variables
|
||||
|
@@ -15,6 +15,8 @@
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "pqj_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
//:: Declare major variables
|
||||
|
41
_module/nss/ra_onareaenter.nss
Normal file
41
_module/nss/ra_onareaenter.nss
Normal file
@@ -0,0 +1,41 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//::
|
||||
//:: ra_onareaenter.nss
|
||||
//:: Copyright (c) 2022 Project RATDOG
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Default OnAreaEnter script for NESS spawn
|
||||
functions.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//::
|
||||
//:: Created By: Jaysyn
|
||||
//:: Created On: 20220620
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "spawn_functions"
|
||||
#include "tgdc_explore_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
// Spawn_OnAreaEnter() can take three arguments - the name of the heartbeat
|
||||
// script to execute, the heartbeat duration, and a delay for the first
|
||||
// heartbeat. They default to spawn_sample_hb, 6.0, and 0.0 respectively; as
|
||||
// if it were called like:
|
||||
// Spawn_OnAreaEnter( "spawn_sample_hb", 6.0, 0.0 );
|
||||
|
||||
if ( GetIsAreaAboveGround( OBJECT_SELF ) &&
|
||||
! GetIsAreaNatural( OBJECT_SELF ) )
|
||||
{
|
||||
// Indoors - no delay on the first HB
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 6.0, 0.0 );
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// Outdoors or underground - do a 3 second delay on the first HB
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 6.0, 3.0 );
|
||||
}
|
||||
}
|
@@ -23,12 +23,12 @@ void main()
|
||||
! GetIsAreaNatural( OBJECT_SELF ) )
|
||||
{
|
||||
// Indoors - no delay on the first HB
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 10.0 );
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 6.0, 0.0 );
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// Outdoors or underground - do a 3 second delay on the first HB
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 10.0, 3.0 );
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 6.0, 3.0 );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user