g0ldPRO / Questing.lua

A Lua script for PROShine that plays Pokemon Revolution Online for you from the very Start to as far as possible.
http://g0ldpro.github.io/Questing.lua/
Do What The F*ck You Want To Public License
5 stars 7 forks source link

TempFix: forget the most inefficient move #24

Closed Rympex closed 8 years ago

Rympex commented 8 years ago

is only a temporary fix for get in team only pokemon with damage move

tested and work:

[11:37:36] Mankey has grown to level 28. [11:37:36] You found 28 Pokedollar(s). [11:37:36] You have won the battle. [11:37:38] [Learning Move: Rage --> Forget Move: leer]

ghost commented 8 years ago

Quite interesting, one question tho, what does TP stand for? whats does it mean?

Rympex commented 8 years ago

TP is TotalPower, or better TotalDamage

Example Tackle TP = ((35 x 50) / 1) = 1750 35 = Move Max PP 50 = Move Power 1 = Accuracy% / 100

ghost commented 8 years ago

Ah, I get it now, it returns the approximated total amount of damage performed by a move. Interesting parameter, thank you so much for the quick reply ;)

ghost commented 8 years ago

The formula isn't considering moves like "Aerial Ace" which returns an accuracy of -1, but it has an "always hit" property regardless of accuracy reduction from the user or opponent's evasion.

Rympex commented 8 years ago

is only a temporary fix, till TeamManager Class

u can add manually the MoveName near

if MoveName == nil or MoveName == "cut" or MoveName == "surf" or MoveName == "flash" or MoveName == "Aerial Ace" then

ghost commented 8 years ago

I think the formula is calculating TP the wrong way, it gets higher with lower accuracy values. It should be ((Power x MaxPP)*(Accuracy/100))

Rympex commented 8 years ago

Edited, was this the original idea