Looking for a way to set Custom use Conditions in MV

D-D-D-Dan

Veteran
Veteran
Joined
Mar 30, 2019
Messages
56
Reaction score
5
First Language
English
Primarily Uses
RMMV
Good day everyone im here in search of people who are most likely smarter than I am.
I have tried searching for my problem and tried solving it myself to no avail.


I have been searching for a way to set custom use Conditions. I have tried yanfly's plugin for item requirements
but either im missing something or it just does not work for my purpose.


What im trying to achieve is to make items usable by a specific class to learn new skills.
Like a Mage NPC that sells spellbooks. ( I know how to make the Items to teach the skills)
I found out how to restrict items to specific Actors but not specific class.
This would be a worst case scenario option. But ton of work as i would have to make a
common event for every Actor + every possible class for every actor and a state for every skill.
Which would mean If i have 3 classes and 3 actors and 3 skills per class i would need 9 common events per Actor
and thats only using 3 classes with 3 skills.



What i want is to set a restriction on a Item

For example:

White Mage ClassID 1


Item:
Scroll of Heal 1
Contains the knowledge of the Heal 1 spell.


Notetag:
<Enable Requirements>
ClassID: 1
</Enable Requirements>




So you cant use the Item if you are lets say a Archer.


I found a plugin from Himeworks that does exactly what i want but its for Ace not MV.
There was talk about converting it to MV but the last update on that was in early 2016
so i guess its not happening.

Anyone know of a quick elegent way of doing this without having to make a gazillion common events?
Or am i really as ignorant and dumb as i think and im going about this entirely the wrong way?
 
Last edited:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
How do you "use" the item? The only way a specific actor can use an item is if you select it when it's his/her turn in battle. From the menu, there are no "users" of items.

Or are you setting the item up to have a 'target' as One Ally and that's where you want to add the extra restrictions?
 

D-D-D-Dan

Veteran
Veteran
Joined
Mar 30, 2019
Messages
56
Reaction score
5
First Language
English
Primarily Uses
RMMV
The Item itself is not ment to be used in battle. Its a item that adds a skill to the Actor that uses it.
Currently i can use the Scroll of Heal 1 that i made to teach a Actor the spell Heal but anyone can use it
including Actors that are a Class that dont have access to magic type skills. I want to prevent that from beeing possible.

So yes I want to add a extra restriction to only target specific classes.
I can set it up via common events to target Actors as stated above but i havent
found a way to target specific classes
 

Attachments

Last edited:

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,087
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
:kaoswt2: Maybe I've missed something, but I think Yanfly's Item Requirements plugin should be able to do this with no problems. It does require Yanfly's Item Core to work, though. Have you tried:
Code:
<Enable Requirements>
Class: 1
</Enable Requirements>
 

D-D-D-Dan

Veteran
Veteran
Joined
Mar 30, 2019
Messages
56
Reaction score
5
First Language
English
Primarily Uses
RMMV
I have, yes, but it doesnt seem to work.
Code:
<Enable Requirements>
Class: 2
</Enable Requirements>
and now none of my Actors/Classes can use the Item :kaoswt2:

Is it perhaps actualy working and i need to set a some notetag in the class to
be able to learn the spell? If yes what would that be?

<Edit>
I tested the item in combat and i can use the item to learn
the Skill so it kinda works. Any idea how to get it to work ouside of combat? xD

<Edit 2>
It is not ideal but using the combination of the settings i used and this plugin
https://forums.rpgmakerweb.com/index.php?threads/class-restricted-items.72359/
it seems to be working. Only problem would probably be if you have 2 of the same class in the group
and you chose the wrong user..
 

Attachments

Last edited:

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
554
Reaction score
229
First Language
english
Primarily Uses
RMMV
you can simplify the common event option so its just 1 event per skill.
item adds a Learn state and then runs common event for that skill

common event:
check if actor 1 has Learn state
-yes > remove state and check if actor 1 is class
--yes > check if actor 1 knows the skill already
---yes > use change item to add book back into inventory with a message pop up saying "know the skill already"
---no > actor 1 learns the skill
--no (to the class check) > use change item to return book to items with message "not the right class"

in the same common event repeat everything above for each actor

edit: items dont get used by specific actors outside of battle so a use requirment wouldnt work. ur looking for some kind of "target is class" requirment which i dont think exists
 

D-D-D-Dan

Veteran
Veteran
Joined
Mar 30, 2019
Messages
56
Reaction score
5
First Language
English
Primarily Uses
RMMV
I'll check your option
 

TWings

The Dragon Whisperer
Veteran
Joined
Jul 26, 2017
Messages
527
Reaction score
860
First Language
French
Primarily Uses
RMMV
You could probably do it by checking the targeted actor's class with a Conditionnal script check in your CE, but I don't know the exact functions to do that.
 

D-D-D-Dan

Veteran
Veteran
Joined
Mar 30, 2019
Messages
56
Reaction score
5
First Language
English
Primarily Uses
RMMV
So my above mentioned way works.
Setting a item to teach a skill and set scope to user and using the plugin from the other thread. Setting the scope to user is Vital. If you set it to ally then only the specified class can use the item but can use it on whom ever you choose. By setting it to user and specified class only the actor that is that class can use the item.

Continuum's plugin:
https://drive.google.com/open?id=0BwFAbublt0QtT1VGbU4tbEdYMW8
 

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

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top