Trying to make an ability or item require usage of multiple other abilities

SciWriter

Villager
Member
Joined
Oct 19, 2020
Messages
24
Reaction score
3
First Language
English
Primarily Uses
RMMV
Title makes it sound a bit confusing, but this is what I am trying to do.

My game has classes, and it works on a tier system. Once you used abilities from one class a certain amount of times. It unlocks a new class.

My problem is, some classes need the usage of specific attacks to unlock. Most classes any ability from a lower tier class will add to the variable, until the new class in unlocked.

However some classes need two variables to increase, before it can be unlocked.

For Example: Class 1 must use a Fire Spell x number of times, Class 2 must use a physical attack skill x number of times. Class 3 will only unlock when both skills have reached the necessary number of uses.

The problem I have is if I create 1 variable to unlock the new class, it is unlocking when either one of the necessary skills reaches it's usage requirement, so I need to create two separate variables, one for each skill and both have to be correct to unlock the new class, but I can't figure out how to make one event require two separate variables to activate.

I hope that makes sense. Any help would be appreciated.

Thank You;
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,838
Reaction score
7,897
First Language
German
Primarily Uses
RMMV
the solution depends on what you're using to activate those classes, so a screenshot of whatever it is would help.

if you're talking about event conditions, then the second variable should be checked with conditional branches - but how exactly again depends on how your class system works. Are you using one of the class plugins or did you event that or what?
 

SciWriter

Villager
Member
Joined
Oct 19, 2020
Messages
24
Reaction score
3
First Language
English
Primarily Uses
RMMV
the solution depends on what you're using to activate those classes, so a screenshot of whatever it is would help.

if you're talking about event conditions, then the second variable should be checked with conditional branches - but how exactly again depends on how your class system works. Are you using one of the class plugins or did you event that or what?
I am executing the class changes with an item. The variables meeting the correct condition executes and event that gives you the item, that is used to change the class.

I think I figured out how to make it work though. If I use a Conditional Branch to execute an IF/Else statement. I'm thinking I can have either skill execute a common event once it reaches the necessary uses. This event would check what the other skills variable is currently at. If the usage number is to low it would execute the else statement, which doesn't do anything. However If the usage number is higher than or equal to the required usage. The IF statement would than execute the event, that gives me the item. That allows me to change the class.

Do you think that would work?

Thank You.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,838
Reaction score
7,897
First Language
German
Primarily Uses
RMMV
it should work if done correctly, but your descriptions sounds as if you're tring to make it more complex than needed - I would have everything in one event. But again without some screenshots of how your events and counting works I can't really judge if there are better ways.
 

SciWriter

Villager
Member
Joined
Oct 19, 2020
Messages
24
Reaction score
3
First Language
English
Primarily Uses
RMMV
Thank You for replying. I tried it the way I described above, and I did get it to work that way. However I realized by doing it the way I did. That I could do it with one event, so I tried it a different way, using one event, and I got it to work that way as well.

Thank You;
 

Latest Threads

Latest Posts

Latest Profile Posts


When you thought you'd be finished with the grid, and spend ~8-9 hours on an arrow. How is this more difficult to than player movement?

Still some bugs hiding in there, but it's nearly complete.

I'm having it strictly follow the path a user draws, because there will be booby trap and other similar mechanics where you want to avoid specific cells.
I feel like banging my head against a wall every time I want to find that post that shows all the plugin header codes. Then I think "next time I find it, I'm going to bookmark it". Then I think "wait a minute ... maybe I bookmarked it last time because it took me so long to find it". Check bookmarks, and there it is :)
... a few of my main characters standing around doing nothing lol. I mostly wanted to see them together on screen.

Forum statistics

Threads
107,824
Messages
1,032,449
Members
139,975
Latest member
Lucimountfort
Top