shenshinoman

Villager
Member
Joined
Jul 6, 2019
Messages
12
Reaction score
12
First Language
English
Primarily Uses
RMMV
Hello, my experience with Java scripting is minimal. Mostly enough that I can, usually, recognize what a single line of code does and can then change a few set variables without need of an instruction book. However large chunks of changes, or designing whole new code, is still generally beyond me.

That said, I am looking to expand the following plugin: https://atelierrgss.wordpress.com/rmv-theatrhythm/
into what I feel is a "complete" battle system. I have many ideas to it, however I am going to do these one at a time. So I am going to start my first goal here.

The current goal being to add "skills" to the combat. The simplest idea form being, that at certain chain numbers, an additional attack is triggered, complete with an animation, and damage done above and beyond the normal amount. As I mentioned in my first paragraph I understand enough, that if I have a single block laid out for me, I can usually construct the rest. As such, for ease of work. I am requesting the code that, when reaching a chain of exactly 5, it triggers an additional attack that plays the "Fire One 1" animation, and deals damage to the enemy.

Additional kudos if I am provided X and y coordinates so I can adjust placement of the animation itself, as I've modified the resolution of everything. As well as additional bonus kudos if it can be set to use a random skill, by name at least, from the skills the party battlers have learned. (I can manually define damage, animation, etc. one by one for said skills. That is fine.)

Thanks to anyone who looks at tackling this request.


EDIT: I have managed to determine a way to at least have a noticeable effect when the chain reaches certain numbers. (the exact damage bonus of the effect will need tweaking in the future. but that is beyond the scope of this request.)

the code itself is as follows, in case it helps anyone help me.

ORIGINAL:
Code:
Scene_Theatrhythm.prototype.execute_damage = function(target) {
    if ($gameSystem._theatrhythm_phase != 1) {return};
    if (target === 0) {
        var dmg = Math.max((this._party_atk - this._enemy_def),1);
        if ($gameSystem._theatrhythm_key_data[1] == 2) {dmg *= Moghunter.theatrhythm_critical_bonus};
        this._enemy_hp[0] -= Math.floor(dmg);
        if (this._enemy_hp[0] <= 0) {this._enemy_hp[0] = 0; this._enemySprite._enemy.performCollapse();this.battle_end(10)};
    } else {
        var dmg = Math.max((this._enemy_atk - this._party_def),1);
        this._party_hp[0] -= Math.floor(dmg);
        if (this._party_hp[0] <= 0) {this._party_hp[0] = 0;this.battle_end(11)};
    };
    this.refresh_damage(target,Math.floor(dmg));
};
modified
Code:
Scene_Theatrhythm.prototype.execute_damage = function(target) {
    if ($gameSystem._theatrhythm_phase != 1) {return};
    if (target === 0) {
        var dmg = Math.max((this._party_atk - this._enemy_def),1);
        var remainder = ($gameSystem._theatrhythm_chain_data[1] % 5) / 100;
        if (remainder === 0) {(dmg *= Moghunter.theatrhythm_skill_bonus)};
        if ($gameSystem._theatrhythm_key_data[1] == 2) {dmg *= Moghunter.theatrhythm_critical_bonus};
        this._enemy_hp[0] -= Math.floor(dmg);
        if (this._enemy_hp[0] <= 0) {this._enemy_hp[0] = 0; this._enemySprite._enemy.performCollapse();this.battle_end(10)};
    } else {
        var dmg = Math.max((this._enemy_atk - this._party_def),1);
        this._party_hp[0] -= Math.floor(dmg);
        if (this._party_hp[0] <= 0) {this._party_hp[0] = 0;this.battle_end(11)};
    };
    this.refresh_damage(target,Math.floor(dmg));
};
 
Last edited:

shenshinoman

Villager
Member
Joined
Jul 6, 2019
Messages
12
Reaction score
12
First Language
English
Primarily Uses
RMMV
Bump again.. .although I realize this may belong more in the support board after-all
 

shenshinoman

Villager
Member
Joined
Jul 6, 2019
Messages
12
Reaction score
12
First Language
English
Primarily Uses
RMMV
bump a third time.

If anyone simply has advice on where to begin on the code at least, I might be able to fumble my way to the solution I am looking for.
 

Latest Threads

Latest Posts

Latest Profile Posts

While was working on one of the monsters that will appear in my horor game I may have made harold a Lovecraftian monster. (I used his head to keep things aligned.)
Finally got my website fixed and the security sorted so it's been a productive day. Can I go to sleep now? I mean... I don't need to work right?
It's always a good idea to refresh yourself on what your plugins do. I'm working on a map with opening walls, and I was about to tear my hair out over how much image editing and hand-constructing of autotiles I'd have to do, when I looked again and saw @Shaz 's Tile Changer could copy areas from another map.
"sorry it took me so long to respond" - can we please agree not to say that anymore unless it actually took a long time?! (Like 36hrs at least) I mean, I'm running out of funny responses here xD
Ugh... 4:53AM over here and I can't sleep so why not just game make.

Forum statistics

Threads
115,922
Messages
1,094,036
Members
151,176
Latest member
yoshikosai
Top