Jump to content

Recommended Posts

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:

b85250be19.png

 

 

3103ef774a.png

 

 

 

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:

 

<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:

 

 

<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.

Edited by Glasses

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted