Back to HELP


When playing a hug macro, the user will be given a dialog with the closest avatars listed. If the avatar you choose gives you permission to hug, your avatar will move to theirs and a hug will take place.

  • anim1 – the animation that your avatar will use
  • anim2 – the animation that the other avatar will use
  • time – the length in seconds (if left blank, it defaults to 15.0 seconds)
  • move (TRUE/FALSE) – If set to TRUE, your avatar will move to theirs before the hug. If FALSE, your avatars will simply play the animation wherever they are (the default is TRUE).
  • emote – the emote text that plays when the avatars hug, it can be left blank.
  • question – the text that is displayed to the avatar that is being asked to join in the hug. If left blank, the default would be something like, “Keiki Lemieux would like to give you a hug.”
  • distance (new in version 1.2.1) – the distance between the avatars when the hug takes place.

Example 1: A very simple hug:


This macro is all you need to do a hug. There both you and the other avatar will do the same animation named “Hug”.

  • The hug will last for 15 seconds.
  • You will move towards each other before the hug.
  • The emote will be “/me gives [TARGET_FIRST] a hug.” and the default question is is simply the statement “would like to give you a hug.”
  • The default distance between the avis when the hug takes place would be 0.4 meters.

Example 2: Two versions of the same hug from Abranimations:

[NAME]Pounce|[HUG]pounce1,pounce2,10,TRUE,/me pounces on [TARGET_FIRST]., would like to pounce on you.,0.4

[NAME]Be Pounced|[HUG]pounce2,pounce1,10,TRUE,/me gets pounced by [TARGET_FIRST].,would like you to pounce on her.,0.4

This is an example of a hug I use from the Abranimations Couples Animator. Notice there are two versions of this macro, one for pouncing, one for being pounced. Also note that this only works if you have the animations from Abranimations installed in your HUD.

More changes in version 1.2.1:

  • If a person gives you permission to hug them, you can hug them again and it will not ask their permission each time. This only works for the last person you hugged. If you try to hug them and they are not around, the script will reset.
  • The person being hugged can stop the hug by saying /99stop. This also resets the script so you would have to ask permission to hug them again.
  • Hugs can be stopped in the middle of a hug by clicking the stop button or a different macro.
  • You can set a boost height for your own avatar during a hug:
    • /99boost on – turns hug boost on
    • /99boost off – turns hug boost off
    • /99boost X – sets the height of the boost your avatar will get while hugging. The number should be a number between 0 and 10. 1 will boost your avatar 0.1 meters, 7 will boost your avatar 0.7 meters and so on. Using this command also turns your hug boost on.
If you are reading this page using the Google translator, please note that macro commands like [NAME] and [WHISPER] only work if use the English word in the brackets and not the translated word. Be sure to view the page in English to make sure you are using the correct command in your macros.

