Using Custom State Notetags

Status
Not open for further replies.

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
399
Reaction score
221
First Language
English
Primarily Uses
RMMV
I'm working on a map at the moment where I'd like to have a leader event that when battled has a passive state that increases various parameters based on the number of other enemy events that are active on the map.

ie. 5 enemies on map 40% stat boost
4 enemies on map 30% stat boost
and so

Ideally I'd have these set up using custom note tags within the passive state, but I can't seem to find anything that will let me use longer evaluations. Yanfly's Base Parameter Control offer's a one line note tag for adjusting parameter rate but I feel this is probably going to be quite restrictive. Does anyone know of any plugin that would allow me to evaluate larger code using state notetags?

If anyone's got a suggestion on how I might go about this alternatively I'd be glad to hear it.

Note: There's potential I may be using up to 15 other enemy events. I'd like to avoid having to make 15 different states.

 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I don't know if this is what you're looking for, but I wrote a Dynamic Traits & Effects plugin that allows you to change stats as you play. You could potentially have a parallel process event on each map that sets a variable to the number of enemies on that map, then calls a common event, then erases itself. The common event could remove the stats from the previous map, then set new stats by potentially using the Dynamic Traits. Using a common event means you don't have to repeat the instructions for each map (in case you want to change something, you're only changing in one place). The only thing that has to be on each map is the bit that will be different for each - the setting of the number of enemies.

I don't know if this is compatible with Yanfly's plugins - if you try it, first try it with my plugin below all of Yanfly's. If it doesn't work, try moving it above them all instead. If it still doesn't work, you may need a compatibility patch. That is, if you even want to give this a go - you might find something easier/better.
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
399
Reaction score
221
First Language
English
Primarily Uses
RMMV
Thanks for this @Shaz . I'm actually already using your dynamic traits plugin, albeit for something else, so I've already got it working (seems to be playing nicely with my other plugins as well). I had considered using this if I couldn't find a way to use notetags for the states, but after your description I think this may actually be the better solution.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top