Jiraiya Posted November 17, 2008 Share Posted November 17, 2008 im creating a point and click text rpg, and im trying to create a sorta combat system for players to train there characters. I have all the computer controlled enemeys created in a mysql database. Its just that im not sure were i should start with trying to write the combat system for it. its basically just %10 of two numbers that are supposed to be pulled from two different tables ( one number is the players skill which is used to due damage, and the second number is the computer controlled enmeys attack power, all i need done is to basically subtract %10 of the attack power from each persons health until one reaches zero, and if the player dies then i need them to lose 5% of there attack power, and if they win the fight i need the player to gain a preset number to there attack power, is there anyway someone could help me with this or point me in the right direction to doing this my self. thanks Link to comment https://forums.phpfreaks.com/topic/133066-point-me-in-the-right-direction-please/ Share on other sites More sharing options...
laffin Posted November 17, 2008 Share Posted November 17, 2008 Ya may want to pick up a d&d book, or my favorite gurps. Nice thing about gurps it has two systems, basic & advanced cuz its not only weapons in calculating damage ya have any skills, armor, items that may be introduced in the advanced system it goes into body locations Link to comment https://forums.phpfreaks.com/topic/133066-point-me-in-the-right-direction-please/#findComment-692015 Share on other sites More sharing options...
Jiraiya Posted November 17, 2008 Author Share Posted November 17, 2008 i dont need that i just need help with writing the script to do all the math calculations and then adding or subtracting something depending on the results Link to comment https://forums.phpfreaks.com/topic/133066-point-me-in-the-right-direction-please/#findComment-692017 Share on other sites More sharing options...
trq Posted November 17, 2008 Share Posted November 17, 2008 We can't help without seeing code and your specific issue. Link to comment https://forums.phpfreaks.com/topic/133066-point-me-in-the-right-direction-please/#findComment-692019 Share on other sites More sharing options...
.josh Posted November 17, 2008 Share Posted November 17, 2008 Please do not make multiple threads asking the same question. I'm closing this thread because you made this one second, and the first one you actually showed some info. Link to comment https://forums.phpfreaks.com/topic/133066-point-me-in-the-right-direction-please/#findComment-692026 Share on other sites More sharing options...
Recommended Posts