TES4: Vvardenfell Forum Index 

 FAQ   Search   Memberlist   Usergroups   Register 
 Profile   Log in to check your private messages   Log in  

Important Notice: We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024. If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
[Script] Boots of Blinding speed



Post new topic   Reply to topic    TES4: Vvardenfell Forum Index -> Technical Development

View previous topic :: View next topic  

Author
InsanitySorrow
Retired Leader


Joined: 30 Dec 2008
Posts: 454
Back to top
Message
PostPosted: Sat Mar 07, 2009 6:19 pm    Post subject: [Script] Boots of Blinding speed Reply with quote

Boots of Blinding Speed

Code:

;=========================================
;Script: Boots of Blinding Speed Script
;Version: 1.0
;Author: InsanitySorrow
;========================================

Scriptname ISBlindingBootsScript

;========================================
;Variables
;========================================

Short ModSpeed
Short Speed
Short Resistance
Short Blind
Ref   Self

;========================================
;Main Script
;========================================

Begin ScriptEffectStart
   Set Self to GetContainer
   set Speed to Self.GetAV Speed + 500
   set Resistance to Self.GetAV ResistMagic
   set Blind to 20 - ( Resistance / 5 )
   ModAV Speed 500
End

Begin ScriptEffectUpdate

If Resistance != GetAV ResistMagic
   set Resistance to GetAV ResistMagic
   set Blind to 20 - ( Resistance / 5 )
endif

If Self.IsRunning == 1
   ModAV Speed 500
   TriggerHitShader Blind
   Set ModSpeed to 1
Elseif Self.IsSneaking == 1
   Set ModSpeed to 0
   Return
   Endif
Elseif Self.IsSneaking == 0
   ModAV Speed 500
   TriggerHitShader Blind
   Set ModSpeed to 1
   Endif
Elseif Self.IsRunning == 0
   Set ModSpeed to 0
   Return
   Endif
Elseif Self.IsRunning == 0 && Self.IsSneaking == 1
   Set ModSpeed to 0
   Return
   Endif
Elseif Self.IsRunning == 1 &&  Self.IsSneaking == 0
   ModAV Speed 500
   TriggerHitShader Blind
   Set ModSpeed to 1
   Endif
Elseif Self.IsSneaking == 0 && Self.IsRunning == 0
   Set ModSpeed to 0
   Return
   Endif
Endif

End

Begin ScriptEffectFinish
If ModSpeed == 1
   ModAV Speed -500
Endif
End

;========================================
;End Script
;========================================
View user's profile Send private message Visit poster's website

Display posts from previous:   

Post new topic   Reply to topic    TES4: Vvardenfell Forum Index -> Technical Development All times are GMT
Page 1 of 1


 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
Web Hosting Directory

Design by SkaidonforForum-Styles(dot)co(dot)uk

Free Web Hosting | File Hosting | Photo Gallery | Matrimonial


Powered by PhpBB.BizHat.com, setup your forum now!
For Support, visit Forums.BizHat.com