Jump to content

help with an idea


chjoco15

Recommended Posts

problem with your script vagrent. i tried it out, but it wouldnt let me save it. it said:

 

Script 'anvil' line 11

Nested 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

problem with your script vagrent. i tried it out, but it wouldnt let me save it. it said:

 

Script 'anvil' line 11

Nested 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 hammer

short use

 

begin onactivate

set hammer to player.additem <ID of repair hammer> 1

player.activate hammer

set use to 1

end

 

Begin gamemode

if use == 1

if menumode 1035 != 1

hammer.removeme

set use to 0

elseif menumode 1035 == 0

return

endif

elseif use != 1

return

end

Link to comment
Share on other sites

Missed that.

Begin gamemode

if use == 1

if menumode 1035 != 1

hammer.removeme

set use to 0

elseif menumode 1035 == 0

return

endif

elseif use != 1

return

endif

end

Should 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

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

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

Archived

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

  • Recently Browsing   0 members

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