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.
Place this script below Core – Learning and above Main
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