Shield and Break system (Octopath traveler)

Archlvt

Veteran
Veteran
Joined
Mar 8, 2019
Messages
44
Reaction score
4
First Language
English
Primarily Uses
RMMV
**Edit** Can confirm dodging no longer deducts shields, and that the shield impact notetag functions flawlessly. Great work!

Wow, I wasn't expecting such a positive and fruitful outcome on this! Thank you very much! I will definitely try this out when I get out of work tonight! The only other issue I've had between then and now, is the notetag to replenish shield stacks when the state ends isn't working for me, but as it's a fairly critical piece of code and nobody else has talked about it, I'm very confident that the problem is due to my ATB plugin not behaving with "turns" correctly. I can't even make "cannot move" states because in ATB if you can't move then a turn never passes and therefore the state never ends lol.

I'm absolutely not asking for a fix for that one, I've simply decided to work around it by only allowing regular enemies to be broken once, and my boss battles always work in phases anyways, so they can break once per phase. I'm cool with that, but I wanted to toss the incompatibility out there in case you get any further issues.
 
Last edited:

rybamlot

Warper
Member
Joined
Apr 22, 2019
Messages
2
Reaction score
0
First Language
english
Primarily Uses
RMVXA
Hi. Awesome plugin. I actually prefer it over alternatives because how compatible it is with a variety of other plugins and how not overly complicated the code is. I wish I could put the whole information window below the battler sprite. My attempts at changing the position weren't successful, since the entire thing seems to be bound by the battler size. It becomes problematic with some of the smaller enemies. I would greatly appreciate any tips as I am not nearly as proficient with javascript as I was with ruby, and still that wasn't that great.
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
703
Reaction score
549
First Language
French
Primarily Uses
I've updated this again in order to fix a bug.
In the previous version if you used a notetag to modify the break state for a specific enemy all enemies would use the last state used as the break state instead of the one defined in the plugin parameters.
It's now fixed and the DBS notetag should only work for an individual enemy as advertised.

@rybamlot I don't understand exactly what you want to do. Make a mock up picture and I'll see if I can help.
 

Archlvt

Veteran
Veteran
Joined
Mar 8, 2019
Messages
44
Reaction score
4
First Language
English
Primarily Uses
RMMV
Actually, can anyone test out this segment and see if it's working on their end or if it's just me?


<Custom Remove Effect>

user._sh = user._mSh;

</Custom Remove Effect>
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
703
Reaction score
549
First Language
French
Primarily Uses
That notetag works as advertised in my project with only the prerequiste plugins.
 

rybamlot

Warper
Member
Joined
Apr 22, 2019
Messages
2
Reaction score
0
First Language
english
Primarily Uses
RMVXA
@rybamlot I don't understand exactly what you want to do. Make a mock up picture and I'll see if I can help.
I wanted to have the entire weakness window always underneath the battler and not over it. I finally figured it out by modifying the wy variable in Window_EnemyVisualSelect.prototype.refresh
All works perfectly now!
 

Archlvt

Veteran
Veteran
Joined
Mar 8, 2019
Messages
44
Reaction score
4
First Language
English
Primarily Uses
RMMV
That notetag works as advertised in my project with only the prerequiste plugins.
Ahh it just occured to me. It's because of what I mentioned before. Buffs states core doesnt work for me, and it makes sense that plugin would allow that note tag. Damn that sucks. Thanks for helping me reach that at least.
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
703
Reaction score
549
First Language
French
Primarily Uses
You could probably try harcoding it then instead of relying on a notetag:

Code:
(function(){
var GBRS = Game_Battler.prototype.removeState
var BSID = 4 //replace 4 by your default break state id here
Game_Battler.prototype.removeState = function(stateId) {
    var eId = this._enemyId
    if ($dataEnemies[eId].meta.DBS) {BSID = eval($dataEnemies[eId].meta.DBS)}
    if (this.isStateAffected(stateId) && stateId === BSID ) {
this._sh = this._mSh
    }
GBRS.call(this,stateId)
};
})
Copy this in a text file name it whatever, save as a .js import in your project and see if it does the trick. Just put it below my plugin.
I'm rusty, but I'm like 95% sure that when states expire they get removed by calling that function so this should work.
 

Archlvt

Veteran
Veteran
Joined
Mar 8, 2019
Messages
44
Reaction score
4
First Language
English
Primarily Uses
RMMV
**Edit** So, I managed to get BuffsStatesCore working correctly, turns out I'm a DUMMY and just had it named BuffStatesCore instead of BuffsStatesCore. Neither the original shield replenish notetag nor the new code are working however. Thought for sure this would have fixed it.

Unfortunately it didn't work :( I put state 33 (my break state) into BSID as instructed, no change from before. Your efforts are hugely appreciated though.
 
Last edited:

Archlvt

Veteran
Veteran
Joined
Mar 8, 2019
Messages
44
Reaction score
4
First Language
English
Primarily Uses
RMMV
Please delete this single post. I posted for help but quickly figured it out and can't figure out how to delete my posts.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

So ms store had an idea to nuke the the entire app when the file integrity is slightly broken.
Im on another months long scripting high. I wonder if I can go SSJS3?

Version Fille in english is now complete!
Download the game on itch.io:
Talk about it here: https://forums.rpgmakerweb.com/index.php?threads/120802/

Enjoy and share!
3am me was like.... Hey buddy, what if I told you, where we're going we don't need events? :LZSwink:
5pm me is like.... Was 3am me onto something? No! Must work on actual gameplay! Rabbit hole bad! :kaoback:
I'm thinking of having a scavenger-based way to learn advanced skills in my first game, and use the work I did for figuring out a skill grid/maze instead for an optional dungeon in the game.

Forum statistics

Threads
98,037
Messages
948,723
Members
129,292
Latest member
zenmai
Top