Jump to content

Scripting and Handling Events


elvisismyhero

Recommended Posts

In waxing nostalgic for the old OblivionXP mod I thought I'd try and play around with the new scripting language to try and replicate it. I've played around with the scripting in Oblivion quite a bit, but Papyrus is a bit disorienting.

 

I was hoping I could create a quest script that would scan for conditionals and assign a value to a global constant. ie. assign experience for various activities. Quest completion, enemy death, crafting success, ect.

 

I'm trying to make a test script that just sends a debug message on an actor death caused by the player(basic test of exp = exp + x). In the interest of compatibility I'd rather not attach this to every actor in the game. Is there some other way about this?

 

Any help would be greatly appreciated, if anything to better understand the new language! :happy:

Link to comment
Share on other sites

When it comes to detecting the player killing stuff, I think you should be able to use a perk. There's a type of "Entry Point" perk entry that lets you insert the contents of a leveled into an actor's inventory when the player kills them. If the item you insert has a script attached, then you can use it to report the actor's death.

 

The perk can be given to the player via a script, and the perk entry can be conditionalised to only work with the appropriate actor(s).

 

Cipscis

Link to comment
Share on other sites

When it comes to detecting the player killing stuff, I think you should be able to use a perk. There's a type of "Entry Point" perk entry that lets you insert the contents of a leveled into an actor's inventory when the player kills them. If the item you insert has a script attached, then you can use it to report the actor's death.

 

The perk can be given to the player via a script, and the perk entry can be conditionalised to only work with the appropriate actor(s).

 

Cipscis

 

Thank you so much. People like you are why this modding community thrives and I really appreciate the reply!

 

I haven't released a mod in my life, but I've made quite a few for myself and edited just about every one I've used for Oblivion since its release. I'd like to finally contribute if at all possible.

 

I'm sure I'll be back with more questions in the future, and if I am ever able to contribute I'll make sure those like yourself who took the time to help get the credit you deserve. :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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