RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Perks

0 Members and 1 Guest are viewing this topic.

*****
Rep:
Level 27
Mr. Trivel
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 for:



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: [Select]
<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:
Spoiler for:
Code: [Select]
<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 Edit: February 15, 2016, 08:15:14 AM by Glasses »