Remade Dungeon Level One: Central
Remade Dungeon Level One: Central. Added Didiamus' creature overrides. Full compile.
This commit is contained in:
@@ -13,9 +13,11 @@
|
||||
void b_FollowMaster(object oMaster);
|
||||
void main()
|
||||
{
|
||||
object oClicker = GetClickingObject();
|
||||
object oSelf = OBJECT_SELF;
|
||||
object oDest = GetTransitionTarget(OBJECT_SELF);
|
||||
object oClicker = GetClickingObject();
|
||||
object oSelf = OBJECT_SELF;
|
||||
object oDest = GetTransitionTarget(OBJECT_SELF);
|
||||
|
||||
string sResRef = GetResRef(oClicker);
|
||||
|
||||
if(oDest == OBJECT_INVALID)
|
||||
{
|
||||
@@ -31,6 +33,15 @@ if(GetLocalInt(oClicker,"DoorOnce") == FALSE)
|
||||
SetLocalInt(oClicker,"DoorOnce",TRUE);
|
||||
DelayCommand(1.1,DeleteLocalInt(oClicker,"DoorOnce"));
|
||||
|
||||
|
||||
//:: Prevents the Dung Monster from perma-chasing PC's
|
||||
int nRandom = d4(1);
|
||||
|
||||
if (sResRef == "ra_dungmonster" && nRandom > 2)
|
||||
{
|
||||
DestroyObject(oClicker);
|
||||
}
|
||||
|
||||
if(GetIsPC(oClicker)==TRUE)
|
||||
{
|
||||
SetLocalInt(oClicker,"PC_USED_DOOR",TRUE);
|
||||
|
Reference in New Issue
Block a user