Originally Posted by JCarter426
There's a CutsceneAttack function that is supposed to let you have complete control over the animations, attack result, and damage for each round, but I have never managed to get it to work. I eventually gave up because I wasn't actually making a cutscene, I was just recording stuff. However... I'm pretty sure you need to pause the conversation during any attack of any kind (if the attacker or attacked are involved in the conversation).
And then resume it when that's done.
And I don't believe I did this during my attempts with CutsceneAttack, not knowing this at the time. Here's the source code for that function if you want it:
// 503: CutsceneAttack
// This function allows the designer to specify exactly what's going to happen in a combat round
// There are no guarentees made that the animation specified here will be correct - only that it will be played,
// so it is up to the designer to ensure that they have selected the right animation
// It relies upon constants specified above for the attack result
void CutsceneAttack(object oTarget, int nAnimation, int nAttackResult, int nDamage);
Here are the attack results:
int ATTACK_RESULT_INVALID = 0;
int ATTACK_RESULT_HIT_SUCCESSFUL = 1;
int ATTACK_RESULT_CRITICAL_HIT = 2;
int ATTACK_RESULT_AUTOMATIC_HIT = 3;
And the animations are in animations.2da. combatanimations.2da explains which animations go with which, in case you need it. And I'm not sure if you have to add 10000 to the animation number like you must with ActionPlayAnimation. I don't believe you do, though.
And if you want Force powers, those functions are right above CutsceneAttack in nwscript.
Alright, I got the CutsceneAttack to work, I tried it before but never used the right nAttackResult, thanks! But the PauseConversation didn't do anything different, I just changed my approach to a script fired on entering the room so you watch, and I restricted the PC so you can't talk to them and interfere until it's over. I think it works nicely.
Originally Posted by Dark_Ansem
you mean, like Vaklu and the Queen fighting each other?
Quite honestly, I haven't played TSL in so long that I don't even remember lol