generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
70
_module/nss/claygolem.nss
Normal file
70
_module/nss/claygolem.nss
Normal file
@@ -0,0 +1,70 @@
|
||||
void main()
|
||||
{
|
||||
{
|
||||
object oTarget = GetItemActivatedTarget();
|
||||
location lTarget = GetItemActivatedTargetLocation();
|
||||
object oPC = GetItemActivator();
|
||||
effect Vfx1 = EffectVisualEffect(VFX_IMP_DUST_EXPLOSION);
|
||||
effect Vfx2 = EffectVisualEffect(VFX_COM_CHUNK_STONE_MEDIUM);
|
||||
effect Vfx3 = EffectVisualEffect(VFX_FNF_ELECTRIC_EXPLOSION);
|
||||
effect Vfx4 = EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_FIRE);
|
||||
object oItem = GetItemPossessedBy(oPC, "Clay");
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (GetItemPossessedBy(oPC, "Clay")!= OBJECT_INVALID)
|
||||
{
|
||||
if (GetIsObjectValid(oItem))
|
||||
DestroyObject(oItem);
|
||||
{
|
||||
//Create Correct Clay Golem Depending on level of character
|
||||
if (GetHitDice(oPC) <= 4)
|
||||
//Make Clay Golem A Henchman
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "claygolem", lTarget);
|
||||
AddHenchman(oPC, oSpawn);
|
||||
}
|
||||
else if (GetHitDice(oPC) <= 5)
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "claygolemlvl10", lTarget);
|
||||
AddHenchman(oPC, oSpawn);
|
||||
}
|
||||
else if (GetHitDice(oPC) <= 10)
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "claygolemlvl15", lTarget);
|
||||
AddHenchman(oPC, oSpawn);
|
||||
}
|
||||
else if (GetHitDice(oPC) <= 15)
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "claygolemlvl20", lTarget);
|
||||
AddHenchman(oPC, oSpawn);
|
||||
}
|
||||
else if (GetHitDice(oPC) <= 20)
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "claygolemlvl25", lTarget);
|
||||
AddHenchman(oPC, oSpawn);
|
||||
}
|
||||
else if (GetHitDice(oPC) <= 25)
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "claygolemlvl30", lTarget);
|
||||
AddHenchman(oPC, oSpawn);
|
||||
}
|
||||
else if (GetHitDice(oPC) <= 30)
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "claygolemlvl35", lTarget);
|
||||
AddHenchman(oPC, oSpawn);
|
||||
}
|
||||
else if (GetHitDice(oPC) <= 35)
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "claygolemlvl40", lTarget);
|
||||
AddHenchman(oPC, oSpawn);
|
||||
}
|
||||
else if (GetHitDice(oPC) <= 40)
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "claygolemlvl45", lTarget);
|
||||
AddHenchman(oPC, oSpawn);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user