(Not quite) Simple JS script call.

Soulrender

Veteran
Veteran
Joined
Jan 12, 2019
Messages
380
Reaction score
226
First Language
Poland
Primarily Uses
RMMV
Because Yanfly wants 1$ for plugin that allows player to eval JS in message box so I decided to write my own alternative for it and I was successful, now I want to use that function to write my own aftermath results plugin and so far I managed to implement in it:
obtained gold
obtained exp
obtained items

What It lacks is when player/party member(s) is(are) leveling up to show learned skills. Is there any kind of nice and script call to display message like this:

Player A gained Level X:
- Skill A was learned

Player B gained Level Y:
- Skill B was learned
- Skill C was learned

etc.
 

standardplayer

Keeper of Kitties
Veteran
Joined
Apr 6, 2016
Messages
527
Reaction score
2,395
First Language
English
Primarily Uses
N/A
It's cheap, and this depends on how you're pulling it off, but to capture the skill id, you could alias Game_Actor.prototype.learnSkill(id)

And inside of it, you could get the name of the skill learned by using
$dataSkills[id].name

That would give you access to the name of the skill at the time it's being gained.
Inside of there, you could add protocol for printing the skill message
 

Soulrender

Veteran
Veteran
Joined
Jan 12, 2019
Messages
380
Reaction score
226
First Language
Poland
Primarily Uses
RMMV
That's not quite what I needed, but you gave me idea to alter default skill learn system. It will take a while to make it, but on paper looks awesome, it's not new idea, but it worked in Gothic. ;]
 

TSR

The Northern Frog
Veteran
Joined
Nov 14, 2019
Messages
132
Reaction score
71
First Language
French
Primarily Uses
RMMV
Hi there! you could also play with the findNewSkills() method:
Code:
Exemple:

var lastSkills = this.skills(); //store actual skills of Game_Actor before Lv Up
this.levelUp(); //Leveling up
this.findNewSkills(lastSkills);  //return an array containing the new skill(s)

*this would refer to Game_Actor.prototype
Good luck!
 

Soulrender

Veteran
Veteran
Joined
Jan 12, 2019
Messages
380
Reaction score
226
First Language
Poland
Primarily Uses
RMMV
Thank you @TSR, but I skip this in aftermath, I make learning skills like in Gothic, with teacher through battles.
While I was playing with my daughter, youtube (like a magic) started a video about RPG Maker Games "Why it's hard to sell them". So I need a few days and rethink my game. (Not entire game, but some game mechanics).
 
  • Like
Reactions: TSR

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

Latest Threads

Latest Posts

Latest Profile Posts

You know, I sometimes ponder if working on the story and details is more necessary than the game itself. Its... technically work, just not direct.

Like for me specifically I never stop evolving the story based on what avenues I can approach in gameplay and then I get anxious thinking "hey good thing I thought about that now instead of later". Repeat ad nauseam.
World Of Final Fantasy Livestream~!
(Ft. Kaliga)
So my office building has 8 individually rented offices in it; 3 of which are social workers and 2 are marriage therapists... Unsurprisingly it always sound very angry out there. Glad I have my own private entrance. :LZSexcite: :thumbsup-right:
I wonder if there's ever been an art challenge that involves drawing faces from the generator.

Forum statistics

Threads
94,374
Messages
920,401
Members
124,143
Latest member
HotAndColdAF
Top