Jump to content

Edit ESP Script using Tes4Edit


SonOfCronus

Recommended Posts

I am trying to alter Torch Hotkey hotkey from "9" to "T". I am having problems as I am not sure what program to use. I run Tes4Edit and then tried to edit the script source. I can copy it into notepad but I do not know how to copy the text back into Tes4Edit as multi-line. It only copies the first line and leaves the rest out.

 

scriptname aaTorchHotkey float fQuestDelayTime short curKey short hotKey

Here the script source I am chaning. I highlighted the bit I changed.

Begin gamemode

if ( curKey && isKeyPressed3 curkey ) ; key still being held down
return ; wait until it's released
else
set curkey to 0
endif

if ( isKeyPressed3 hotKey )

if ( player.GetEquipped torch02 )
player.UnequipItemNS torch02
else
if ( player.GetItemCount torch02 > 0 )
player.EquipItemNS torch02
else
Message "You don't have any torch to equip."
endif
endif
set curKey to hotKey

endif

if ( GetGameRestarted )
; setting script to run at about every 2nd frame (when running at 60fps).
set fQuestDelayTime to 0.0334
set hotKey to 20

PrintToConsole "New hotkey initialized: Torch(9)."

endif


end

 

 

Link to comment
Share on other sites

I have to agree with Legotrash. While several 3rd party apps may be able to alter the script 'sources', it is impossible for anything but the CS to actually 'compile' the changes into functioning scripts. The compiler code was never made open source and is likely protected even not to be copied.

Link to comment
Share on other sites

CS is really not so hard to learn and the best way to start doing so IMHO is by tweaking an existing mod that you use and like (as you are already doing). Go for it and you'll get the hang of it. :)

Link to comment
Share on other sites

Go for it and you'll get the hang of it. :smile:

 

CS has one of the worlds worse interface but still a lot better than Skyrim.

 

Figured it out by reading toolbar description. Script Editor button. Took me a lot longer to figure out how I had to run CS through OBSE to be able to get it to save.

Edited by SonOfCronus
Link to comment
Share on other sites

  • Recently Browsing   0 members

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