Learn Condition Formulas
This script allows you to specify custom conditions that must be met in order to learn a skill or forget a skill
There are three types of conditions available
- Required conditions
- Learn conditions
- Forget conditions
Required conditions are conditions that must be met before you can potentially learn the skill. By default, level is a required condition. This script allows you to specify additional required conditions
Learn conditions are conditions that must be met in order to learn the skill. The learn condition is only checked when all required conditions are met. It is only checked once: if you did not meet the learn conditions when all required conditions are met, then that learning object expires and you won’t be able to learn from that object again.
However, you can have multiple copies of a learning object with different required conditions so that the actor has multiple chances at learning the skill.
Forget conditions are conditions that must be met in order to forget the skill. Once this condition has been met, the actor will forget the skill.
A single learning can have all three types of conditions, for example if you learn a skill at level 5, but then forget it once you reach level 10.
Download
Script: download here
Required: Core: Learning
Installation
Place this script below Core – Learning and above Main
Usage
To specify a required condition, use this note-tag in the Class Learning
object. Note the slash before the end of the tag.
<req condition: FORMULA />
To specify a learn condition, use the note-tag
<learn condition: FORMULA />
To specify a forget condition, use the note-tag
<forget condition: FORMULA />
Where the formula is any valid ruby statement that returns true or false.
There are some special variables for your formula:
a – the actor
p – game party
s – game switches
v – game variables
I cannot figure out how this script works. Help please.
Can I use this for MV too?
No, this is Ace only.
Can you make it so if there not a class they forget them say like a your a warrior you turn them into a mage they forget the warriors skills?
I was wondering, how does the ‘s’ and ‘v’ statements work?
this is probably a dumb question, how would I do a learn/requirement formula so that a certain switch or switches needed to be on in order to learn the skill?
You can use the formula
s[1]
To require switch 1 to be ON.
Similarly,
v[8] == 5
Would check whether variable 8 is equal to 5.
Aww sniggity snap, it works!
Now, if only I could find level-up events…
Is it possible to have it so that when Switch 32 "Hero went through Bloodmage ritual" is on and Variable 75 "Levels raised since became Bloodmage" is 5 or greater and the level of the actor is 25 or higher, even if these conditions were met after the actor passed level 25, they will learn the skill "Samaritan Surge"?
Script has been updated with more ways to set up your learnings.