Jump to content

Errors in compilation


BladeOfThePoet

Recommended Posts

I'm trying to make a two spell mod, mostly aimed at Evil characters. The first spell sends the target to a dummy cell, and strips them of their weaponry (Done and Done). The second spell was meant to teleport all the NPCs in the Dummy Cell to the caster's location. The latter is the one giving me trouble. I keep getting the errors "Missing EOF at If" and, if i take down the 'If' function, i get "Loop did not match anything at input '('". Can anyone help? Here's the script (with the If)

 

Scriptname teleportBack extends activemagiceffect  

ObjectReference Property teledest auto
ObjectReference Property teledest2 auto
Objectreference property NPC1 auto
Objectreference property NPC2 auto
Objectreference property NPC3 auto
Objectreference property NPC4 auto
Objectreference property NPC5 auto
Objectreference property NPC6 auto
Objectreference property NPC7 auto
Objectreference property NPC8 auto

If Npc1 == Teledest then 
vent OnEffectStart(Actor Target; Actor Caster)
NPC1 = Game.GetPlayer().PlaceAtMe(Teledest2)
NPC2 = Game.GetPlayer().PlaceAtMe(Teledest2)
NPC3 = Game.GetPlayer().PlaceAtMe(Teledest2)
NPC4 = Game.GetPlayer().PlaceAtMe(Teledest2)
NPC5 = Game.GetPlayer().PlaceAtMe(Teledest2)
NPC6 = Game.GetPlayer().PlaceAtMe(Teledest2)
NPC7= Game.GetPlayer().PlaceAtMe(Teledest2)
NPC8 = Game.GetPlayer().PlaceAtMe(Teledest2)
Endfunction
Endif

EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...