# Missing battle actions #480

Closed
opened this Issue May 15, 2015 · 6 comments

Projects
None yet
5 participants
Member

### Ghabry commented May 15, 2015 • edited

 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

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.
Member Author

### Ghabry commented May 17, 2015

 Algorithm for SelfDestruct: Ghabry@9c50946#diff-4eb2c0cf84d1a3cfd3409a6e87efd20dR842
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

``` Improve Skill algorithm (see EasyRPG#480) ```
``` 6b691e2 ```

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

``` Improve Skill algorithm (see EasyRPG#480) ```
``` 92075e6 ```

Open

Member

### Albeleon commented Jul 7, 2018

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

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.

Member Author

### Ghabry commented Dec 18, 2018

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