Jump to content

[LE] Help with a simple script


Recommended Posts

I basically have this cool vampire lord transformation animation that I want to play also for another mod. I can't figure out for the life of me how people do that. I went to the actual magic effect, tried to add a new script that was:

ScriptName SuccuAnimTrigger extends ObjectReference
Event OnEffectStart(Actor akTarget, Actor akCaster)
Debug.Notification("SuccuAnim script is firing!") ; Debug message for testing
akTarget.PlayIdle("actors/vampirelord/animations/mt_transform.hkx")
EndEvent

But if I try to save the script it says compilation failed. Tried a simple TestScript and just added the Debug.Notification line and it saved successfully so it must be something wrong with either the syntax or the logic. I'd be very grateful for any help.
Link to comment
Share on other sites

You can't paly an IDLE that point towards the hkx behavior graph:

actors/vampirelord/animations/mt_transform.hkx

The function 'PlayIdle()' should use the animation's actual name, for example, and not an acurate animation name, I'm using the one you are which I don't know if it's a valid one:

akTarget.PlayIdle(mt_transform)

Link to comment
Share on other sites

 

I basically have this cool vampire lord transformation animation that I want to play also for another mod. I can't figure out for the life of me how people do that. I went to the actual magic effect, tried to add a new script that was:

 

ScriptName SuccuAnimTrigger extends ObjectReference
Event OnEffectStart(Actor akTarget, Actor akCaster)
Debug.Notification("SuccuAnim script is firing!") ; Debug message for testing
akTarget.PlayIdle("actors/vampirelord/animations/mt_transform.hkx")
EndEvent

 

But if I try to save the script it says compilation failed. Tried a simple TestScript and just added the Debug.Notification line and it saved successfully so it must be something wrong with either the syntax or the logic. I'd be very grateful for any help.

 

 

 

You can't paly an IDLE that point towards the hkx behavior graph:
actors/vampirelord/animations/mt_transform.hkx
The function 'PlayIdle()' should use the animation's actual name, for example, and not an acurate animation name, I'm using the one you are which I don't know if it's a valid one:
akTarget.PlayIdle(mt_transform)

 

I don't think "mt_transform" is valid but the problem is I don't know where to look to find the actual animation name. It's basically the same animation that plays when you transform to a vampire lord. I tried unpacking Dawnguard.bsa somewhere to take a look at the vampirechangeeffect script to get some hints or ideas but they don't have a source folder and the pex file is literally written in like Sumerian or some s#*!

Link to comment
Share on other sites

Try using IdleVampireLordTransformation. With Dawnguard loaded it can be found in the Creation Kit under the Gameplay > Animations menu option. Open the Actors\Character\Behaviors\0_Master.hkx category. Open the LOOSE category and scroll the listing till you find it. But I have no idea if it is a valid idle animation for PlayIdle.

 

FYI - The source files for the Dawnguard scripts are included in the scripts.zip / rar file found in your Data folder provided you have installed the Creation Kit. It should also have been extracted the first time you ran the Creation Kit. Unless your LE CK install was done prior to the update that put all source scripts in a zip / rar file.

Defaults:

LE -- Data > Scripts > Source > Dawnguard

SE -- Data > Source > Scripts

Link to comment
Share on other sites

Checked one of my scripts and the actual name is:

IdleVampireTransformation


But just as a note, the animation does not actually transforms the actor, the 'IdleVampireTransformation' is to be played on the humanoid actor, then a secondary IDLE is played on the Vampire lord that takes the place of the first humanoid actor.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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