How to put skill name into a string.

Poppie360

chocobo wrangler
Veteran
Joined
Feb 28, 2018
Messages
178
Reaction score
54
First Language
English
Primarily Uses
RMMV
so what i have been trying to do is something along the lines of
$gameVariables.setValue(1, $gameActors.actor(1).skill(1))
what i am trying to do is set the variable to the name of the first skill that the actor has learned. i haven't been able to find anything regarding how to do it, does anyone knows how to do that?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,124
Reaction score
10,634
First Language
Czech
Primarily Uses
RMMV
Code:
let skillname = $dataSkills[$gameActors.actor(1)._skills[1]].name;
$gameVariables.setValue(1, skillname);
 

Poppie360

chocobo wrangler
Veteran
Joined
Feb 28, 2018
Messages
178
Reaction score
54
First Language
English
Primarily Uses
RMMV
Code:
let skillname = $dataSkills[$gameActors.actor(1)._skills[1]].name;
$gameVariables.setValue(1, skillname);
huh, thanks, this is exactly what i am looking for.
 

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

Latest Threads

Latest Profile Posts



I've been experimenting with improved memory management again, which allowed me to include items to increase player path length. These are both 44 grid spaces long, and stable. :LZSexcite:
I FINALLY DID IT! 5 years making my very first game and I just officially released it on STEAM..... OMG..... I can say I finished a game! The feelings!!!!!
Stream will be live shortly! I am going to be playing some Among Us! Feel free to drop by!
Ami
tv program always get the ratings (it's the reason why drama series has 1000+ episode),also full and nonsense of censorship (weird blur, a scene getting cut because the unconvenient viewer,but it unconvenient to me either. you never see what the original is)

i know the reason is to take cover the viewer from the negative thing,but i just laughing and mocking of them that they're always suck :guffaw:
Star Chart Idea - Just something I am working on.

Forum statistics

Threads
104,460
Messages
1,006,440
Members
135,966
Latest member
Kleik
Top