@Servidion : Essentially, yes. Also similar to more tabletop based systems like in Baldur's Gate or Pillars of Eternity, some spells are replenished on resting and some are only per encounter, etc. I just need help with finagling this to replenish resources with like, a dynamic value on a large scale? If it's possible...
NeMV - State Resources
JS Plugin Releases (RMMV)If you're looking to have a set amount of charges per spell, then you may want to look into this plugin:
http://yanfly.moe/2016/01/09/yep-56-limited-skill-uses/
If it's a matter of having, essentially, a smaller mana pool in the form of state resources you'll have to use this script command:
http://yanfly.moe/2016/01/09/yep-56-limited-skill-uses/
If it's a matter of having, essentially, a smaller mana pool in the form of state resources you'll have to use this script command:
$gameParty.members().forEach(function(member){member.setSR(123, 456);});
Just replace the "123" with the state ID of your resource, and the "456" with the amount you want replenished.
Just replace the "123" with the state ID of your resource, and the "456" with the amount you want replenished.
@tevak, after looking over what you have there, I don't see anything that would be wrong with your CE, but I can't see the entire CE, so I can't know that for sure. If there's any way you could send me your \data\CommonEvents.json file, I can look into it further. As you've mentioned, however, it was working in the console, so there's obviously something that's off about the CE. I know when he was trying to test for you before, @Servidion made an event (standard; not a CE), and it worked there. Let me poke around your CE and I'll see what I can find out for you.
Oh my gosh I'm sorry for the confusion, I was pasting it in the wrong place. The line works perfectly. Thank you so much for the help @Servidion and @Nekoyoubi!
Awesome. Glad it worked out! 😀
Hi, I'm trying to use this plugin to build a state that stacks with every basic attack command, up to five times.
In my state (ID 21) I wrote this :
And this in my Attack skill :
When I try it, AutoPassive is working but that's all. The number doesn't increase and nothing seems to be happening.
In my state (ID 21) I wrote this :
And this in my Attack skill :
When I try it, AutoPassive is working but that's all. The number doesn't increase and nothing seems to be happening.
Are you doing it in battle-test or in-game?
This was what I tested in my debug room and it all worked:
1 - Tested the state itself being increased by the default attack. Worked.
2 - Tested the state being activated by a switch. Had to swap classes once (out of combat) for the state to appear, but it worked.
A few posts above yours there was a gentleman that was having a similar issue with the state not appearing. His issue was because he was using the battle test instead of trying it right in-game. I have a debug room full of events that help me test mechanics.
This was what I tested in my debug room and it all worked:
1 - Tested the state itself being increased by the default attack. Worked.
2 - Tested the state being activated by a switch. Had to swap classes once (out of combat) for the state to appear, but it worked.
A few posts above yours there was a gentleman that was having a similar issue with the state not appearing. His issue was because he was using the battle test instead of trying it right in-game. I have a debug room full of events that help me test mechanics.
Yes, I did it directly in-game, but I found why it didn't work : I was using a plugin to skip my title on PlayTest. For some reason, they don't work together (maybe it flags in-game battle as battle-test).
Anyway, thanks for your quick reply. 🙂
Anyway, thanks for your quick reply. 🙂
NP. Glad you found the issue. 🙂
Hi, I'm having an error where with state resources enabled, state counters for non-resource states don't show up except for turn duration.
@tevak, if this is with the newest version of State Resources, then I may have missed something when I changed the visual implementation to better align with Yanfly's newly added counters. If the state is not a resource, it should still use the default counters; otherwise, it will overwrite the counters for resource values. Is this what you're seeing, or is it simply not honoring counters in any case?
Got it working...doesn't seem to work at all in battle test troops for some reason. I have a question...Is there a way for me to use a skill that hits multiple times based on how many bullets I currently have in my state?
@moldy, I'm not sure about the actions that hit based on a number specified in the editor, but I'm fairly certain an action could be built to simulate those hits based on that resource number, yes.
@Nekoyoubi it's not showing counters in any case for non resources
update:
@Nekoyoubi i tried going back to the 1.0 of state resources and the problem remains. it might be an incompatibility with yanfly after an update of his?
update:
@Nekoyoubi i tried going back to the 1.0 of state resources and the problem remains. it might be an incompatibility with yanfly after an update of his?
It dont work with new yanfly updates i think. My states do not count up since a new one.
My gunslinger cannot reload and shoot anymore

My gunslinger cannot reload and shoot anymore

@tevak & @styx92, could you guys tell me if you're using YEP - Battle Status Window? I've been looking back into what issues may have arisen from updates, and while there was a valid issue with Class TP Rename after some RMMV base script changes (that should now be fixed), the only issue with State Resources that I could find seemed to be something with the Battle Status Window v1.08 feature "State Icon Row", where I needed to change it from the default (1; I changed it to 2), run the game, then change it back and everything works just fine for me.
Im Sorry, i have changed the plugin and use now another methode to get the gunslinger to work :/
Hi, I'd like to know how I can store my custom resource pool chi into a variable so that the amount of chi a character has after a battle is recorded and stored so that when you start a new battle it uses that stored value to show that you still have the same amount of chi you did in the last battle. Basically I just want it to mimic HP and MP.
1. Create a state. Lets say its id 12. Call it Chi. No restrictions. Untick remove at battle end / remove by restriction
2. In the notetag box, add: <Resource 0, 100, Chi> 0 means the player starts with 0 Chi and Max Chi value is 100 (change to your liking)
3. Apply this state to your players. I use Yanfly Autopassivestates to do this (you can use whatever method you want to)
4. Using Yanfly's custom requirements for skills, for each skill using Chi, you will need to add the following to the skill notebox:
<Custom Requirement>
if (user.getSR(12) > 5) {
value = true;
} else {
value = false;
}
</Custom Requirement>
//If state resource id 12 of user is above 5, this skill is usable
<Custom Execution>
user.adjustSR(12) -= 5;
</Custom Execution>
//user loses 5 Chi when skill is used
Requires Yanfly State core / skill core
Original thread: https://forums.rpgmakerweb.com/threads/nemv-state-resources.61070/
