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: Looks good! -- Xorlak 13:36:44 09-19-2005

Of Course
Posted by: William
13:39:45 09-19-2005

Yeah I will. Right now Im trying to explain all the varibles in the battle system. And its many:

//Blocked Tiles Varibles (remember if you add more blocked tiles, you also need to add to the Equation part)
AmountBlockedTiles!=7
BlockedTileX[1]!=5
BlockedTileY[1]!=8
BlockedTile[1]$ = "Stone.bmp"
BlockedTileX[2]!=10
BlockedTileY[2]!=7
BlockedTile[2]$ = "Stone.bmp"
BlockedTileX[3]!=6
BlockedTileY[3]!=3
BlockedTile[3]$ = "Stone.bmp"
BlockedTileX[4]!=2
BlockedTileY[4]!=2
BlockedTile[4]$ = "Stone.bmp"
BlockedTileX[5]!=1
BlockedTileY[5]!=9
BlockedTile[5]$ = "Stone.bmp"
BlockedTileX[6]!=12
BlockedTileY[6]!=3
BlockedTile[6]$ = "Stone.bmp"
BlockedTileX[7]!=8
BlockedTileY[7]!=5
BlockedTile[7]$ = "Stone.bmp"
//Varibles to use for special things
//HealingPotions!=HealingPotions!+1  -Put that in chests in the game.
RealTimeBattle!=0 //0 - Real Time Battle System (recommended), 1 - Turn Based battle System (not very good)
//Character Varibles
PixelMovement!=0 // 0 - Tile Movement (recommended), 1 - Pixel Movement (as good as it can be)
PlayerMinimumDmg!=2
PlayerMinimumArrowDmg!=2
CharStartX!=5
CharStartY!=5
CharSizeX!=32 //Not implemented (you need to cover old char with GrassTile$)
CharSizeY!=32 //Not implemented (you need to cover old char with GrassTile$)
CharNorth$ = "CharNorth.bmp"
CharSouth$ = "CharSouth.bmp"
CharWest$  = "CharWest.bmp"
CharEast$  = "CharEast.bmp"
CharR!=255
CharG!=255
CharB!=255
//Fighting With Sword Varibles
AttackOne!=10       //(Z) -Hits the enemy almost all the time but with less power
AttackOneRange!=20  //(Z) -Misses the enemy 1 on 10
AttackTwo!=5        //(X) -Misses the enemy sometimes, but have more power
AttackTwoRange!=6   //(X) -Misses the enemy 1 on 6
AttackThree!=0      //(C) -Great chance of missing but with full power
AttackThreeRange!=3 //(C) -Misses the enemy 1 on 3
//Using Bow/Arrows Varibles (different character direction can have different ragnes)
ArrowRangeWest!=4        //(V) -Length on tiles to shot west with a arrow
ArrowRangeEast!=4        //(V) -Length on tiles to shot east with a arrow
ArrowRangeNorth!=4       //(V) -Length on tiles to shot north with a arrow
ArrowRangeSouth!=4       //(V) -Length on tiles to shot south with a arrow
ArrowAgility!=5          //Misses the enemy 1 on 5
ArrowDecreaseDmg!=5      //Removes 5 FP because the arrow can attack enemies far away, so theres now a small weakness with it
ArrowWest$  = "ArrowWest.bmp"
ArrowEast$  = "ArrowEast.bmp"
ArrowNorth$ = "ArrowNorth.bmp"
ArrowSouth$ = "ArrowSouth.bmp"
//Board Varibles
BattleBoardMapName$ = "BattleMap.brd"
XStart!=0
YStart!=0
XEnd!=13
YEnd!=9
GrassTile$ = "Grass.bmp"
//EnemyOptions Varibles
EnemySpeedTime!=2 //Not recommended to have it above 50 due to speed is going to slow
EnemyAmount!=4 //Max 4 Enemies as Default (recommended to have max 3 due to speed), more will not work if you dont modify the code.
EnemyR!=255
EnemyG!=255
EnemyB!=255
//Clear Enemy Varibles
For(clear!=1; clear! <= EnemyAmount!; clear!=clear!+1)
{
EnemyName[clear!]$=""
EnemyGraphic[clear!]$= ""
EnemyStrength[clear!]!=0
EnemyMinimumDmg[clear!]!=0
EnemyDefence[clear!]!=0
EnemyHealth[clear!]!=0
EnemyStartX[clear!]!=0
EnemyStartY[clear!]!=0
EnemySizeX[clear!]!=0
EnemySizeY[clear!]!=0
EnemyExp[clear!]!=0
EnemyGold[clear!]!=0
}
//Enemy 1 Stat Varibles
EnemyName[1]$="Goblin" //Not implemented
EnemyGraphic[1]$= "Enemy1.bmp"
EnemyStrength[1]!=5
EnemyMinimumDmg[1]!=1
EnemyDefence[1]!=3
EnemyHealth[1]!=15
EnemyExp[1]!=10
EnemyGold[1]!=10
EnemyStartX[1]!=11
EnemyStartY[1]!=6
EnemySizeX[1]!=32
EnemySizeY[1]!=32
//Enemy 2 Stat Varibles
EnemyName[2]$="Skeleton" //Not implemented
EnemyGraphic[2]$= "Enemy1.bmp"
EnemyStrength[2]!=5
EnemyMinimumDmg[2]!=1
EnemyDefence[2]!=3
EnemyHealth[2]!=15
EnemyExp[2]!=10
EnemyGold[2]!=10
EnemyStartX[2]!=3
EnemyStartY[2]!=2
EnemySizeX[2]!=32
EnemySizeY[2]!=32
//Enemy 3 Stat Varibles
EnemyName[3]$="Maze" //Not implemented
EnemyGraphic[3]$= "Enemy1.bmp"
EnemyStrength[3]!=5
EnemyMinimumDmg[3]!=1
EnemyDefence[3]!=3
EnemyHealth[3]!=15
EnemyExp[3]!=10
EnemyGold[3]!=10
EnemyStartX[3]!=5
EnemyStartY[3]!=7
EnemySizeX[3]!=32
EnemySizeY[3]!=32
//Enemy 4 Stat Varibles
EnemyName[4]$="Ghost" //Not implemented
EnemyGraphic[4]$= "Enemy1.bmp"
EnemyStrength[4]!=5
EnemyMinimumDmg[4]!=1
EnemyDefence[4]!=3
EnemyHealth[4]!=15
EnemyExp[4]!=10
EnemyGold[4]!=10
EnemyStartX[4]!=8
EnemyStartY[4]!=4
EnemySizeX[4]!=32
EnemySizeY[4]!=32
//Start Methods, Varibles and Commands
SaveScreen() //Command
ViewBRD(BattleBoardMapName$) //Command
CharDirection$="SOUTH" //Varible
EmemyTurn!=0 //Varible
HealingVital!=10 //How much HP you should gain from one HealingPotion
//Equations:


