chjoco15 Posted February 11, 2007 Author Share Posted February 11, 2007 no i didnt. ill do that right now Link to comment Share on other sites More sharing options...
chjoco15 Posted February 13, 2007 Author Share Posted February 13, 2007 problem with your script vagrent. i tried it out, but it wouldnt let me save it. it said: Script 'anvil' line 11Nested begin/end blocks are not allowed then it says the error to keep playing or not.i know you said it probably wouldnt work, but i tried it out anyway :) Link to comment Share on other sites More sharing options...
Abramul Posted February 14, 2007 Share Posted February 14, 2007 problem with your script vagrent. i tried it out, but it wouldnt let me save it. it said: Script 'anvil' line 11Nested begin/end blocks are not allowed then it says the error to keep playing or not.i know you said it probably wouldnt work, but i tried it out anyway :)scn anvil script ref hammershort use begin onactivateset hammer to player.additem <ID of repair hammer> 1player.activate hammerset use to 1end Begin gamemodeif use == 1if menumode 1035 != 1hammer.removemeset use to 0elseif menumode 1035 == 0returnendifelseif use != 1returnend Link to comment Share on other sites More sharing options...
chjoco15 Posted February 14, 2007 Author Share Posted February 14, 2007 Sorry to keep goin on about this.. but there is another error. When i try to save the script it says: Mismatched if/else/endif block starting on line 20' Wow im sure your getting frustrated with this... Link to comment Share on other sites More sharing options...
Abramul Posted February 14, 2007 Share Posted February 14, 2007 Missed that.Begin gamemodeif use == 1if menumode 1035 != 1hammer.removemeset use to 0elseif menumode 1035 == 0returnendifelseif use != 1returnendifendShould work, unless I missed something else. I prefer to build a script from the ground up, saving it frequently to make sure my script compiles. Link to comment Share on other sites More sharing options...
chjoco15 Posted February 14, 2007 Author Share Posted February 14, 2007 Now it lets me save it, but when i try it out in the game all it does is add a repair hammer... :( Link to comment Share on other sites More sharing options...
Abramul Posted February 17, 2007 Share Posted February 17, 2007 Not only is there no script for the repair hammer, but it appears to be built into the game itself: RepairHammer is one of the items that show up before you load Oblivion.esm. However, you might try this script on your replacement anvil:scn AnvilRepairScript begin OnActivate player.AddItem RepairHammer player.EquipItem RepairHammer player.removeitem RepairHammer ;above line should work, but may cause problems. If it fails in-game, comment it out. end It should be possible to use Search & Replace (under Edit) to replace all existing anvils with your activator. Link to comment Share on other sites More sharing options...
Povuholo Posted February 18, 2007 Share Posted February 18, 2007 You'll also have to add a '1' after the AddItem RepairHammer and RemoveItem Repairhammer I think. So: player.AddItem RepairHammer 1 Or does adding no number simply add one hammer? Link to comment Share on other sites More sharing options...
Abramul Posted February 18, 2007 Share Posted February 18, 2007 You'll also have to add a '1' after the AddItem RepairHammer and RemoveItem Repairhammer I think. So: player.AddItem RepairHammer 1 Or does adding no number simply add one hammer?Eh, you're right. My mistake. Link to comment Share on other sites More sharing options...
chjoco15 Posted February 24, 2007 Author Share Posted February 24, 2007 thanks you guys are great. my comp is in the shop, but it should be back today, and i will try out that script (should of thought of that way before i even started this thread). I think i see a problem though. If you add 1 repair hammer, use it in the repairing, then take it away and theres nothing there, what will happen? will it cause the game to crash? or is it fine like it is? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.