Larian Banner
Previous Thread
Next Thread
Print Thread
Joined: Feb 2018
H
stranger
OP Offline
stranger
H
Joined: Feb 2018
Does anyone know if this can be done? I tried to use the below script to apply an animation, but can't tell if there's a problem with my script, or if you just can't apply animations to any statuses not included in [url=https://docs.larian.game/Scripting_status_types]this[/url] list.

============================
INIT
CHARACTER:__Character

BEHAVIOUR
REACTION LoseControl, 10000
USAGE PEACE
VARS
CHECK "c1"
CharacterHasStatus(__Character,UNSTABLE)
ACTIONS
CharacterSetAnimationOverride(__Character,"stillmental")
INTERRUPT
ACTIONS
CharacterSetAnimationOverride(__Character,"")
============================

Script is applied to a resource, and then applied to the root template of the character I'm trying to make it work for.

I know JRaven's mod used to do something like this, but no longer works, so I wasn't sure if the functionality to do it is not available anymore, or if I'm just doing it incorrectly.

Thanks in advance if anyone has any tips!

Joined: Nov 2017
L
member
Offline
member
L
Joined: Nov 2017
Is your status a disabling one, like knockdown?
I believe disabled characters' reactions do not activate. You may be able to do this through events or Story, in that case.

You can use the script debugger to check if that's what's happening.

Joined: Mar 2018
M
stranger
Offline
stranger
M
Joined: Mar 2018
You might be able to use https://docs.larian.game/Osiris/API/CharacterUseSkill and make a "skill" that only exists to play the animation.


Moderated by  Larian_Koala 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5