Jump to content

Scripting Question....


TDL_Guvie

Recommended Posts

If I wanted a door only to open if you have the key, what would the script be to do that. I want it to display a message when the PC trys to open the door telling them they need the key. Could someone write that script for me please....

Also, How hard would it be to create a blank ESM with all morrowinds files, but no Vvardenfell, quests, dialouge etc.

 

 

--TDL_Guvie

Link to comment
Share on other sites

begin Door_script

 

if ( OnActivate == 1 )

if ( Player->GetItemCount, "key_ID" == 1 )

Activate

 

else

MessageBox "You need the key to open this door"

endif

 

endif

 

End

 

hope this helps. :)

Link to comment
Share on other sites

no no no no! Make a new item in the Misc tab and copy a Key, so you don't have to look for the art, the DOOR has a setting that allows you to set a key or object or what ever that is needed to open that door, you don't need a script!

 

begin Door_script

 

if ( OnActivate == 1 )

if ( Player->GetItemCount, "key_ID" == 1 )

Activate

 

else

MessageBox "You need the key to open this door"

endif

 

endif

 

End

 

 

Also, How hard would it be to create a blank ESM with all morrowinds files, but no Vvardenfell, quests, dialouge etc.

Okay that would be VERY HARD! In fact it would take you al least a year to figure out the magic effects, the lightings everything!

Menus, error messages, anything that you see in morrowind today, I tried it and I gave up because it would take a year or more to set it all up.

Link to comment
Share on other sites

First of all Seriath, or whatever, I'm not an idiot and I am aware of the fact that there is a setting to assign a key to the door but, there isn't a setting to stop a PC from picking the lock. That is one good reason why you would write a script for a door. Second of all, I already have the blank ESM and I'm in the process of building my new world. If you want a somewhat blank ESM I suggest you go to google and type in "Blank ESM 2.0 Morrowind". The search engine will find a file at file front called, guess what, Blank ESM 2.0. The ESM is stripped all ready, no Vvardenfell. Just and infinite stretch of ocean to use as you see fit. As well as all the magic effects, object, dialouge, scripts etc. that originally came with you morrowind game.

 

-TDL Guvie

Link to comment
Share on other sites

You could create a blank .esm (but with statics, weapons, etc.). First, open up TESCS, and load Morrowind and/or Tribunal/Bloodmoon. Then export (File/Export Data...) all statics or whatever you want in your blank .esp, and re-open TESCS. This time, don't load any data files, just import the files you exported from Morrowind/Tribunal/Bloodmoon. I'm not sure if that'll work, but you can give it a shot... Later you can turn it into .esm.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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