%age chance to be hited (need math formula?) still lost.

Hello !


It's possible I trying to do harder than it's suppose to be, but It looks to be a good challenge.


I am loosing my hair trying to find out a good formula to set as good as possible "chance to be hited" (SP-Parameters)


#1 In the setting is possible to go up to 1000% that is a bit focusly-mathematicaly not good "from my point of view".


I'd like to know how the game basicaly definy which caracter will be hited.


-- Does the game chose randomly the 1st actor to target ?


It will be perfect if it could be a way to tell the game to check :


"This actor ID" first.


If not in the team, "do it randomly".


-- Does the game calculates the setting of all actors before to chose 1 ?


In that case that mean it checks the highest %age then definy if the target can be hited then go to the next one ? It does not take any sens to me if actor "A"


has 200% or 465% or whatever and the actors "B-C-D" still 100% ... that does not show the real %age of actor "A" (( this is what I wanna find out))


-- Does the game calculates the %age of the 1st randomly chosen actor, before to chose another one (randomly?) ... untill the fourth actor ?


                   --------------               ------------------                ---------------------


Deeper explanations :


-- **#1 Up page** Now if I use (ie : Provoke) and add 1000% to actor "A" it's harder for me to find out the formula, so I decided to keep actor "A" 100%


but to change the %age of the others to have a real base of "actor "A" 100%".


-- If there is 2 actors with both 100% chance to be hited. IN FACT, Actor "A" and "B" have 50% chance to be hited. It's CLEAR !


GOOD -> Now, with the ( real base of "actor "A" 100%". ) if I drop actor "B" to 0%, Actor "A" get real 100% of the hits.


NOT GOOD -> Even if the actor "A" has 1000%, if the others are still at 100%, there is still a chance to be hited.


I am using Provoke linked to a common event which change %age of the other actors, but keep the actor "A" to 100%


A little bit more difficult :


** 2 actors scenaro**


If actors "A" and "B" have 100% and I want the actor "A" to be hited at 75%, I set the Actor "B" to 50% chance to be hited.


I tryied and the Actor "A" looks to be hited 75% of the time ... ((But impossible to find out the formula ! )) + (( this is what I wanna find out))


100% -> 50% = 75% ... ! ... ! ... HAAAAAaaaaaaa ! Why D:<


I wanna add 3 level of Provoke : Lv.1 = 75%  Lv.2 = 80%    Lv.3 = 85%   and here too, what is the formula to find out what I have to set to actor "B" ?


After few sheets of paper and ruined dozen of pen... :headshake: If I set actor "B" to 25%, it gives actor "A"  87.5% chance to be hited.  ( Am I mistaking ?)


... and harder :


Now take the ( ** 2 actors scenaro** ) and try this :


** 3-4 actors scenaro**


Because I am not sure about how the game calculate the 1st actor to check and because it looks "easy" to guess the formula for 2 actors only...


what if 3 or 4 actors maximum ? Keep in mind actor "A" is always at 100% !


What if A=100% B=50% C=50% D=50% ? Does it realy works like if there is only 2 actors ? ... which means 75%.


              ---------------------                      ------------------------                         ----------------------


EDIT :


**100% is the valiue of actor "A" used as the root for the formula**


For 2 actors : Want actor "A" hited at 75% of the time :
75% - (100% / how many actor (2) = 50%)  = 25%
25% * how many actor (2) = 50%
100% - 50% = 50%


The proof by reverse methode :


If actor "B" = 50%
100% - 50% = 50% here is the (left over)
(left over) 50% / how many actor (2) = 25%
100% / how many actor (2) = 50%
25% + 50% = 75%


###


For 2 actors : Want actor "A" hited at 80% of the time :
80% - (100% / how many actor (2) = 50%)  = 30%
30% * how many actor (2) = 60%
100% - 60% = 40%


The proof by reverse methode :


If actor "B" = 40%
100% - 40% = 60% here is the (left over)
(left over) 60% / how many actor (2) = 30%
100% / how many actor (2) = 50%
30% + 50% = 80%


I hope is not just a coincidence...


Now what if there is 3 or 4 actors ?


And still dont know how the game chose the 1st target.


              ---------------------                      ------------------------                         ----------------------


Wow, it's even hard for me to understand what I've wrote. Sorry for my bad english.


I heared there is plenty of very smart peoples here ... 🙂


Does math will save the world ? ...


Thanks in advance !
Wow.. I could only understand about 50% of what you are doing. lol. Sorry I'm honestly not making fun of you, just saying it's hard to understand exactly what you need.


I did a little search and I think all or some of your answers are here: 






This post talks about an SP-Parameter called Target Rate. If I understand it correctly, it explains that all the actors (if more than one) have their Target Rate added up. This provides a ratio which gives the actual attack percentage.

NOT GOOD -> Even if the actor "A" has 1000%, if the others are still at 100%, there is still a chance to be hited.


I am using Provoke linked to a common event which change %age of the other actors, but keep the actor "A" to 100%

So according to the other post, What would happen is this:


Actor A has 1000%     Actor B has 100%


Add the percentages (of ALL players) 1000+100 = 1100.<--- Total attack chance


Divide Actor's Target Rate by the Total Attack Chance:  Actor A = 1000/1100   Actor B = 100/1100


You get the actual Hit Chance: Actor A = 90.9% Hit chance     Actor B = 11% Hit chance.


If you want Actor A to be hit 75% of the time, Actor B then needs to be at 33%


Actor A = 100%       Actor B = 33%


100+33 = 133


Actor A = 100/133 = 75.19%         Actor B = 33/133 = 24.81%


If you want Actor A to be hit 80% of the time:


Actor A = 100        Actor B = 25%


100+25 = 125


Actor A = 100/125 = 80%     Actor B = 25/125 = 20%


Now with 3 or 4 actors:


Actor A  = 100%        Actor B = 11        Actor C = 5       Actor D = 17


100+11+5+17 = 133


Actor A = 100/133 = 75.19%         Actor B = 11/133 = 8.27%       Actor C = 5/133 = 3.76%         Actor D = 12.78%


Hope this helps and check out that other post, there is other info there that might help you.
Thank you very much GreyStone84 !!!


Is not the first time I post about TGR and I never seen this post.


that's realy easier once you know how the system doing the formula.


You earned a coockie 👍
here is another topic explaining how weight calculations are used:






Because even if the target rate is labelled as a percentage, in reality it's not a percentage value - percentages are only a special (and limited) form of weight calculations, and in the case of TGR that limit is indirectly broken.
You earned a coockie

Yay! I hope it's an Oreo! lol. And your welcome!

Original thread: https://forums.rpgmakerweb.com/threads/age-chance-to-be-hited-need-math-formula-still-lost.58955/