Jump to content

How do I make trespassing damage health.


Verendum

Recommended Posts

Im working on an Enhanced Vampire Mod and I want to implement the whole 'Vampires may not enter a home without invitation' thing. So how do I make it that when a Vampire is trespassing, their health is damaged over time? I may also implement it into Churches and such...

Any help would be appreciated, thanks!

Link to comment
Share on other sites

Im working on an Enhanced Vampire Mod and I want to implement the whole 'Vampires may not enter a home without invitation' thing. So how do I make it that when a Vampire is trespassing, their health is damaged over time? I may also implement it into Churches and such...

Any help would be appreciated, thanks!

 

This is actually very easy and deceptive at the same time to implement. It's something I wrote up a proof of concept for ur Belua Sanguinare mod that I'm working with Jakisthe on.

 

To give you a very basic description, you need to have a perk that applies a damage health spell to the user. The condition to apply the spell is simply to check whether IsTresspassing is true.

 

-MM

 

Note: I say deceptive because if you simply implement it as a single spell without a perk, then the effect will keep you from waiting/fast travelling/etc,. even if the condition is false.

Edited by MofoMojo
Link to comment
Share on other sites

Im working on an Enhanced Vampire Mod and I want to implement the whole 'Vampires may not enter a home without invitation' thing. So how do I make it that when a Vampire is trespassing, their health is damaged over time? I may also implement it into Churches and such...

Any help would be appreciated, thanks!

 

This is actually very easy and deceptive at the same time to implement. It's something I wrote up a proof of concept for ur Belua Sanguinare mod that I'm working with Jakisthe on.

 

To give you a very basic description, you need to have a perk that applies a damage health spell to the user. The condition to apply the spell is simply to check whether IsTresspassing is true.

 

-MM

 

Note: I say deceptive because if you simply implement it as a single spell without a perk, then the effect will keep you from waiting/fast travelling/etc,. even if the condition is false.

 

Thanks! I'll try that.

Link to comment
Share on other sites

Why would it keep you from fast traveling even if it's disabled?

You could also do a normal spell with a script lowering the player's health by x amount every second or what have you with Wait() or GetCurrentRealTime(), but using a magic effect would probably the more elegant and easy solution.

Link to comment
Share on other sites

Why would it keep you from fast traveling even if it's disabled?

You could also do a normal spell with a script lowering the player's health by x amount every second or what have you with Wait() or GetCurrentRealTime(), but using a magic effect would probably the more elegant and easy solution.

 

It keeps you from fast traveling because the effect is considered ( damage to health) over the evaluation when considering to let you wait/fast travel. Try it out.

 

Yess, a script would work because the fast travel/wait considerations wouldn't evaluate what the script does to consider letting you or not.

 

-MM

Link to comment
Share on other sites

  • Recently Browsing   0 members

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