Status
Not open for further replies.

Crossroadrpg

Villager
Member
Joined
May 19, 2021
Messages
21
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Is it possible to make items that are only usable in battle by specific classes. For instance, spell scrolls that would allow the 'wizard' class to cast spells in battle without using mana, and instead consuming the scroll?

I have search for this and all the topics that come up are related to people looking to make items that teach skills. This isn't exactly what I am looking for, as I really only need them to work in battle.

I have Visustella core, which states on the website under bug fixes.

"Unusable Battle Items​

If any party member is able to use an item in battle, then all party members are able to use said item, even if that party member is supposed to be unable to use that item. This is now changed so that battle items are checked on an individual basis and not on a party-wide basis."

Which leads me to believe that this is a core mechanic of the game, but I can't figure out how to do it.

Thanks in advance.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,891
Reaction score
14,994
First Language
English
Primarily Uses
RMMV
By default, any party member can use an item in battle. Sounds like VS changes that so you can set it up on an actor-by-actor basis - not sure about classes though.

I've moved this thread to Plugin Support. Thank you.

 

Crossroadrpg

Villager
Member
Joined
May 19, 2021
Messages
21
Reaction score
0
First Language
English
Primarily Uses
RMMZ
By actor would be absolutely fine for what I need. I just cant find how to do it.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,711
Reaction score
2,822
First Language
English
Primarily Uses
RMMZ
<JS Item Enable>
enabled = user._classId === <id of class that can use item>
</JS Item Enable>
 

Crossroadrpg

Villager
Member
Joined
May 19, 2021
Messages
21
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Ive never really tried to use javascript before. Do it put that in the notetag of the item or somewhere else?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,711
Reaction score
2,822
First Language
English
Primarily Uses
RMMZ
In the notetag, yeah. You have to be using VisuStella's Items and Equips Core for it to work.
 

Crossroadrpg

Villager
Member
Joined
May 19, 2021
Messages
21
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Worked perfectly. Thank you.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,077
Reaction score
8,913
First Language
English
Primarily Uses
RMMV

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.

Latest Threads

Latest Posts

Latest Profile Posts

Cause MP Damage instead of HP, Localization Plugin for Translation | RPG Maker News #112

Here in Fla were are seeing crazy covid spikes and some vaccinated getting bad infections. I had a mild fever on Thurs but it went down fast. How is everyone else doing. Hopefully you are all well. :)
Wish I was better at art, specifically that I was faster at it, bc this one NPC took Several Days to complete! It's gonna take So Extremely Long to do all of the art for my game, never mind writing it... Anyways, here's my gorgon, Hopernica Sthyxis!

57b88732c7abbcd84981dacf624a98495af61fcc.gifv
Idk if this is my ADHD or if it's a common problem. But I cant stay motivated for anything. I want to work on so many different things at once. Game dev, skateboarding, ranking up in League, playing OSRS, fitness, nutrition, relationships. It's like, where do I even begin?
Well. Looks like I need to redo the entire battle system in order to have the things I want in it. Also I'd like to say that console.log() is the greatest function in Javascript XD.

Forum statistics

Threads
113,819
Messages
1,077,707
Members
147,878
Latest member
a362264375
Top