- Joined
- Jan 9, 2018
- Messages
- 138
- Reaction score
- 11
- First Language
- English
- Primarily Uses
- RMMV
Hi everyone,
So I'm using RPG Maker MV and both Yanfly's Class Core and Subclass plugins. I don't want players to be able to change classes from a menu and am only allowing players to ever gain one subclass. There are only three primary classes in the game so I tried creating an item (Wiz'Ma Rune) that would allow someone with the primary class of Mage to become the subclass wizard.
First I created a temporary state to apply to a mage on use (wizard state).
Then I set the item to call a common event (Learn Wizard).
Within the common event I set conditional branches to check if the state was applied to each mage in my game. I also set it to check if the subclass of the mage was peasant. If it was I used the plugin command to change the character's subclass from peasant to wizard. I think this is where I set myself up for failure. At first this worked but you were able to use the item on a mage that already had a subclass and that's when I added the peasant class. I also tried using yanfly's subclass restriction note tags on the item instead but it wouldn't work 100% of the time. So I tried a work around using more conditional branches.
I set the branches to check for the state, then check for each subclass including Peasant. Each subclass other than peasant has a message displayed that you already have a subclass. The peasant branch should just alter your subclass, remove the wizard state, and remove one Wiz'ma Rune. So far I am only using If branches and this is the first time I've used so many conditional branches at once. Should I use else branches also? Am I even using the If branches correct? Maybe someone can help me with the note tags instead? Any help will greatly be appreciated!
So I'm using RPG Maker MV and both Yanfly's Class Core and Subclass plugins. I don't want players to be able to change classes from a menu and am only allowing players to ever gain one subclass. There are only three primary classes in the game so I tried creating an item (Wiz'Ma Rune) that would allow someone with the primary class of Mage to become the subclass wizard.
First I created a temporary state to apply to a mage on use (wizard state).
Then I set the item to call a common event (Learn Wizard).
Within the common event I set conditional branches to check if the state was applied to each mage in my game. I also set it to check if the subclass of the mage was peasant. If it was I used the plugin command to change the character's subclass from peasant to wizard. I think this is where I set myself up for failure. At first this worked but you were able to use the item on a mage that already had a subclass and that's when I added the peasant class. I also tried using yanfly's subclass restriction note tags on the item instead but it wouldn't work 100% of the time. So I tried a work around using more conditional branches.
I set the branches to check for the state, then check for each subclass including Peasant. Each subclass other than peasant has a message displayed that you already have a subclass. The peasant branch should just alter your subclass, remove the wizard state, and remove one Wiz'ma Rune. So far I am only using If branches and this is the first time I've used so many conditional branches at once. Should I use else branches also? Am I even using the If branches correct? Maybe someone can help me with the note tags instead? Any help will greatly be appreciated!
Attachments
-
218.7 KB Views: 17
-
224.9 KB Views: 11
-
183.5 KB Views: 11
-
214.8 KB Views: 8
-
175 KB Views: 9
