salar000zarepour Posted July 29, 2010 Share Posted July 29, 2010 1 how do i link a switch to a door to open or like if its is invisible but when using switch its visible. 2 i always have problems with geck and its dosent respond so i want to save my half mod for example but when i continue with loading that esp and edit it just makes another esp file i want i way to continue using 1 .esp file not two is that possible if it is pleas guide me thank you. :biggrin: Link to comment Share on other sites More sharing options...
Clexor Posted July 29, 2010 Share Posted July 29, 2010 When you go back in to edit the .esp, select "active file" when you click it. Link to comment Share on other sites More sharing options...
salar000zarepour Posted July 29, 2010 Author Share Posted July 29, 2010 Thanks :biggrin: i still need to know how i can link stuff do i need to know how to script any one? Link to comment Share on other sites More sharing options...
Clexor Posted July 29, 2010 Share Posted July 29, 2010 I don't really know about that, I think the vault doors all ready come with it set up, but for others I don't know. Link to comment Share on other sites More sharing options...
salar000zarepour Posted July 29, 2010 Author Share Posted July 29, 2010 thanks anyway Link to comment Share on other sites More sharing options...
neomonkeus Posted July 29, 2010 Share Posted July 29, 2010 This can be done a number of ways, probably the easiest is to make you door and switch persistant references and call them a name eg.mydoor, my switch. First your switch will be your activator, on this item you will need a script, create a bool called locked/visible which you use to check to see what state it the door is in. So now in the onactivate block have an if/else block that check if(locked) unlock mydoor Begin onactivate if(locked) { mydoor.unlock set locked to false //check will now show unlocked } else{ mydoor.lock set locked to true //check will now show locked } This is mainly from the top of my head, so its all pseudo code for the most part you will need to check out the proper function syntax etc. If the above script is a bit too confusing then you need to check out the internet first as its quite an easy thing to get working. The best place to get scripting tutorials is the CS wiki and the geck wiki. If you are looking for how doors switches work in game use the geck to find the National Guard Depot, there is a nice setup with a switch link there, also vault 101, but thinking about the above they might do it by reference linking which is another form of referencing through a variable instead of a reference name like mydoor. Link to comment Share on other sites More sharing options...
salar000zarepour Posted July 29, 2010 Author Share Posted July 29, 2010 This can be done a number of ways, probably the easiest is to make you door and switch persistant references and call them a name eg.mydoor, my switch. First your switch will be your activator, on this item you will need a script, create a bool called locked/visible which you use to check to see what state it the door is in. So now in the onactivate block have an if/else block that check if(locked) unlock mydoor Begin onactivate if(locked) { mydoor.unlock set locked to false //check will now show unlocked } else{ mydoor.lock set locked to true //check will now show locked } This is mainly from the top of my head, so its all pseudo code for the most part you will need to check out the proper function syntax etc. If the above script is a bit too confusing then you need to check out the internet first as its quite an easy thing to get working. The best place to get scripting tutorials is the CS wiki and the geck wiki. If you are looking for how doors switches work in game use the geck to find the National Guard Depot, there is a nice setup with a switch link there, also vault 101, but thinking about the above they might do it by reference linking which is another form of referencing through a variable instead of a reference name like mydoor. can you tell me step by step in the geck like whats a bool how do i get the code in do i use script im new at switches scripts and etc but im good at navmesh and snap and etc and i know it dosent really matter to those by the way whats the easiest ? is it ready or do i have to do that from scratch any way i named the id of my door VGearDoor202 and its name is Vault Door and switch is the default vault 101 control panel. Link to comment Share on other sites More sharing options...
neomonkeus Posted July 29, 2010 Share Posted July 29, 2010 Have a read of this Scripting tutorial. It should help with the basics. If you are really stuck pm me, im not at my own PC so I cant magic scripts, though learning through doing is the best way. Link to comment Share on other sites More sharing options...
salar000zarepour Posted July 29, 2010 Author Share Posted July 29, 2010 Have a read of this Scripting tutorial. It should help with the basics. If you are really stuck pm me, im not at my own PC so I cant magic scripts, though learning through doing is the best way. i learned how to make a weap say hello world its triky scripting but its somthing i have to learn thanks! ;D Link to comment Share on other sites More sharing options...
neomonkeus Posted July 29, 2010 Share Posted July 29, 2010 If you have any background in coding it should be easy, but the main thing to do is learn those basics. Then learn how to use functions. Also have some good reference pages like the wiki's, the oblivion one is more robust and you should look through that as 90% is carried over. The scripting that is used is very much like Visual basic, verbose, ie lots of words to do simple things. Its easy enough to get a grasp of. Also post a screen of your talking gun, it sounds highly amusing. Link to comment Share on other sites More sharing options...
Recommended Posts