Will this script work?

Morrowind and Morrowind mod discussion. No adult content, please.

Will this script work?

Postby Spirited Treasure » Thu Nov 05, 2015 2:34 pm

Code: Select all
Begin ahnassiringscript

short button
short messageOn
short reset
short OnPcEquip

;if ( MenuMode == 1 )
;   Return
;endif

if ( OnPCEquip == 0 )
   set reset to 0
endif

if ( reset == 1 )
   return
endif

if ( OnPCEquip == 1 )
   if ( reset == 0 )
            Set OnPCEquip to 0
            MessageBox "Would you like to travel to Ahnassi's house?" "Yes" "No"
            set messageOn to 1
         endif
      endif
   endif
endif

if ( messageOn == 1)

   set button to GetButtonPressed

   if ( button >= 0 )
      set messageOn to 0
   endif

   if ( button == 0 )
      Player->PositionCell, 231.-473, 639.0, 0.63, "Pelagiad, Ahnassi's House"
      set reset to 1      
         
   elseif ( button == 1 )
      set reset to 1
      return
   endif
endif


End


I removed two lines:

Code: Select all
Begin ahnassiringscript

short button
short messageOn
short reset
short OnPcEquip

;if ( MenuMode == 1 )
;   Return
;endif

if ( OnPCEquip == 0 )
   set reset to 0
endif

if ( reset == 1 )
   return
endif

if ( OnPCEquip == 1 )
   if ( reset == 0 )
      if ( VampClan == 1 )
         if ( PCVampire == 1 )
            Set OnPCEquip to 0
            MessageBox "Would you like to travel to Ahnassi's house?" "Yes" "No"
            set messageOn to 1
         endif
      endif
   endif
endif

if ( messageOn == 1)

   set button to GetButtonPressed

   if ( button >= 0 )
      set messageOn to 0
   endif

   if ( button == 0 )
      Player->PositionCell, 231.-473, 639.0, 0.63, "Pelagiad, Ahnassi's House"
      set reset to 1      
         
   elseif ( button == 1 )
      set reset to 1
      return
   endif
endif


End

Here is the bit at the bottom.
Using the Aundae amulet script. Don't want it to matter if you are a vampire or not.

Thanks for any helps!

ring.jpg
I am but a fragment cast apart from the whole.
A bit of flotsam to cling to in the storm.

I am a fly in the ointment, I am a whisper in the shadows.
I am also an old old woman. More than that you need not know.

Step carefully. No path is darker than when your eyes are shut.
-Flemeth, Asha'Bellanar, Witch of the Wilds
User avatar
Spirited Treasure
Defender
 
Posts: 934
Joined: Sun Nov 11, 2012 11:45 am
Title: Free Spirit
Gender: Female

Re: Will this script work?

Postby Jac » Thu Nov 05, 2015 3:55 pm

Whenever you remove an IF statement, you also have to remove the corresponding EndIf statement. So this line of code:

Code: Select all
if ( OnPCEquip == 1 )
   if ( reset == 0 )
            Set OnPCEquip to 0
            MessageBox "Would you like to travel to Ahnassi's house?" "Yes" "No"
            set messageOn to 1
         endif
      endif
   endif
endif


should be:

Code: Select all
if ( OnPCEquip == 1 )
   if ( reset == 0 )
            Set OnPCEquip to 0
            MessageBox "Would you like to travel to Ahnassi's house?" "Yes" "No"
            set messageOn to 1
   endif
endif


Other than that, it should work as intended.
User avatar
Jac
The Boss
 
Posts: 5987
Joined: Sat Feb 12, 2011 8:36 pm
Location: Somewhere on the left side of insanity, the right side was taken.
Title: Elder Wolf

Re: Will this script work?

Postby Spirited Treasure » Thu Nov 05, 2015 4:11 pm

Thank you Jac!

:hug:
I am but a fragment cast apart from the whole.
A bit of flotsam to cling to in the storm.

I am a fly in the ointment, I am a whisper in the shadows.
I am also an old old woman. More than that you need not know.

Step carefully. No path is darker than when your eyes are shut.
-Flemeth, Asha'Bellanar, Witch of the Wilds
User avatar
Spirited Treasure
Defender
 
Posts: 934
Joined: Sun Nov 11, 2012 11:45 am
Title: Free Spirit
Gender: Female

Re: Will this script work?

Postby Jac » Thu Nov 05, 2015 4:30 pm

You're welcome. Let me know if you have any other issues. :hug:
User avatar
Jac
The Boss
 
Posts: 5987
Joined: Sat Feb 12, 2011 8:36 pm
Location: Somewhere on the left side of insanity, the right side was taken.
Title: Elder Wolf

Re: Will this script work?

Postby Spirited Treasure » Thu Nov 05, 2015 8:56 pm

I got tossed into the middle of nowhere.

