Checking actor for variable, then increasing variable depending on actor.

Crysillion

Veteran
Veteran
Joined
Sep 25, 2014
Messages
138
Reaction score
20
Primarily Uses
I'm using Yanfly's Skill Learn system and ended up converting it to a kind of stat point system, so they're essentially skills you can learn repeatedly, which enhance the stats of the actor.


I'm trying to tackle an issue where there's no visual indicator to show the player how many points they've invested in a particular stat for that actor.


Looking into it, I see that Yanfly's script does allow this to be a "thing", but I've no idea how I would go about actually achieving it.


  <Learn Cost Eval>
   code
   code
  </Learn Cost Eval>
  For those who know JavaScript, you can have custom actions be performed
  after learning the skill through the learn skill menu.
  <Learn Custom Text>
   text
   text
  </Learn Custom Text>
  This will be the custom text shown underneath all the main costs. You can
  use text codes for this.


I have an idea in mind as to how to go about getting what I want, but I don't know how to actually code it in.


I know it'll be something where it checks the actor, and if actor = X then raise variable Y, and then in the "Learn Custom Text" field, have it display "variable Points Spent into Stat", which also checks for the actor so that the correct number will be displayed.


So, it's a lot of checking to see which actor is doing it, and increasing a variable by 1 accordingly, and then displaying a variable depending on the actor.


Any help would be appreciated.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Yanfly usually shows how to use all the features of his plugins in his videos.  Did you watch the video to see where this part is featured?
 

Crysillion

Veteran
Veteran
Joined
Sep 25, 2014
Messages
138
Reaction score
20
Primarily Uses
Yanfly usually shows how to use all the features of his plugins in his videos.  Did you watch the video to see where this part is featured?


This is a Lunatic part of the plugin, which is essentially "If you know JavaScript......", which I don't, so I'm trying to figure it out here.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top