Jump to content


FoxInABox

Member Since 15 Dec 2006
Offline Last Active Yesterday, 10:24 AM

Topics I've Started

Basic tbas example (GM7 Lite)

24 October 2010 - 12:54 PM

  • Title:  Basic Turn Based Attack System Example
  • Description:  I've been working on making a simple and easily understandable tbas using mostly D&D.. it contains multible teammates and foes
  • GM Version:  GM 7
  • Registered:  no
  • File Type:  .gmk
  • File Size:  32 kb
  • File Link:  http://solidfiles.com/d/99f0/get/
Additional Info
When you or enemy attack, then:
global.turn is changed to tell if it is your party (value 1) or the ememy's turn (value 0)
global.ready is set to, and when it hits it is changed back to 1

All enemies try to attack at the same time as long as:
- they are not done
- global.turn tell that it's their turn
- global.ready is 1
the first foe that performs the step event also changes the turn so the rest of them not can do anything, he also tell that he is done, which make him stop trying to attack the next time it's their turn..

ctrl_o always check if all the enemies or players are done, if so then it reset their done variable to 0 again.

I hope this will be helpfull, please ask if you got any questions..

Binary Help

24 February 2009 - 11:30 PM

Found answer here: Binary Help Topic

^^3 guess it's solved