Dark Age Games
Home Dark Age EX Dark Age 2 Message Board Fan Art FAQ Kelzar Mage DALpedia MS Forum
Board Index Dark Age General Bug Report Website Off Topic Register User Edit User User List Search

In reply to: More... -- William 18:25:54 09-19-2004

Hmmm...
Posted by: Xorlak
15:27:54 09-20-2004

You mean follow the character?  You'll have to do something like this instead of the random:


#if(itemY!<playerY!)
{
  * Try north
  #direction! = 1
}
#if(itemX!<playerX!)
{
  * Try west
  #direction! = 2
}

* etc...


Now more than one enemy will be a bit more complex.  You'll have to set the enemy turn method inside a #for loop and set up each of the variables as an array (i.e. itemX[enemynumber!]!).  If you've never attempted a battle system like this before, you may want to try to get it to work with one enemy first.

Also, if you want to see an example real time battle system, take a look at MrG's Zelda Battle System.

----------
-Xorlak
Edit Post