Mega Man Volnutt

Mega Man Volnutt
Veteran
Joined
Dec 7, 2015
Messages
397
Reaction score
124
First Language
English
Primarily Uses
N/A
i guess the ignore means that it isn't possible. which is fine i guess.
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,376
Reaction score
1,781
First Language
EN
Primarily Uses
RMMZ
You waited only two hours, in the Learning JS forum of all places, before giving up? Might do well to remember these boards are international (timezones) and all assistance is provided by volunteers who have their own schedules etc. (Also, I believe you're supposed to wait a minimum of 72 hours before a bump.) :kaoswt2:

On top of that, your question is slightly vague. I think what you're asking is how to add "is action of skill type 1" to the action validity checks, right? In that case, here's the edit I'd try (untested):
Code:
if (user.canPaySkillCost(skill) && skill.stypeId === 1) {


Since this is in Learning JS, a brief explanation of how to get to that answer: the skill variable is a reference to the database object, thus has all the properties found in Skills.json, including stypeId ("skill type ID"). You can also cross-reference that with the code, e.g.
Code:
Game_Action.prototype.isMagicSkill = function() {
    if (this.isSkill()) {
        return $dataSystem.magicSkills.contains(this.item().stypeId);
    } else {
        return false;
    }
};
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,293
Reaction score
5,462
First Language
Dutch
Primarily Uses
RMXP

@Mega Man Volnutt , please do not bump your topic unless it has been 72 hours later since your last post. You can review our forum rules here. Thank you.

 

Latest Threads

Latest Posts

Latest Profile Posts

Ok, to prepare for the GMTK Game Jam, I'm trying to make a game with the theme "The Cat's out of the Bag" in about 48 hours. I'd make a forum post with a question, but I don't have the time!
Worked over a week on a new BGM, and I'm finally happy with it.

Here are some screenshots of the area it will be used in
EzLHppdVIAMY7DP


EzLHpqsVIAEZ7jt
#WIP Metal Tactics's TBS (2015 vs 2021)
VSt9pWc.png
ZXnpNYY.png
RPG Maker News #14 | Diffused Screen Effects, Unsellable Items, Ambient Synths, Adult Woman Set
If kids are going to be taught on computers and have access to the Internet, some basic knowledge of copyright should be a part of the grade school curriculum.

Forum statistics

Threads
110,513
Messages
1,053,870
Members
143,605
Latest member
Mangos_Bored
Top