Tweaked some undead

Tweaked some undead.
Added some map pins.
Full compile.
This commit is contained in:
Jaysyn904
2025-05-05 21:05:20 -04:00
parent 160e854d09
commit fbe69c466d
20 changed files with 333 additions and 39 deletions

View File

@@ -1,13 +1,16 @@
void main()
{
object oArea = GetArea(OBJECT_SELF);
// place here the % chance of rest being interruped excample here 33% chance of rest being interuped
SetLocalInt(oArea, "nMonChance",30);
// place here the blueprint refrenfrence tag of the creature you wish to attack them
// or place the word CUSTOM which will send a 201 event to the area starting your won script
// here it is a goblin
SetLocalString(oArea, "sMonster","nw_skelwarr01");
}
// If the entering creature is an undead and not a player
if (GetRacialType(OBJECT_SELF) == RACIAL_TYPE_UNDEAD && !GetIsPC(OBJECT_SELF))
{
effect eUltravision = EffectUltravision();
eUltravision = SupernaturalEffect(eUltravision);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eUltravision, OBJECT_SELF);
}
// Set area parameters
SetLocalInt(oArea, "nMonChance", 30); // 30% chance of rest being interrupted
SetLocalString(oArea, "sMonster", "nw_skelwarr01"); // Monster blueprint or "CUSTOM"
}