Added Mine & Caverns raise & lower functionality

Added Mine & Caverns raise & lower functionality.  Revamped Level 1 events to match PnP.  Updated Level 1: Core.  Added new Footcatcher trap type. Added Underwater heartbeat to Glop Lake Underwater.  Full compile.
This commit is contained in:
Jaysyn904
2023-09-16 09:04:37 -04:00
parent 6b9ab12c25
commit 84d583b489
183 changed files with 62513 additions and 10133 deletions

View File

@@ -0,0 +1,51 @@
void main()
{
//:: Get the placeable object that triggers the script.
object oPlaceable = OBJECT_SELF;
string sTexture;
//:: Check if a custom local variable has been set to indicate that the script has run.
int bHasRun = GetLocalInt(oPlaceable, "HasRun");
if (!bHasRun)
{
switch (d4(1))
{
case 1:
{
sTexture = "tdm01_rock01";
break;
}
case 2:
{
sTexture = "tdm01_rock02";
break;
}
case 3:
{
sTexture = "tdm01_rock03";
break;
}
case 4:
{
sTexture = "tdm01_rock04";
break;
}
}
ReplaceObjectTexture(oPlaceable, "tx_rough_006g", sTexture);
//:: Set the local variable to indicate that the script has run.
SetLocalInt(oPlaceable, "HasRun", 1);
//:: Removed HB script from event to save resources
SetEventScript(oPlaceable, EVENT_SCRIPT_PLACEABLE_ON_HEARTBEAT, "");
}
}