Hi again. I am trying to do something, and I'm certain there's an easier way to proceed, or one that will show less problems. Bear with me.
We enter an area, where an NPC is under a heartbeat animation. We enter the trigger, and conversation begins. She is not the owner, since I thought that the animation will break if she was. The script she uses is this.
void main()
{
if ( GetAILevel() == AI_LEVEL_VERY_LOW )
return;
if ( IsInConversation(OBJECT_SELF) || GetIsInCombat() )
return;
PlayCustomAnimation(OBJECT_SELF, "kemo_back_8i", 1);
}
Something Lilacs gave I think.
Anyway, the animation is lie on the side.
During the conversation, I want this animation to break, and she stands up. I thought that this will work, but didn't. Setting the script set to 9, which is the default, I had the idea that since she no longer calls the custom heatbeat she will stand up.
void main(string sTag, int nScriptSet)
{
object oMe = GetObjectByTag(sTag);
SetCreatureScriptsToSet(oMe, nScriptSet);
}
So, I guess a variety of things.
One, my second script is gibberish.
Two, that this might work better by playing custom animation and lose the heatbeat.
Three, maybe a blocking script would do wonders here.
Any idea on how to do this kind of thing?





Retour en haut







