Author Topic: Greater Dispelling & Mordekainens Disjunction  (Read 336 times)

Legacy_WhenTheNightComes

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
Greater Dispelling & Mordekainens Disjunction
« on: February 18, 2013, 04:24:36 am »


               Hello! How do I make these two spells trigger the OnSpellCastAt script of a door? It didn't seem to work when targetting the ground.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Greater Dispelling & Mordekainens Disjunction
« Reply #1 on: February 18, 2013, 05:23:27 pm »


               you would have to edit the spells' spellscripts because they does not affect doors in this mode at all

to do that, look at wiki for a script name, open it in toolset and find lines

oTarget = GetFirstObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_LARGE, lLocal, FALSE, OBJECT_TYPE_CREATURE | OBJECT_TYPE_AREA_OF_EFFECT | OBJECT_TYPE_PLACEABLE );
and
 oTarget = GetNextObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_LARGE,lLocal, FALSE, OBJECT_TYPE_CREATURE | OBJECT_TYPE_AREA_OF_EFFECT | OBJECT_TYPE_PLACEABLE);

and add a "|OBJECT_TYPE_DOOR" into the last parameters
               
               

               
            

Legacy_WhenTheNightComes

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
Greater Dispelling & Mordekainens Disjunction
« Reply #2 on: February 18, 2013, 06:45:20 pm »


               Thank you!