22 Responses to “[HUG]”

  1. Kendra Chemistry Says:

    Could a hug macro be used with dance animations for couples dancing? Or is there a better way to do this in EZAD (or outside of EZAD)?

  2. Keiki Lemieux Says:

    Well, the best way to do coordinated couples dancing is with poseballs honestly. There are some dance animations which are for hug style dancing, though. I think the Abranimations Couples Animator has a salsa in there for instance.

  3. Trinity Robson Says:

    It seems like the [TARGET] replacement in the emote text does not work any more in the 1.2 version. As far as i remeber it worked fine in the previous version.

    Example line:
    [name]Hug|[hug]Hug,Hug,9.0,TRUE,/me gives [TARGET] a big hug.,

    Chat-Text as result:
    Trinity Robson gives a big hug.

    The [TARGET] is replaced by a space-character.

  4. Keiki Lemieux Says:

    @Trinity, yep, it’s a known bug. Thank you for confirming it. I’m already working on 1.2.1 which should fix that. I’m working on an update system first though, so that future updates will be much smoother for people.

  5. Coyote Jansen Says:

    Like Trinity, but mine is a bit different:
    [name]Hug|[hug]Hug,Hug,15.0,TRUE,/me gives [TARGET] a big hug.
    In chat it apears: Coyote Jansen gives Coyote Jansen a big hug.

  6. Suzanne Nitely Says:

    Hiya, can a sound be played in a hug macro?

  7. Keiki Lemieux Says:

    @Suzanne – Yes a sound can be combined with a hug. For instance if you have a sound named “smooch” the hug might look like:

    [hug]Hug,Hug,15.0,TRUE,/me gives [TARGET] a big hug.|smooch

    The trouble is the sound will play right away when you start the macro, not when the hug begins.

  8. thaumata strangelove Says:

    I have a suggestion related to hug macros. When you set the approach parameter to TRUE, it just makes the avatars walk until they collide before starting the animation (more or less.) It might be helpful in some cases to be able to specify how close the avatars get before starting that animation. So, if I were going to give you a high five, I might want to be a foot back from you, but not bumping as we would in a hug.

    I have some couples animators that use this to help align hugger poses a bit better and they work pretty well. It has the added bonus that if you have a very tiny or very large avatar, you can move those poses a bit closer together or further out.

    That being said, I don’t know how many people are writing complicated macros for their EZAD, so it might not be worth the bother of developing, nor the confusion it could cause new users.

  9. thaumata strangelove Says:

    Oh and also – it would be REALLY useful if you could reverse the animations in a hug. So, if I create a “hug” macro where I slap you and you fall down, it would be really great to just click a button and when activating that same macro, you slap ME and *I* fall down. Most couples animators offer this feature, and so THAT one would be appreciated, I am sure.

  10. Keiki Lemieux Says:

    @Thaumata, I’m definitely going to take a hard look at hugs for the next update. I think that I can improve it in a couple of ways. The distance parameter is one thing I’ll look into. I remember when I first did it, I couldn’t get it to work, so I just figured it wasn’t possible. But if other scripters have gotten it work, I’m sure there is a way, and I’ll find it. Thanks for the input.

    Oh, and yes, the reversible option would be nice. I’ll try to think through it. What I have done is made 2 versions of each hug, one that is reversed. It works fine, but a reversible option would be nice. Perhaps when you choose a hug macro, and you get the blue drop down to choose a person to hug, one of the options should be “Reverse Hug”.

  11. Brandi Lane Says:

    I have to second THaumata’s request. I’m trying to get my huddles to do a couples dance. The dance itself is not tightly synchronized like a tango so I whould be able to get it working with a hug. But there’s some issues..

    The HUG macro assumes that you want to hug for a specified time then stop. There’s no way to say “Go until I stop you”

    In addition, there’s no way to specify distance.

    I know that tightly sync’d animations will always require poseballs to work out well, but it’d be nice if I could get “loose” couples dancing working with my huddles without writing all the scripts myself.

  12. Keiki Lemieux Says:

    Brandi, I agree. I will eventually work on this problem and see if I can set it up so that macros can play different animations for dancers and for you the HUD operator, allowing you do something like this.

    One thing to note, if you change the “move” parameter to FALSE for a hug, then the two avatars will not be squished together.

  13. Chimera Bellic Says:

    I’d like to get the mieke animations integrated into the huddle.
    Currently using the hugger and the rezzer animations… Is this possible?

    I’m assuming you probably already know the answer, so I thought I’d ask before breaking things in futility.

  14. Keiki Lemieux Says:

    I think I should get me a copy of that hugger and see if I can get the hugs working in mine. I’ll try to do that this weekend.

  15. Monica Jewell Says:

    The hugger is copy/no-trans so giving it wont be possible but yes, the animations of course do work with the Huddles. I added a few of them myself.

    You only have to pick the animations for one size-couple as the Huddles does not support choosing different animations by avatar height.

  16. Michael Kasei Says:

    Hi Keiki,

    I’m in the process of loading the anims from the Abranimations Couples Animator into my HUDDLES. Generally things are working well, except that some (most) of the hugs/kisses I’ve transferred so far are quite jerky when I try them. It’s almost as if I’m still trying to move closer to my “target” while the anims play. Have you observed this before? Do you think entering a non-default (>0.4m) distance will help?

  17. Keiki Lemieux Says:

    Yes a larger distance might make a difference. Are either of your avatars particularly large or tall?

  18. Kiss Says:

    I have a notecard with a HUG macro that I love. However, I don’t want to have to click around to get to it. I can use the /99n chat command, but if I load a dance notecard the HUG is unloaded? I’d add the hug to the dance notecard, but I want the card to cycle. Can I use my hug and leave my dances loaded?

  19. Keiki Lemieux Says:

    Add the hug to your dance notecard. Macros with hugs in them are skipped in Dance mode, so it won’t accidentally go off.

  20. Myles Bosatsu Says:

    Great product .. indispensable.

    Keiki, I have the “jerky hug” problem described above and have not been able to solve it. Av height is 80, distances tried between .4 to .8 .. doesn’t fix it ..

    Could it be an outside setting .. eg. push or physics .. that is causing it.

    Thanks for a great product.

  21. Ferris Greymoon Says:

    I will be trying this, when I get a chance.

    Is there a way to make the “hug” not expire? What I’m trying to do is load a pose where I offer a “Superman and Lois Lane” carry, flying around the sim, and it would be rather traumatic to drop my Lois shortly after takeoff! 🙂

  22. Keiki Lemieux Says:

    @Myles, I don’t know what could be the issue. It could be that you are so much taller than the other avi that it wants to push you up and over them. Do you jiggle when hugging an avi of equal height?

Leave a Reply

You must be logged in to post a comment.