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,870
Reaction score
14,989
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,709
Reaction score
2,818
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,709
Reaction score
2,818
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

would i get in trouble if i didn't take out the computer icons on my fake computer screen i had Discord, Messanger, and rpg maker up
Auto-Adjust Text Outline, Run Common Events on Transfer | RPG Maker News #111

I sweep the floor. My brother, "You didn't do a good job. There are dust bunnies everywhere." He sweeps the floor weeks later. "I just swept. Why are there dust bunnies everywhere?" Me," Guess you didn't do a good enough job."
Today, I tortured my internet by downloading 20 files at once and then I played a guessing game as to which would finish their download first :kaojoy:
Oh god, just watched HawkZombie's stream of my game and realised that *none* of the branching scenes work properly. One has no character graphic, one soft locks due to a passability issue, and one doesn't have its autorun set to the right trigger. I've got first prize in the bag, baby.

Forum statistics

Threads
113,791
Messages
1,077,505
Members
147,836
Latest member
egekaia
Top