Help - Search - Members - Calendar
Full Version: Scripting Question....
The Nexus Forums > Specific Games > Morrowind > Morrowind Plug-Ins > TES Construction Set
TDL_Guvie
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
Xeniorn
QUOTE
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. smile.gif
Serrieth
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!

QUOTE
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



QUOTE
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.
TDL_Guvie
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
Xeniorn
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.