Results 1 to 1 of 1

Thread: Add more functionality to RPGFigurine

  1. #1

    Add more functionality to RPGFigurine

    I feel like RPGFigurines would be more useful to scripting if there was more control. Just a few changes should greatly increase usability.


    RPGFigurine.attack( num )

    The Attack function would be a lot more useful if there was an option to play a specific attack animation, instead of a random one. The Knight figurine in combat mode for example has two slash attacks, one thrust attack, and one shield bash animation that could all be mapped to different actions within a script.


    RPGFigurine.getMode() or RPGFigurine.changeMode( num )

    It's difficult to get much usefulness out of getMode if you don't know what mode the figurine is currently in. You could keep track of whenever you change mode via script, but that's very prone to desync. This is a complete non-issue if there's a way to either detect the current mode or change to a specific mode.


    RPGFigurine.takeHit()

    It'd be nice to be able to run a hit animation through scripts without the need of a second figurine. This would also allow scripts to take advantage of ranged attack animations (eg ranger, mage) and have the target react appropriately.


    RPGFigurine.isDead()

    Playing any animation seems to revive figurines anyway, but a dead check could still be useful in some situations.


    Edit: More additions

    RPGFigurine.walk( time ) and RPGFigurine.run( time )

    Currently walk and run animations only seem to play when a figurine is picked up, these animations would be useful in scripting too. There should be (optional?) time arguments for how long the animation should play, and it should be overridden by any animation played later (like how death animation works).


    RPGFigurine.stop()

    Interrupt whatever animation is playing, return to idle animation.
    Last edited by my_hat_stinks; 03-17-2019 at 08:48 PM. Reason: Added stuff

Similar Threads

  1. Replies: 1
    Last Post: 03-31-2018, 12:20 AM
  2. Replies: 16
    Last Post: 05-26-2017, 04:16 AM
  3. Functionality for taking high-res "screenshots" of the board
    By PsiComa in forum General Discussion
    Replies: 0
    Last Post: 07-18-2015, 11:44 AM
  4. [SOLVED] Large custom objects breaking Alt hover functionality
    By Lordnine in forum Technical Support
    Replies: 4
    Last Post: 05-16-2015, 11:13 AM
  5. Generic playing card functionality
    By Dachoudono in forum General Discussion
    Replies: 0
    Last Post: 03-12-2014, 09:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •