Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
461
First Language
Lithuanian
Primarily Uses
Name: Perks


Version: 1.0


Author: Mr. Trivel


Created: 2015-11-28


 


What does it do?


It's a perk system. Actors get perk points on specific levels when leveling up or on every level up.


Perk points can be spent in Perks Scene which can be accessed from menu.


 


Screenshots:





 

Spoiler






 

 


How to use?


Plugin Commands:


AddPerkPoints [POINTS] [ACTOR_ID] - Adds perk points to actor via plugin call. E.g. AddPerkPoints 999 5


ChangePerksCommand [TRUE/FALSE] - Changes whether Perks command locked or unlocked in menu.


 


How to create perks:


Place following data to Actor note field:



Code:
<perk>
<name: [PERKNAME]>
<requirements>
level: [LEVEL]
atk: [ATK]
def: [DEF]
matk: [MATK]
mdef: [MDEF]
agi: [AGI]
luk: [LUK]
perk: [NAME]
switch: [ID] [ON/OFF]
variable: [ID] [> >= < <= == !=] [VALUE]
</requirements>
<rewards>
state: [ID]
</rewards>
<description>
[TEXT]
</description>
</perk>



It just looks like a lot. Unnecessary requirements can be omitted.


<perk> - Start of the perk data.


</perk> - End of the perk data.


<name: [PERKNAME]> - Name of the perk. E.g. <name: Destroyer of Glasses>


<requirements> - Start of requirements for perk data.


atk/def/matk/mdef/agi/luk - stats required


level - level required


switch - is switch with ID ON or OFF


variable - how is variable of ID compared to VALUE (> - more than, >= more than or equal to, < less than, <= - less than or equal to, == - equal to, != - not equal to)


</requirements> - End of requirements for perk data.


<rewards> - Start of rewards data


state: [ID] - when perk is unlocked player gains permanent traits from the state of ID


</rewards> - Ends of rewards data


<description> - Description begins here


TEXT - can be multiline, can be in single line. Does text wrapping automatically.


</description> - Description ends


 


Examples of perks:


Code:
<perk>
<name: Glasses Apprentice>
<requirements>
matk: 2
</requirements>
<rewards>
state: 11
commonEvent: 4
</rewards>
<description>
Glasses.
</description>
</perk>

<perk>
<name: Glasses Master>
<requirements>
level: 10
atk: 5
def: 5
matk: 5
mdef: 5
agi: 5
luk: 5
perk: Glasses Apprentice
switch: 77 ON
variable: 77 < 76
</requirements>
<rewards>
state: 11
commonEvent: 4
</rewards>
<description>
Glasses Mastery.
Enough said.
</description>
</perk>

<perk>
<name: Mana Circulation>
<requirements>
matk: 2
</requirements>
<rewards>
state: 11
</rewards>
<description>
You have amazing ability to circulate mana around you. Gaining increase mana regeneration and mana compatibility. The spirits you summon deal more damage.
</description>
</perk>

<perk>
<name: Fire Spiritism>
<requirements>
matk: 5
luk: 2
</requirements>
<rewards>
state: 11
</rewards>
<description>
Fire spirits you summon like you more. You like them more, too.
Such a nice person.
</description>
</perk>

<perk>
<name: Mana Builder>
<requirements>
atk: 5
matk: 7
</requirements>
<rewards>
state: 11
</rewards>
<description>
Some people build things out of wordly materials. You.. you build things out of non wordly materials.
</description>
</perk>

<perk>
<name: Mana Master>
<requirements>
level: 25
matk: 15
perk: Mana Builder
</requirements>
<rewards>
state: 11
</rewards>
<description>
You are a master of mana. Mana is you. You is mana.
</description>
</perk>


 


Plugin: <Link: Github>


How to download Script. Click the link above, there will be a button named Raw, press Right Click -> Save As.


 


Terms of Use:


Don't remove the header or claim that you wrote this plugin.


Credit Mr. Trivel if using this plugin in your project.


Free for non-commercial projects.


For commercial use contact Mr. Trivel.
 
Last edited by a moderator:

Fernyfer775

Veteran
Veteran
Joined
Oct 6, 2013
Messages
1,312
Reaction score
814
First Language
English
Ohhhhh...this looks fancy. When you unlock a perk, is it a permanent boost and do they all stack, or do you unlock them and choose which one you can equip at a time?
 

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
461
First Language
Lithuanian
Primarily Uses
@Fernyfer775,

It's a permanent boost so all of them stack.
 

Otakuhn

Veteran
Veteran
Joined
Aug 13, 2015
Messages
93
Reaction score
4
First Language
English
Primarily Uses
Perk Images would be a nice feature
 

gokuby

Veteran
Veteran
Joined
Nov 2, 2015
Messages
96
Reaction score
14
First Language
German
Primarily Uses
N/A
Nice, I like it, have tried to do this with "Auto States" and "Skill Learn", but it got a little messy, so I really appreciate this one.

Also, the layout looks smooth.

Seems like you need to place it above everything else, which adds new tabs to the menue, since they dissappear otherwise, but there's no problem with that ;)

Would have a request tho, maybe adding different costs?

Perk X costs 1 perk point and perk Y costs 3 perk points.
 

Angius