//All Equations (should be left untouched if you want the battle system to work)
//*************INFORMATION*****************************************\\
//I multiply by 32 because thats the size of the tiles. 32 pixels. \\
//*****************************************************************\\

CharPositionX!=CharStartX! * 32
CharPositionY!=CharStartY! * 32
XStart!=XStart! * 32
YStart!=YStart! * 32
XEnd!=XEnd! * 32
YEnd!=YEnd! * 32
EnemyPositionX[1]!=EnemyStartX[1]! * 32
EnemyPositionY[1]!=EnemyStartY[1]! * 32
EnemyPositionX[2]!=EnemyStartX[2]! * 32
EnemyPositionY[2]!=EnemyStartY[2]! * 32
EnemyPositionX[3]!=EnemyStartX[3]! * 32
EnemyPositionY[3]!=EnemyStartY[3]! * 32
EnemyPositionX[4]!=EnemyStartX[4]! * 32
EnemyPositionY[4]!=EnemyStartY[4]! * 32
BlockedTileX[1]!=BlockedTileX[1]! *32
BlockedTileY[1]!=BlockedTileY[1]! *32
BlockedTileX[2]!=BlockedTileX[2]! *32
BlockedTileY[2]!=BlockedTileY[2]! *32
BlockedTileX[3]!=BlockedTileX[3]! *32
BlockedTileY[3]!=BlockedTileY[3]! *32
BlockedTileX[4]!=BlockedTileX[4]! *32
BlockedTileY[4]!=BlockedTileY[4]! *32
BlockedTileX[5]!=BlockedTileX[5]! *32
BlockedTileY[5]!=BlockedTileY[5]! *32
BlockedTileX[6]!=BlockedTileX[6]! *32
BlockedTileY[6]!=BlockedTileY[6]! *32
BlockedTileX[7]!=BlockedTileX[7]! *32
BlockedTileY[7]!=BlockedTileY[7]! *32
//Equations End

_______________
Fan of DA. Keep it going.

Working on other things now. Trying to get my life to pieces.
That was a long time ago I wrote this:
Project: Marovia
Finished: 32%
Edit Post