Code: Select all
    Begin ahnassiringscript

    short button
    short messageOn
    short reset
    short OnPcEquip

    ;if ( MenuMode == 1 )
    ;   Return
    ;endif

    if ( OnPCEquip == 0 )
       set reset to 0
    endif

    if ( reset == 1 )
       return
    endif

    if ( OnPCEquip == 1 )
       if ( reset == 0 )
                Set OnPCEquip to 0
                MessageBox "Would you like to travel to Ahnassi's house?" "Yes" "No"
                set messageOn to 1
       endif
    endif

    if ( messageOn == 1)

       set button to GetButtonPressed

       if ( button >= 0 )
          set messageOn to 0
       endif

       if ( button == 0 )
          Player->PositionCell, 231.-473, 639. 0, 0, 63, "Pelagiad, Ahnassi's House"
          set reset to 1     
             
       elseif ( button == 1 )
          set reset to 1
          return
       endif
    endif


    End
I am but a fragment cast apart from the whole.
A bit of flotsam to cling to in the storm.

I am a fly in the ointment, I am a whisper in the shadows.
I am also an old old woman. More than that you need not know.

Step carefully. No path is darker than when your eyes are shut.
-Flemeth, Asha'Bellanar, Witch of the Wilds
User avatar
Spirited Treasure
Defender
 
Posts: 934
Joined: Sun Nov 11, 2012 11:45 am
Title: Free Spirit
Gender: Female

Re: Will this script work?

Postby Jac » Thu Nov 05, 2015 11:40 pm

Make sure you have the correct co-ordinates in the positioncell, ST. I would drop a bowl on the floor where you want to wind up and grab the numbers from there.
User avatar
Jac
The Boss
 
Posts: 5987
Joined: Sat Feb 12, 2011 8:36 pm
Location: Somewhere on the left side of insanity, the right side was taken.
Title: Elder Wolf

Re: Will this script work?

Postby Spirited Treasure » Fri Nov 06, 2015 11:57 am

Am I reading it wrong?

I see :

231, -473, 369 [0, 0, 63] (Pelagiad, Ahnassi's House)

It's all done but this ring.

Breakfast on the table -Scrambled eggs, potatoes, grilled hound meat steak, and mini biscuits
I added the breakfast to the leveled list for cheap foods.
Stew pot will ask if you want some stew.
Beef stew and dumplings

MWScreens00268.jpg


MWScreens00269.jpg


MWScreens00271.jpg


Fire in the fireplace, stew cooking over it.
One of Vurts orchids next to it.

Named new foods NOM_food_ so hopefully NOM will see that.

MWScreens00272.jpg


Rich set below where all that stone was

MWScreens00273.jpg


MWScreens00274.jpg


MWScreens00275.jpg


New window seat with cushion and book to read.

MWScreens00278.jpg


MWScreens00279.jpg


New flowers in already existing window

MWScreens00281.jpg


I also added a lantern to the outside of her door.

Should merge fine with your mod.. Since all I changed down there were the tilesets.
still in same position as before.

Also how to get her cell ref out of my save game?
I've been in there and now it's in my game and I can't see the stuff I did on that little table.
I am but a fragment cast apart from the whole.
A bit of flotsam to cling to in the storm.

I am a fly in the ointment, I am a whisper in the shadows.
I am also an old old woman. More than that you need not know.

Step carefully. No path is darker than when your eyes are shut.
-Flemeth, Asha'Bellanar, Witch of the Wilds
User avatar
Spirited Treasure
Defender
 
Posts: 934
Joined: Sun Nov 11, 2012 11:45 am
Title: Free Spirit
Gender: Female

Re: Will this script work?

Postby Jac » Fri Nov 06, 2015 2:07 pm

I think I see the problem, you have periods in place of commas in some places. Use this instead: 231, -473, 639, 0, 0, 63, "Pelagiad, Ahnassi's House". You don't need periods unless you're using a float instead of an integer.

As for cleaning the cell, you'll need to use Wrye Mash's save game cleaner to clean it. That or use a clean save.
User avatar
Jac
The Boss
 
Posts: 5987
Joined: Sat Feb 12, 2011 8:36 pm
Location: Somewhere on the left side of insanity, the right side was taken.
Title: Elder Wolf

Re: Will this script work?

Postby Spirited Treasure » Sat Nov 07, 2015 5:54 pm

I finally got it to work.. I had to remove all those zeros .. ugh.. what a pain in the backside!!

Now I just need to fix the fire so I can use NOM to cook on it.

Thanks Jac -s-
I am but a fragment cast apart from the whole.
A bit of flotsam to cling to in the storm.

I am a fly in the ointment, I am a whisper in the shadows.
I am also an old old woman. More than that you need not know.

Step carefully. No path is darker than when your eyes are shut.
-Flemeth, Asha'Bellanar, Witch of the Wilds
User avatar
Spirited Treasure
Defender
 
Posts: 934
Joined: Sun Nov 11, 2012 11:45 am
Title: Free Spirit
Gender: Female

Re: Will this script work?

Postby Jac » Sat Nov 07, 2015 8:56 pm

Ah, right. Those zeros are for rotation, but the player and NPCs don't need them. Glad you got it working, ST. :goodjob:
User avatar
Jac
The Boss
 
Posts: 5987
Joined: Sat Feb 12, 2011 8:36 pm
Location: Somewhere on the left side of insanity, the right side was taken.
Title: Elder Wolf

Next

Return to Morrowind

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement
cron