Villager
Member
Joined
Apr 3, 2012
Messages
19
Reaction score
2
First Language
Polish
Primarily Uses
It looks like quite a lot to be placed in actors' notes field... WOuldn't it be better to read those perks from, say, XML files? For example harold.xml listing all perks for Harold, katie.xml listing perks for Katie, and so on, and so forth?
 

gamerxp

Veteran
Veteran
Joined
Oct 28, 2015
Messages
30
Reaction score
5
First Language
Russian
Primarily Uses
Pretty nice system. Few suggestions though:

- I also think it will be better to move it somewhere from notetags if possible. As far as making a small utility to generate those XMLs or somehow using states/skills themselves to privode info about perks - so actor will just have to specify which perks to use by ids, and all info will be read from perks themselves.

- A way to open perk learn window not from menu, but from events?

- A way to hide perks you can't learn yet?

- A way to manually learn a perk by plugin command?
 

InBlast

The Mad Hamster
Veteran
Joined
Nov 2, 2015
Messages
288
Reaction score
88
First Language
French
Hi !  This plugin seems nice !

Could you add a way to activate a perk from events ? 

Also, a way to hide the access to the perk menu would be nice.

In fact, your plugin is nearly what i was searching for, i i would like to use a talent tree. I already made it, so if your perks could be activated by events, it would be really nice !
 

Mega Man Volnutt

Mega Man Volnutt
Veteran
Joined
Dec 7, 2015
Messages
397
Reaction score
123
First Language
English
Primarily Uses
N/A
Ooooooh. Very Fallout like. I'll try this out.
 

Mattchaby

Villager
Member
Joined
Nov 19, 2015
Messages
15
Reaction score
3
First Language
French
Hello nice one!

Is there a way to check in events if a character has learned a specific perk?

For example there would be a perk allowing to get more money when looting a body or a chest so the code needs to check if the player has learned the "Gold Digger" perk. 

Thanks!
 

Luminous

Veteran
Veteran
Joined
May 24, 2012
Messages
120
Reaction score
41
Hi, I see you include common event at the reward section. The question is that possible to add the bonus stats via commont event? Like change variable value. What the funcion of common event reward? Sorry I ask this because I'm curious you not listed common event at the help page.
 

HasdrubalBarca

Veteran
Veteran
Joined
Feb 4, 2015
Messages
160
Reaction score
56
First Language
English
Primarily Uses
Hello, this is a nice plugin. Just having problems with it. For example I add levels through events and it doesn't add any perk points to the character. I have set it at 0 for points per level. I also tried adding points with script as said in the help file and I get an error. Lastly, I tried to add to make common events work, I added a dialogue to test it, and it doesn't fire. Any help?
 

rambojeezus

Warper
Member
Joined
Apr 12, 2016
Messages
1
Reaction score
0
First Language
English
Primarily Uses
Hey, thanks for the plugin. I'm not sure if you still support this plugin, but I've noticed a strange bug. If you have a state that adds a skill, and you have an event that checks for that skill in a conditional branch, it acts like the skill hasn't been taught. It's quite odd, but not too big of a deal. If anyone else comes across this problem, a potential solution is to have the state add a skill that teaches the skill you need. Thought you might want to be aware of this in case you decide to update.
 

Tribaleyes

Villager
Member
Joined
Sep 13, 2015
Messages
10
Reaction score
2
First Language
English
Primarily Uses
How do I put this in Yanfly Menu Manager?


Name: "Perks"


Symbol: perks


Show: true


Enabled: $gameSwitches.value(200)
Main Bind: this.commandPersonal.bind(this)
Actor Bind: SceneManager.push(Scene_Perks)
 
Joined
Sep 29, 2016
Messages
4
Reaction score
1
First Language
English
Primarily Uses
Is it possible to make the perks a choice? Like an offensive monk versus a counter-offensive?
 

Dekay

Warper
Member
Joined
Jul 7, 2017
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
I love this plugin. Unfortunately it has stopped awarding perk points on level up for some reason. I created an event to manually add perk points and that works fine.

I am using a bunch of Yanfly's plugins. I didn't keep track of which one made this plugin stop awarding perk points. I guess I will have to go down the list and try to troubleshoot it.

Thank you for this plugin. I will report my findings when I get finished testing.
 
Joined
Sep 29, 2016
Messages
4
Reaction score
1
First Language
English
Primarily Uses
Call me an idiot, but I have no idea where I should be building the perk list. Do I build it inside the plugin, or in the note section of the each individual actor?
 

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

Latest Threads

Latest Profile Posts

Writing out an idea for the No Travel Game Jam. I have a general plot and challenge written out, it's just a matter of filling the rest in and making it interesting.
A definite difficult time right now. How is everyone doing during this pandemic? I already have seen furloughs and layoffs.
Hollow 1977 wrote on Archeia's profile.
Hope you and your family are doing well during this difficult time. :)
My elderly neighbor whom I've been buying groceries for just got carried out of his home on a stretcher by guys with hazmat suits. Considering I've been his only point of contact for the past month it's probably safe to say my boss was right to tell me to stay home once I developed a mild cough after all.
Damn. All these new features to the forums. Takes some getting used to.

Forum statistics

Threads
95,642
Messages
930,674
Members
125,963
Latest member
highchloride
Top