Jump to content

Dishonored Blink Spell


chronathan

Recommended Posts

For those of you who have played Dishonored; you know about the "Blink" spell that your character receives in the beginning. I really liked this spell and thought the concept was interesting and I think it could be as useful in Skyrim sneaking as it was in Dishonored.

 

So I've been working on creating the spell, and I'm doing well so far. I created a spell that places an activator at the target location, and have attached a script to the activator. Here is the script I am using:

 

Scriptname aaaBlinkActivatorScript extends ObjectReference

 

 

Event OnLoad()

 

 

;Moves player to activator quickly but without fade.

Game.GetPlayer().TranslatetoRef(self,3000)

 

;Remove activator.

self.delete()

 

 

EndEvent

[/center]

 

 

Works fine and dandy. It moves the player to the reference nice and quickly but doesn't fade the player. So you get the effect that you are rushing to the area rather than teleporting. The problem is I want the player to be invisible during the translation event. (I would like to turn off collisions for the player too; however not sure how to do this and if it would be problematic.) But, if I add a command in the above script for player invisibility, it doesn't work.

 

I can get it to work however, by creating a perk that applies invisibility to the player and adding it upon activation of the above script. This is the script:

 

Scriptname aaaBlinkEffectInvisibiltyscript extends ObjectReference

 

Perk Property BlinkEffectPerk Auto

 

Event OnLoad()

 

Game.GetPlayer().AddPerk(BlinkEffectPerk)

 

endEvent

 

event OnUnLoad()

 

Game.GetPlayer().removePerk(BlinkEffectPerk)

 

EndEvent

 

This works. The player becomes invisible immediatly upon casting the spell. But the player becomes visible too quickly, before translation complete. This is because the activator is unloaded before the translation is complete. How would I add an event to remove the perk as soon as the translation is complete? I cannot seem to get "Event OnTranslationComplete" to work. I'd appreciate any pointers. This seems to be the only obstacle to being able to complete the spell so any help would be extremely appreciated.

Link to comment
Share on other sites

  • 5 months later...
Old thread, but...

Scriptname aaaBlinkActivatorScript extends ObjectReference

Event OnLoad()
;Moves player to activator quickly but without fade.
Game.GetPlayer().TranslatetoRef(self,3000)
EndEvent

Event OnTranslationComplete()
;Remove activator.
delete()
EndEvent

Event OnTranslationFailed()
;Remove activator.
delete()
EndEvent
Edited by steve40
Link to comment
Share on other sites

  • Recently Browsing   0 members

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