Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 06/10/2003 04:05:34

Title: Battles
Post by: on Mon 06/10/2003 04:05:34
I'm sure you guys get these questions a lot, and I see that there are a lot of tips on making very in-depth battles, but what if I wanted a simple battle, maybe with a health bar or by HP, and it's basically just taking turns attacking, there's no other attacks except one? What would I do? Is that still going to be a lot of scripting?
Title: Re:Battles
Post by: Femme Stab Mode >:D on Mon 06/10/2003 05:55:29
well, it's pretty simple.
two variables, enemy health and your health.
the attacks can be chosen with a  dialog.
certain attacks take away certain ammounts from variables.
I made that up off the top of my head, I did the same thing with a different engine, so it might just work.
Title: Re:Battles
Post by: jetxl on Mon 06/10/2003 11:36:52
It harder than you think. First: howmany enemies are there, one ore more, same as allies. Second: the person who starts alwais wins with just one command. Last: one attack is boring.

Just some things to keep in mind when you script it.
Title: Re:Battles
Post by: Femme Stab Mode >:D on Tue 07/10/2003 06:03:32
Har, it's easy anyway.
The enemy to be attacked can be chosen through a dialogue option, so can the attack. Also, the enemy attack strength/attack used can be determined randomly, and attack/defence stats can be considered in the battle aswell,  you will just have to determine formulas, that's all. Items can be used aswell. Maybe I should try and script it myself and see how it works in practice.