VersaProd Posted August 13, 2009 Share Posted August 13, 2009 I have two weapons with Script Effect enchants on them..... Problem is, they don't work..... Someone please explain why? Dawnstar Effect Script: Summon Protector. This is the one that crashes the game. scn DCDawnstarScript short ProtectorSummon ref target begin ScriptEffectStart If GetRandomPercent >=50 && ProtectorSummon == 0 && GetDead == 0 DawnRefProtect.moveto player set ProtectorSummon to 1 Endif Else return Endif End Begin ScriptEffectFinish If ProtectorSummon ==1 DawnRefProtect.moveto BackToLocationRef resurrect Endif Else Endif EndThe Effect is Designed to Summon a certain NPC at a random chance at the player, who will then attack the target. When either the target dies or the protector dies, the body is then resurrected and placed back in his holding cell. The problem is, the game crashes as soon as the effect works. The Protector is placed in TestShrine to keep him out of trouble. The other weapon: Runed Dagger; Store Energyscn DCRunedDaggerScript short ConsumeAmount short Consumed ref target begin ScriptEffectStart set ConsumeAmount to ConsumeAmount+1 If ConsumeAmount >= 10 && Consumed == 0 setscale 0.5 ModAV Strength -20 ModAV Endurance -20 ModAV Speed -20 set ConsumeAmount to 0 set Consumed to 1 Endif Else Return Endif End begin ScriptEffectFinish If Consumed == 1 ModAV Strength 20 ModAv Endurance 20 ModAV Speed 20 setscale 1 set Consumed to 0 Endif Else Return Endif EndThis effect is designed to cause the target to shrink and weaken the target once every ten hits. Once the effect times out, the creature is supposed to be restored to it's normal state. This one has no visual effect, however, but I have not checked before-and-after stat values of every creature I hit, so this one isn't conclusive. Scripting Help, please? Link to comment Share on other sites More sharing options...
Recommended Posts