Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Yet Another RPG battle engine
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic
Author Message
Wolf_Destiny




PostPosted: 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)



The Extension 'exe' was deactivated by an board admin, therefore this Attachment is not displayed.

 
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: 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 Sad

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




PostPosted: 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!
 
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: