# Animation tips anyone?

**URL:** <https://discourse.stonehearth.net/t/animation-tips-anyone/39349>\
**Category:** Modding\
**Created:** [January 29, 2019, 5:03pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349 "2019-01-29T17:03:50Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stonestomach](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/stonestomach/32/53930_2.png) [@Stonestomach](https://discourse.stonehearth.net/u/Stonestomach)\
**Post date:** [January 29, 2019, 5:03pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/1 "2019-01-29T17:03:50Z")

</div>

Im trying to train my animation skills, Im planning to make a mod with some additional animations. How can I make one with two character models involved? Im using Blender btw

---

<div class="post-metadata">

**Author:** ![DaniAngione](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/daniangione/32/63425_2.png) [@DaniAngione](https://discourse.stonehearth.net/u/DaniAngione)\
**Post date:** [January 29, 2019, 6:12pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/2 "2019-01-29T18:12:26Z")

</div>

> [@Stonestomach](#):
>
> Im planning to make a mod with some additional animations. How can I make one with two character models involved?

👀 that is very suspicious … :jubilant:  
I hope your mod is SFW :merry:

Other than that, there are some really good threads dealing with that:

> [@Symbol's Animation Tutorial for StoneHearth](https://discourse.stonehearth.net/t/symbols-animation-tutorial-for-stonehearth/30740):
>
> Hi There! Symbol Here Finally! we have it; My Terrible Voice and Weird accent in a Video Explaining how to animate for StoneHearth i mentioned here and there that i wanted to make a Video explaining how the add-on works and how to operate it, but i didn’t have time to really record because circumstances proved difficult with just noisy surroundings, until now that is! hopefully thees Tutorials will help you guys and New Modders wanting to jump into animating get started And also be a easy r…

> [@Guide: "From a picture to an animation"](https://discourse.stonehearth.net/t/guide-from-a-picture-to-an-animation/1702):
>
> “How to start working on my own stuff?” That was one of the first things I have had in my mind after I have joined the community of Stonehearth. In the meanwhile I have tried this and that and would like to share my “lessons learned” with anyone interested in it. If this guide provides an easier entry or some motivation to start thinking about creating own voxel-desings, modding, animation… nothing more I could ask for wink. So what should this be all about? I want to create a few videos (I …

and this is very useful too:

> [@Stonehearth Add-On for Blender (Animation)](https://discourse.stonehearth.net/t/stonehearth-add-on-for-blender-animation/3561):
>
> As mentioned in the thread “[Modding Stonehearth’s Graphics Test Program](http://discourse.stonehearth.net/t/modding-stonehearths-graphics-test-program/3540/46)”, I have been working on an Stonehearth Add-On for Blender. The idea is to support modders who want to including their own animations into Stonehearth. Disclaimer: This Add-On is still work in progress and might get broken or change its functionality over time. Latest Version: “[Stonehearth Add-On for Blender v0.9.1](http://www.stonehearth.de/downloads/Blender/io_stonehearth_091.zip)” A [manual can be found on the official homepage](http://www.stonehearth.de/weblog/blender/manual-english) of the Add-On. Available meta-files: Settler / Worker ([m…](http://www.stonehearth.de/downloads/Blender/meta_human.json)

These threads themselves contain more links and tips, etc… So you can start digging them 😃

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [January 29, 2019, 6:28pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/3 "2019-01-29T18:28:37Z")

</div>

Making two entities interact is not easy, since both have to synchronize their AI in a sense.

If you’re planning to add animations for conversations, those are made individually (only one hearthling), then the game starts an animation before the other hearthling has finished their emote, and it looks like they’re really talking.

I think for the rescuing mechanic it’s really one hearthling carrying another one (done by code, their animations are individual). That one uses a state machine. Thankfully the carried hearthling can’t run away (that feature had so many bugs/edge cases in the past…).

---

<div class="post-metadata">

**Author:** ![Stonestomach](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/stonestomach/32/53930_2.png) [@Stonestomach](https://discourse.stonehearth.net/u/Stonestomach)\
**Post date:** [January 29, 2019, 7:01pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/4 "2019-01-29T19:01:16Z")

</div>

What Im planning is a mod that adds finishing moves in combat. I always found the way enemies just poof out of existence when they die kind of bland. So, instead of doing that, a northern footman with a claymore deflects an Orc’s axe attack, chops his left arm and then pierces him with his sword… and then the orc poofs out of existance. Or a Knight with a shield and mace, he punches the orc in the face with his shield, making him fall over and then crushes his chest in a mighty strike. Or a footman with an axe and dagger, he is agile and ninja - like (in my opinion), so he dodges the orc’s attack, rolls into his back, hits the back of his knee with the axe, making him kneel, and then drives his dagger into his throat.

Yeah, they are pretty gruesome (no blood, though), so I dont know if it fits with the whole PG clean aesthetic, and it is a very ambitious job for a first - timer, but I would like to begin modding these things.

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [January 29, 2019, 7:11pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/5 "2019-01-29T19:11:55Z")

</div>

Hmm… it might be possible to change the AI action that performs the attack to play an animation in the target (although the whole combat system has many files, so maybe it’s not so easy).

The mobs run the death effect on their own when their health reach 0, and from that action you wouldn’t be able to know which weapon the hearthling was using (what if several hearthlings are attacking the same mob? probably you’d only want to play 1 animation).

---

<div class="post-metadata">

**Author:** ![Stonestomach](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/stonestomach/32/53930_2.png) [@Stonestomach](https://discourse.stonehearth.net/u/Stonestomach)\
**Post date:** [January 29, 2019, 7:37pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/6 "2019-01-29T19:37:07Z")

</div>

Yes indeed. So is there a way to make the animation happen when only one hearthling is attacking? (I mean is it written somewhere the amount of enemies a mob is taking hits from)

Appart from that, You have a very fair point. If I wanted different animations for different weapons wouldn’t it be necesary to give each weapon type a different value so the outcome is a different animation triggered?

Its gonna be tricky

---

<div class="post-metadata">

**Author:** ![DaniAngione](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/daniangione/32/63425_2.png) [@DaniAngione](https://discourse.stonehearth.net/u/DaniAngione)\
**Post date:** [January 29, 2019, 7:40pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/7 "2019-01-29T19:40:58Z")

</div>

> [@Stonestomach](#):
>
> Yeah, they are pretty gruesome (no blood, though), so I dont know if it fits with the whole PG clean aesthetic, and it is a very ambitious job for a first - timer, but I would like to begin modding these things.

I mean, the cool thing about mods is that people can choose the ones they want (or not!) So even though it wouldn’t immediately fit SH’s atmosphere, etc… It would still be an awesome choice for those that want it 🙂 So don’t worry about that when modding 😃 Just always make sure to warn people about the content of your mod (and, of course, don’t break any rules regarding obscene content, hate speech, etc…)

As for your idea, here’s an approach I’d think could be cool:

By tweaking the code a bit, perhaps it would be possible to create a “defeated” state for enemies - similarly to how hearthlings get “downed” instead of insta-killed. That defeated state could be random (have a chance to happen or not), and could even be modified by certain things (that would also require a lot more code, though), like attacker weapons, levels, etc…

once in the defeated mod, the mob could (for example) be like “dizzy” and standing and then a hearthling would “reserve” it (preventing others from attacking it) and perform a “finishing blow” on it. That way, you could control the positioning and which animation each part would play (and then have individual animations for both the entity being killed and the performer of the blow).

That’s an approach… but I gotta say…

This involves **a lot** of custom code…  
and this would involve **a lot** of animations, especially if you want to give unique animations to different weapon combinations, etc…

So I’d classify that as an ultra-complex project.  
But could be really awesome!

---

<div class="post-metadata">

**Author:** ![Stonestomach](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/stonestomach/32/53930_2.png) [@Stonestomach](https://discourse.stonehearth.net/u/Stonestomach)\
**Post date:** [January 29, 2019, 7:47pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/8 "2019-01-29T19:47:38Z")

</div>

I mean, I didn’t fix into the code (because I have no idea how to code) So I was basically playing with an idea. Until then, Guess Ill have to get an easier project, like hearthling reskins or something like that

---

<div class="post-metadata">

**Author:** ![DaniAngione](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/daniangione/32/63425_2.png) [@DaniAngione](https://discourse.stonehearth.net/u/DaniAngione)\
**Post date:** [January 29, 2019, 7:51pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/9 "2019-01-29T19:51:12Z")

</div>

Well, yes. I wouldn’t recommend anyone to start with something _that_ complex.

But on the other hand, Stonehearth is a great place to get started/learn a bit, it’s not overly complex and you can grasp things and start getting nice results in no time with patience, practice and dedication. I barely code before either and a year later I feel I’m in a much better place than a year ago (thanks to SH) 😃

But you could totally start with something similar, like just additional combat animations (instead of finishing moves with specific code)  
There aren’t many animators around in the modding scene and focusing your skills on that could earn you a lot of potential – for code and such, you can always (for example) partner with someone else, so you’d provide the animations and ideas, etc… So don’t give up your idea, just write it down for now and maybe start simpler 🙂

---

<div class="post-metadata">

**Author:** ![Stonestomach](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/stonestomach/32/53930_2.png) [@Stonestomach](https://discourse.stonehearth.net/u/Stonestomach)\
**Post date:** [January 29, 2019, 7:57pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/10 "2019-01-29T19:57:07Z")

</div>

What if…  
There were hearthlings who had a “musician” trait…  
And when Idle can trigger an animation of them playing an instrument according to their faction…  
(Lyre for the ascendancy, Zither for Rayya’s Children and Flute for the Northern Alliance)  
And nearby hearthlings can get a morale boost or letdown depending on wether they liked the song or not?

In terms of code how ambitious is that? I mean, The morale system seems straight forward, but Ill leave it to the ones who know how to code to judge

---

<div class="post-metadata">

**Author:** ![DaniAngione](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/daniangione/32/63425_2.png) [@DaniAngione](https://discourse.stonehearth.net/u/DaniAngione)\
**Post date:** [January 29, 2019, 8:02pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/11 "2019-01-29T20:02:44Z")

</div>

Seems quite doable with very little (if any) extra code.

Trait: you can add the trait without code.

Playing: You can make the playing of the instrument be a skill, like a combat skill - but that works similarly to the buffs/AOE heals from the cleric. That covers pretty much everything: the effect (done via buff), the animation (played when using the skill), etc.

I think the only code you’d need would be to link the trait to the ability to use that skill (probably a little lua script to inject the ability & the ai into the character with the trait)

---

<div class="post-metadata">

**Author:** ![Stonestomach](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/stonestomach/32/53930_2.png) [@Stonestomach](https://discourse.stonehearth.net/u/Stonestomach)\
**Post date:** [January 29, 2019, 8:13pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/12 "2019-01-29T20:13:21Z")

</div>

Also I would need to configurate the area of music. (16/25/36 square tiles) The thing about making the playing a skill would make sense in a context of code, but I imagined it more like “something they just do” instead of the progessive system of XP that the combat tree implies. Simply an idle animation that has effects on hearthlings all around.

---

<div class="post-metadata">

**Author:** ![DaniAngione](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/daniangione/32/63425_2.png) [@DaniAngione](https://discourse.stonehearth.net/u/DaniAngione)\
**Post date:** [January 29, 2019, 8:50pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/13 "2019-01-29T20:50:18Z")

</div>

But it would work like that.

I’m just saying that you can use that code, but wouldn’t work like a combat skill. It would be something they would do if on cooldown and if they perceive unbuffed friendlies nearby. It would play your animation, your sounds and have a range that you can easily determine. And anyone could do it regardless of xp or combat or anything like that 😛 it just uses the code, doesn’t necessarily carry all that with it

---

<div class="post-metadata">

**Author:** ![Stonestomach](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/stonestomach/32/53930_2.png) [@Stonestomach](https://discourse.stonehearth.net/u/Stonestomach)\
**Post date:** [January 29, 2019, 9:02pm UTC](https://discourse.stonehearth.net/t/animation-tips-anyone/39349/14 "2019-01-29T21:02:45Z")

</div>

> [@DaniAngione](#):
>
> it just uses the code, doesn’t necessarily carry all that with it

Cool, got it!

Let’s give it a go
