Need help with some code.

Post » Sun Jun 17, 2012 7:20 pm

1. I want to make a shout refresh command.

It would have a timer of set seconds and would refresh the shout cooldown.

I don't know the CK's scripting language, so i'll just put some example code.


scriptname shoutcooldown
float time
event gamemode
time -= 1
if key is pressed(z) then shout cooldown is refreshed and time = 20
end

2. I want to tweak the global difficulty of the game. Are there variables which i can edit to increase the difficulty of everything at once, like a global health variable?

3. How can i make word of power tomes?

4. I also want to make a power attack command. This would also have a cooldown.


scriptname powerattack
float time
event gamemode
time -= 1
if key is pressed(x) then do a power attack and time = 20
end

I tried reading constructionkit.com but i don't see commands for editing keys and managing shout cooldown.
User avatar
Lizbeth Ruiz
 
Posts: 3358
Joined: Fri Aug 24, 2007 1:35 pm

Post » Mon Jun 18, 2012 2:10 am

As far as I know, there's no way to get player input via script. We'll have to wait on the SKSE team for that functionality.

Cipscis
User avatar
Sheila Esmailka
 
Posts: 3404
Joined: Wed Aug 22, 2007 2:31 am

Post » Sun Jun 17, 2012 1:23 pm

I guess it is not possible to do 4 then but would 1 be possible with magic?
User avatar
Yonah
 
Posts: 3462
Joined: Thu Aug 02, 2007 4:42 am

Post » Sun Jun 17, 2012 9:40 pm

Is any of this possible now? Is SKSE updated or any other editor avaivable that allows any of these?
User avatar
MR.BIGG
 
Posts: 3373
Joined: Sat Sep 08, 2007 7:51 am

Post » Sun Jun 17, 2012 11:59 pm

3. How can i make word of power tomes?

Yep. You can make them just as regular tomes as far as I know. Else just attach an OnRead() script to a normal book.
User avatar
sunny lovett
 
Posts: 3388
Joined: Thu Dec 07, 2006 4:59 am

Post » Mon Jun 18, 2012 3:08 am

  • http://www.creationkit.com/SetVoiceRecoveryTime_-_Actor
  • Check the game settings. Also, you can add debuffs to the player.
  • Yes.
  • Probably needs http://www.creationkit.com/SendAnimationEvent_-_Debug
SKSE has "IsKeyPressed" for hotkey functionality.
User avatar
Cccurly
 
Posts: 3381
Joined: Mon Apr 09, 2007 8:18 pm


Return to V - Skyrim