Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Might And Magic Combat System

Discussion in 'Scripting' started by SaamBell, Sep 14, 2015.

  1. SaamBell

    SaamBell

    Joined:
    Mar 28, 2014
    Posts:
    128
    I've been playing the Mandate of Heaven recently and for such an old RPG this games honestly a whole load of fun! As well as this the games actually pretty damn hard. It's not exactly the best combat system ever and basically makes use of a turn based system or a real time system. In the turn based the player will stand still and the members of your party will have a chance to attack or heal etc. After all of the turns are over the enemy will either attack if you're close enough or move closer to get within range. The real time system is basically the same but without the waiting for a turn, meaning it's more of a run and attack kinda experience.

    I'm very curious how easy or hard this kind of system will be to replicate. I'm not asking anyone to write out script for me to use or anything like that I'm just merely interested in the mechanics behind that kind of system! My guess is making use of bools etc. Anyone have an idea :')?

    MM6.jpg

    Here is a screenshot example of the game I'm talking about :')
     

    Attached Files:

    • MM6.jpg
      MM6.jpg
      File size:
      65.6 KB
      Views:
      800
  2. Serdan

    Serdan

    Joined:
    Sep 1, 2015
    Posts:
    10
    Not really sure what you're asking, but in a pure turn-based system you could just have an array of the different actors and use an int to keep track of whose turn it is.
    In real-time you'd probably want some kind of action delay, which you can implement in any number of ways.
     
  3. SaamBell

    SaamBell

    Joined:
    Mar 28, 2014
    Posts:
    128
    Actually I've made a kind of simplified version of the RT combat before and it wasn't actually too programming intensive! Was quite fun too!
    And that's turn based system method sound kinda difficult! I guess I'm just interested in the programming and stuff behind RPG's and what not :')
     
  4. Brainswitch

    Brainswitch

    Joined:
    Apr 24, 2013
    Posts:
    270
    Programming RPGs are hard, but not because of the combat system (rather, because of all the variables involved in allowing the player multiple decisions effect the world, all quests, NPCs, the sheer content etc) - that is usually relatively/comparatively simple to program. Designing a really good combat system however - that's hard. Never really having played any Might and Magic games (just similar ones, such as Bard's Tale or Dungeon Master) I am not sure how their turn based combat system works but it presumably works something like: In combat, there is a turn order. ;P Seriously though, I am not entirely sure what you are asking. How to make an RPG combat system with common RPG stats and effects? How to program turn-based stuff?
     
  5. SaamBell

    SaamBell

    Joined:
    Mar 28, 2014
    Posts:
    128
    I guess what I was asking is to know more about turn based RPG combat systems in general as they seem quite simplistic compared to a system you'd see today! :)
    Just how int's/bools (types of variable) would come into play and things like that i guess :')