Search Unity

Turn Based RPG Combat System Style Game

Discussion in 'General Discussion' started by Fuhans92, Mar 29, 2014.

  1. Fuhans92

    Fuhans92

    Joined:
    Mar 29, 2014
    Posts:
    4
    I want to make a combat system like "Suikoden II" or other similar combat system like that.

    Here is the combat system in the below image show what I mean:

    $eN5OJ.jpg

    Above link has been taken from Suikoden II combat system.

    Basically, it is not the Turn Based Strategy or Turn Based Tactics like "Final Fantasy Tactic"

    Here is the image show it is not supposed to be like this, the combat system:

    $T0Myn.jpg

    Above link has been taken from "Final Fantasy Tactic" combat system.

    Where the player have to move step by step according to the movement points and turn by turn.

    The combat system what I am looking for and want to make is not based on movement points, and the player just attack the enemy, use items, defend or run away.

    Do you guys know how to do it and is there any tutorial available? or the references.

    Your answer much appreciated!

    Thank you
     
  2. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    You need a state machine!

    eg
    Code (csharp):
    1.  
    2. while (battle) {
    3.  
    4. Playerchoose();
    5. Playerattack();
    6.  
    7. EnemyChoose();
    8. Enemyattack();
    9.  
    10. EndRound();
    11.  
    12. }
    Something like that will get you started.
     
    stkubr and astracat111 like this.
  3. violinbg

    violinbg

    Joined:
    Mar 24, 2014
    Posts:
    79
    Origxn likes this.
  4. konkol

    konkol

    Joined:
    Apr 6, 2011
    Posts:
    33
    You can design combat screen activated when there is time for combat. On the screen there should be some controls ( buttons? ) allowing player to make decisions: who is attacking, who is using healing potion and so on. And there should be "End Turn" button that player clicks when orders are given.

    On EndTurn you should do as follow:
    1) Disable controls so player cannot mess with game for awhile.
    2) Do battle calculations: how much damage was given, how much health was restored. It is also perfect place for "AI" - let enemies do their thing here.
    3) Inform player about what is going on - preferable showing short animations of taking damage, restoring health...
    4) Check conditions:
    - if all player characters are dead: show sad message and go to Load/Exit screen
    - if all enemies are dead: show happy message and close battle screen
    - else: enable controls so player can give orders in new turn that just began.


    Or try RPG Maker :)
     
    Last edited: Mar 31, 2014
    Origxn likes this.
  5. MrDude

    MrDude

    Joined:
    Sep 21, 2006
    Posts:
    2,569
  6. wccrawford

    wccrawford

    Joined:
    Sep 30, 2011
    Posts:
    2,039
    You necro'd this thread to post another thread's link?
     
    HolBol likes this.
  7. erik_malkavian

    erik_malkavian

    Joined:
    Jun 25, 2014
    Posts:
    2
    I'm glad he did. I am looking for a combat system.