Skip to content

Posts from Hero animation.

5.0 (1 rating)
User Avatar
6 years ago
Auto-translated
Hello! Could you please help me understand what the problem is? I changed the model of a human hero to a paladin. On the global map, he moves normally, and the attack animation in battle is also normal, but when he casts a spell, he freezes. Perhaps someone can suggest what I might have installed incorrectly. I would like the paladin's "Lay on Hands" animation to play when he casts a spell. I'm attaching screenshots from the editor: https://skr.sh/s1Iv1VxX0Aq?a https://skr.sh/s1Ixz6dju1Z?a And another question regarding SetCombatLight: should I specify the script name as indicated here, like in the screenshot? https://skr.sh/s1IsCDj1dWA?a And how can I specify SetCombatLight separately for the Dungeon, and not just for the surface? :smile39:
User Avatar
6 years ago
Auto-translated
Hello! As far as I remember, you need to have an animation called "cast" in the AnimSet list. The easiest way to add it (but not necessarily the most ethical, in terms of compatibility with other mods) is to go to the AnimSet Cavalier-arena in your screenshot and copy-paste the animation called "specability." Rename the copy to "cast."
By the way, you were lucky that the attack animation looks the way it should; heroes usually have problems with that too.
And another question about SetCombatLight: should I specify the script name as indicated here, like in the screenshot?
I don't remember, but it seems that it is specified according to the same principle as links from the script to any resources. Like this:
[function]("/[path to resource]/[resource name].xdb#pointer(/[resource type])")

It's a bit cumbersome, but that's how it works...
A specific example for videos would look like this:

StartDialogScene("/DialogScenes/TestMap/Ds1/Dialog-Scene.xdb#pointer(/DialogScene)")
User Avatar
6 years ago
Auto-translated
Thank you very much for your response, I will try it!

I encountered another problem. Please tell me why the region doesn't always work when entering it. It may activate if I exit and re-enter it, or it may not display the message at all. What could be the reason?
P.S.: How do I make the message appear only for one player, and not for everyone?

function FermD1()
MessageBox("/Maps/Multiplayer/Aragon1/FermD1.txt");
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Ferma1", nil);
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Ferma1", "FermD1");

Update1: The advice from comrade Ment'a regarding animation helped, everything works great now!!! Thank you very much for your help!

Update2: The problem seems to have disappeared after I moved these scripts to the very top, but the other scripts seem to be written correctly, and there are no errors in them (is it necessary to somehow close scripts, for example, those related to animations, if functions, triggers, etc. follow them?). The question remains about how to address the message to one player...
In reply to revitaxe
User Avatar
6 years ago
Auto-translated
There is a team called MessageBoxForPlayers.

Statistics

Welcome our newest member: recijeb