以下一段代码:
scn DoppelgangerScript
ref myTwin
ref target
Begin ScriptEffectStart
set target to getself
set myTwin to player.CreateFullactorCopy
if myTwin.isActor
myTwin.StartCombat target
endif
end
Begin ScriptEffectFinish
if myTwin.getDead==1
myTwin.DeleteFullActorCopy
(myTwin.Disable)
endif