Morrowind Modding Showcases - Forums

The Elder Scrolls III: Morrowind => Construction Set => Topic started by: LadyPhoenixFireRose on May 01, 2016, 05:45:53 PM

Title: Making a Reoccurring Script?
Post by: LadyPhoenixFireRose on May 01, 2016, 05:45:53 PM
Okay so I have edited the script the summons a deadra when you pick up a certain gold coins, made one to summon a wolf when you open any of the chests in my Abode. My issue though, is this only happens one time. So I open the chest, kill the wolf, then I can safely reopen the chest. I don't want this to be the case. I want a wolf to show up every time you open a chest. So idea on how I can go about changing the script to do that?
Title: Re: Making a Reoccurring Script?
Post by: Autoclock on May 01, 2016, 05:58:05 PM
The script looks something like this, right?

Quote
begin BILL_MarksDaedraSummon
; Summon an Daedra when an item is removed from altar
;
; script location: should be placed upon an object on a Daedric Altar

; variables
short done

if ( OnActivate == 1 )
   if ( done == 1 )
      Activate
      return
   else
      Set done to 1
      PlaceAtPC "Dremora_lord" 1 128 1
      ;1 of them, 256 units away, in back (1) of the player
      Activate
     ; HERE
   endif
endif

End

You'll need to add "set done to 0" where I've marked "; HERE". That will reset the conditions, so the next time you touch the object, a wolf will appear again.
Title: Re: Making a Reoccurring Script?
Post by: LadyPhoenixFireRose on May 01, 2016, 06:20:32 PM
Thank you I'll fix the script.