Scriptname: Clone monsters

What it does: Will make a monster that respawns twice and can only be killed with a specific weapon

how to: First create a new (custom) creature (I made a giant spider) Edit the "on death" script an add my script to the existing code. Now choose "save as" and give new script a name you like. give the new creature the tag "clonespider" and save it.

If you kill your new creature it will die and two copies will respawn on the place where it died. So no matter how strong you are, it is impossible to win this battle unless you use the right weapon.

Create a sword and give it the tag "Spidersblade"
If you use this sword the creature will just die and not clone.

You can have some real fun with these clone creatures




object oPC = GetFirstPC();
object oSword_used = GetLastWeaponUsed(oPC);
object oSword = GetObjectByTag("Spidersblade");
if (!(oSword_used == oSword))
{
location lPlace_died = GetLocation (OBJECT_SELF);
CreateObject(OBJECT_TYPE_CREATURE, "clonespider", lPlace_died, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "clonespider", lPlace_died, FALSE);
}