Forum rules - please read before posting.

RPG Battle System

edited September 2014 in Technical Q&A
Does anyone have any advice on incorporating an RPG Battle system? Or does anyone have one?

Comments

  • I'd imagine that to be very complicated!  But do-able, if you fancy some custom scripting.  While AC's designed for more passive adventure games, you can inject your own code to run when clicking Menu Buttons.

    If you change a Button's Click type to Custom Script, it'll then call the OnElementClick function within MenuSystem.cs.  This function is sent various parameters to determine which button was clicked, so you can then do your own thing.

    It would be best to integrate as much as you can into AC's Global Variable system, so that you can save/load this data normally.  You can set and retrieve variable values through script easily enough: this tutorial covers it.

    You can also call ActionLists through script.  For scene-based ones, just use SendMessage to send the "Interact" command, and for asset-based ones, use:

    AdvGame.RunActionListAsset (theAssetReference);
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.