Jump to content

Trying to edit a script


edx

Recommended Posts

Posted

Does anyone know how to edit scripts? I've got a UI mod that has the HUD bar position hard coded and I want to move the bars just like an inch to the left, I've converted the script from .pex to .psc so I can read it but I don't really know where to go from here, there is a line called 'ui.SetNumber("HUD Menu", "_root.HUDMovieBaseInstance.Health._x", -356.500 - 122.870 * (100 as Float - HealthWidth) / 100 as Float)' which I think is the position but i'm not sure. And I cannot go in-game and check because I don't know how to attach the edited .psc to the .esp, anyone have any tips? Download of the files (https://mega.nz/#!6pEzVAJA!V8LtWxXvG-CHiADFwE5_cjKpg-I71XVJqRQj6jAm4kc)

Posted

What you want to do is a little bit more complicated than editing a script.

You are trying to alter a widget (added by a HUD mod.)

The base values are set by a papyrus script, but most of the items are native to the SWF file creating the widget.

 

Now, if you manage to alter the psc file, you can compile it inside CK (or, at least, using the Papyrus Compiler tool that is provided with Skyrim.)

It will generate a PEX file that you can replace and then try.

Posted
8 minutes ago, CPU said:

What you want to do is a little bit more complicated than editing a script.

You are trying to alter a widget (added by a HUD mod.)

The base values are set by a papyrus script, but most of the items are native to the SWF file creating the widget.

 

Now, if you manage to alter the psc file, you can compile it inside CK (or, at least, using the Papyrus Compiler tool that is provided with Skyrim.)

It will generate a PEX file that you can replace and then try.

 

 

I thought all the mod was is a .pex file (that edits the HUD bar elements) and an .esp to make the .pex work. here is the original mod https://www.nexusmods.com/skyrim/mods/86901 He said in the comments that you scripted the bars to not move, If I could just removed that part of the script so I can move the bars with less intrusive hud2 then that would be great.

Posted

Hes said 'I'm not too sure. I have the position hard coded because the offset of the images for the bars are odd, and the bar won't stay in the correct place when scaling if left alone.'

Archived

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

  • Recently Browsing   0 members

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