Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing battle actions #480

Closed
Ghabry opened this Issue May 15, 2015 · 6 comments

Comments

Projects
None yet
5 participants
@Ghabry
Copy link
Member

Ghabry commented May 15, 2015

Implement missing enemy battle actions:

  • Double Attack (2 normal attacks in a row) since 0.6
  • Defend (double DEF until next turn)
  • SelfDestruct (destroy and deal damage (algorithm???))
  • Charge (pause this turn, next turn double damage)
  • Escape (leave battle)
  • Fix algorithm for Escape
  • Fix algorithm for Skill
  • SelfDestruct and Escape should not give the item

@Ghabry Ghabry added the Battle label May 15, 2015

@Ghabry Ghabry added this to the 0.3.1 milestone May 15, 2015

@rohkea

This comment has been minimized.

Copy link
Member

rohkea commented May 15, 2015

Some time ago I've tried to understand the self-destruct algorithm (by setting different values, adding 10 slimes and performing many battles), here's what I've got: https://www.ethercalc.org/qpffnn7zle

ATK (values in the left column) are monster's attack, DEF (values in the top row) are hero's defense; the cell at the intersection of these is n-k, where n is min damage and k is max damage. The table was made using RM2k version 1.05b.

I haven't figured out the algorithm yet, unfortunately. Hopefully someone else can. I can fill the table with mode data if this helps.

@Ghabry

This comment has been minimized.

Copy link
Member Author

Ghabry commented May 17, 2015

@Ghabry

This comment has been minimized.

Copy link
Member Author

Ghabry commented May 18, 2015

bugmenot offered more algorithms :)

Flee Chance = 150 - [AGI(Enemies Average) / AGI(Heroes Average) x100]

Div and mul is float
+10 for each missed escape this battle

Skill Damage(Effect) =
(
BaseEffect
+ STR(user) x Phys.Influence /20
+ INT(user) x MagicInfluence /40
- DEF(target) x Phys.Influence /40
- INT(target) x MagicInfluence /80
)
x Phys.Attribute /100 x Magic.Attribute /100
+|- random[(SkillDamage x Variance/20)]

Note: random[0 .. (SkillDamage x Variance/10)+1] - (SkillDamage x Variance/20)

In case of negative attributdamage (only RPG2k3 has this) only the smaller attribute is considered because twice minus = plus.

Whole skill damage is integer calculation

Ghabry added a commit to Ghabry/easyrpg-player that referenced this issue Sep 6, 2015

@Ghabry Ghabry modified the milestones: 0.3.1, 0.4 Sep 6, 2015

Ghabry added a commit to Ghabry/easyrpg-player that referenced this issue Sep 6, 2015

@Ghabry Ghabry modified the milestones: 0.4.1, 0.4 Dec 15, 2015

@Ghabry Ghabry modified the milestones: 0.4.1, 0.5.0 Feb 19, 2016

@Albeleon

This comment has been minimized.

Copy link
Member

Albeleon commented Jul 7, 2018

#1373 Commit 2.24 implements NormalDual, enemies included, correctly at least for 2k. Needs testing in 2k3.

@fmatthew5876

This comment has been minimized.

Copy link
Contributor

fmatthew5876 commented Dec 18, 2018

This is fixed in master. Self-Destrust and Escape not only don't give items, but they also don't give EXP or Gold either.

@Ghabry

This comment has been minimized.

Copy link
Member Author

Ghabry commented Dec 18, 2018

According to Git blame this was already implemented 3 years ago. wups.

Closing.

@Ghabry Ghabry closed this Dec 18, 2018

@Ghabry Ghabry modified the milestones: 0.6.x, 0.6.0 (likely) Dec 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.