[nwscript]
void main()
{
object oItem = GetItemActivated();
object oActivator = GetItemActivator();
location lTarget = GetItemActivatedTargetLocation();
if (GetTag(oItem) == "wanddecieve")
{
object decoy = CreateObject( OBJECT_TYPE_CREATURE , "apparatio" , lTarget);
// some special fx to go with it
ApplyEffectAtLocation( DURATION_TYPE_INSTANT , EffectVisualEffect( VFX_FNF_SUMMON_MONSTER_1 ) , lTarget);
// destroy it after 60 seconds
DestroyObject( decoy , 60.0);
}
}
[/nwscript]
Very old script By Urban Knight 9/1/2002 was wondering if it can be editted to create clone of the player with a shadow effect that I will be hostile to factions that are hostile to PC. Basically a shadowy decoy that will draw some fire for about a minute before vanishing. I would like item with unique property to be an amulet if that is relevant information.
My question is can the decoy be made immune to all damage since it's a shadow but will vanish if any dispel magic spell is cast on it?
Thanks in advance.
Modifié par Artistmonk, 07 mai 2011 - 06:31 .