| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| What's on your mind?; Your daily crap. | |
|---|---|
| Tweet Topic Started: Jul 29 2010, 05:18 AM (64,062 Views) | |
| skarik | Jul 29 2010, 05:18 AM Post #1 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Post whatever is on your mind at the moment. It doesn't matter what, just post it! |
| Blog|EHS | |
![]() |
|
| Replies: | |
|---|---|
| Reikyrr | Jun 16 2012, 07:55 PM Post #1936 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Ugh its so quiet everywhere If this is gonna be the rest of my vacation I will be bored to death before school even starts again.. |
|
~Inspirational quote~ | |
![]() |
|
| skarik | Jun 17 2012, 05:27 PM Post #1937 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
They didn't say why. So, I didn't respond. |
| Blog|EHS | |
![]() |
|
| Dr. Best | Jun 18 2012, 12:10 AM Post #1938 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Schade Holland alles ist vorbei, alles ist vorbei, alles ist vorbei! |
![]() |
|
| Gandalf20000 | Jun 18 2012, 03:36 AM Post #1939 |
![]()
Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I just got back from a high adventure trip with my Scout troop. We went to Louisiana and Florida. Some things I learned from it:
|
![]() |
|
| Reikyrr | Jun 18 2012, 07:12 PM Post #1940 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
@Gandalf, LOL, seems like you had fun. NOOOOOOOOOOOO First 20 minutes went well.. I don't know what it is with our soccer team, they seem to lose their pacing really quick. They play extremely well for a few minutes, then fall back to being completely dominated by the opponents. In the match vs Portugal they where able to play well for an extended period compared to previous matches.. but only one goal. I was watching yesterday with my friends, and only one yellow card :C . Germany as reliable as ever won from Denmark (which was needed if we where to have the slightest chance of making it). Edited by Reikyrr, Jun 18 2012, 07:21 PM.
|
|
~Inspirational quote~ | |
![]() |
|
| Despellanion | Jun 18 2012, 08:02 PM Post #1941 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
My new couch arrived today. Was a pain putting together alone. Typical Forever alone moment ![]() ![]() Edited by Despellanion, Jun 18 2012, 08:05 PM.
|
![]() |
|
| Reikyrr | Jun 18 2012, 08:58 PM Post #1942 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Thats a nice couch, me jelly. |
|
~Inspirational quote~ | |
![]() |
|
| Despellanion | Jun 19 2012, 11:41 PM Post #1943 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
What would be the optimal way to calculate the chance of a critical hit? Right now I got this:
EDIT: I can see my error in the code. Edited by Despellanion, Jun 20 2012, 06:47 PM.
|
![]() |
|
| alexmach1 | Jun 19 2012, 11:45 PM Post #1944 |
![]()
Graphics addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
imo it depends on stats. if someone has higher spot/vision/sight and high dexterity, they are more likely to spot and target weak points. if someone has a lot of strength, they are more likely to cause internal damage. if someone has a high level but not the combat expertise, it is very unlikely that they could cause critical damage.
Edited by alexmach1, Jun 19 2012, 11:46 PM.
|
![]() |
|
| Despellanion | Jun 19 2012, 11:55 PM Post #1945 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I was more referring to programming wise I got the stats worked out already.
|
![]() |
|
| Gandalf20000 | Jun 20 2012, 03:24 AM Post #1946 |
![]()
Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
These are what I see right away:
I suppose it depends on the language you use and how it goes about these particular functions, but you might want to test if it's faster to just use abs(player_level-opponent_level) instead of a maxValue function and a minValue function.
Why not multiply by 10 instead? I know in most languages that multiplication is faster than division, which is why a lot of math libraries include functions for reciprocal square roots (besides the Newton's approximation converging faster).
First, convert that division by 20 to a multiplication by .05. Then, since multiplication is commutative, multiply .05 and .015 together and simply multiply by .00075 instead. You can simplify the equation even more by combining like terms. Therefore, the equation becomes:
Although, your probability formula is a little strange. The success rate will be the same if the enemy is twenty levels above the player as if the player is twenty levels above the enemy. Overall, my personal preferred method of calculating critical hits would be more like a Dungeons and Dragons style skill check or the way Dungeons and Dragons actually calculates a critical hit (rolling a high number on the d20, which is dependent on the weapon the character uses). Instead of checking if your dice roll is within the probability of a critical hit on the enemy, then within the critical hit rate, you might try something more like this: First, calculate the difficulty of a critical hit on the enemy. Then roll the die and add a variety of modifying stats to the roll's value, and compare it to the critical hit value. If the die roll plus modifiers is higher, it's a critical hit. Here's how I would personally calculate it (forgive my C++ syntax, I know you're using Bennu, but it's more comfortable to me):
I don't know, that's just how I would do it. I tried to incorporate the stats you wanted criticals dependent on. This could be used for the player attacking the enemy and vice versa, and it is based on a d20 (since I'm a D&D nerd), but if you decide to use a system like this, you should change the die roll to create the balance that you want. As you can see, this algorithm also raises the difficulty if the enemy is a higher level, but it lowers it if you are a higher level. I don't know how well you understand C++ (or if you do), but I hope the use of pointers and references doesn't obscure the code's meaning too much. |
![]() |
|
| Despellanion | Jun 20 2012, 09:43 AM Post #1947 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
minValue/maxValue are my own custom methods for dealing with finding min/max values, as the developers of Bennu thinks such functions are too trivial to implement, and I agree ![]() I'll play around with the formulas some more, got really close to satisfying results last night. EDIT: I know that the probability formula is strange, I wrote it late at night when I was pretty tired and wasn't exactly thinking clearly, and changed it the next day ![]()
I do, don't worry
Edited by Despellanion, Jun 20 2012, 06:55 PM.
|
![]() |
|
| alexmach1 | Jun 20 2012, 10:04 PM Post #1948 |
![]()
Graphics addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
one of my friends became a meme face![]() oh joy |
![]() |
|
| Despellanion | Jun 20 2012, 10:13 PM Post #1949 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Looks more like the dafuq-did-i-just-read-face ![]()
Edited by Despellanion, Jun 20 2012, 10:13 PM.
|
![]() |
|
| Gandalf20000 | Jun 22 2012, 04:41 AM Post #1950 |
![]()
Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Ah, how I despise Java. My brother and I are planning on developing a game for the Android Marketplace. Unfortunately, most Android development must be done through Java, and the framework (LibGDX) we're using is also Java-based. My brother doesn't know how to program yet (I have no doubts that he will be able to learn, especially because Java is a simple language), but I find myself trying to program C++ instead! In addition, after not having done any serious Java programming since the end of my sophomore year of high school (a little over a year ago), the notion of automatic garbage collection seems frightening and a little repulsive, if that makes any sense. Also, it feels weird to not pass by pointers or references, since in C++ that would result in creating a new copy. In short, I've spent so much time with C++ that it feels like I don't have any control when I'm programming in Java. |
![]() |
|
| Go to Next Page | |
| « Previous Topic · Off-topic · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)






457902_191715804290303_886477721_o.jpg (139.17 KB)
I got the stats worked out already.

2:30 AM Jul 11