Jump to content

Scripting Help?


Recommended Posts

For some reason, I can't even seem to add a script at all, let alone compile it and get it going. All I need is a script which will add a perk to the player when a certain key is pressed, and remove that perk when the key is released. It seems as though OnKeyDown and OnKeyUp would be sufficient but, as I said, CK won't even allow me to add a new script. I don't know what I'm doing wrong.

Can anyone help me?

​Edit: Oh, I'm trying to add the script to a custom quest. Each time I try I get an error saying the parent script doesn't exist.

Edited by fiatlibertas
Link to comment
Share on other sites

What happens when you try to add a script? As far as I know, scripts are edited in an external text editor, and then imported to CK, where you can compile it (you can also compile them outside CK, the papyrus compiler is standalone). Perk script fragments are a bit more tricky, as they need to be edited both inside CK and externaly, since CK will update the source every time you change someting in the perk.

Link to comment
Share on other sites

I'm not 100% sure yet, but try to find an archive with source scripts and unzip it. And then you have to install F4SE in order to use its events (F4SE will also edit the vanilla scripts you unpacked previously).

Edited by werr92
Link to comment
Share on other sites

  • Recently Browsing   0 members

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