Yet Another RPG battle engine
Author |
Message |
Wolf_Destiny

|
Posted: Wed Aug 23, 2006 3:45 pm Post subject: Yet Another RPG battle engine |
|
|
Yes, I know these've been done to death, but it gave me an excuse to learn classes, and I like the end result so here it is, tell me what you think, what could be improved ect.
Classes are actually surprisingly easy, and now I know why everyone posts "LEARN CLASSES" as a response to almost any help thread...
(And yes I do know it'd be better with graphics)
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Clayton

|
Posted: Wed Aug 23, 2006 4:19 pm Post subject: (No subject) |
|
|
first thing, when you post your .exe plz compress it as it takes up a lot of space
now, your AI is a bit... weird, when it gets down to like 30 health it always heals, so all the player has to do is just keep attacking and you will eventually win, other than that pretty good job, maybe you could post the source in [Turing Source Code]? (or parts of it anyway)
|
|
|
|
|
 |
Wolf_Destiny

|
Posted: Wed Aug 23, 2006 5:00 pm Post subject: (No subject) |
|
|
Wow, didn't even think of zipping, sorry about that...
Anyways, about the AI, it actually attacks while it's health is over 25, heals while it's over 5 and if your health is <= 20 then it tries a desperate attack when it gets under 5. It waits to use the desperate attack since it can do up to 20 damage, but has a 33% chance of failing altogether.
Try getting down to 5 HP or less and you'll see what it does.
The code for it though takes a random number between -10 and 20. 0-20 is the amount of damage, anything less than 0 is a failed attempt and +5 to your wait time.
Thanks for the feedback though!
|
|
|
|
|
 |
|
|