Learn Condition Formulas

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
This script allows you to specify custom conditions that must be met in order


to learn a skill.


There are two types of conditions


1. Required conditions


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





Download


Get it at Hime Works!
 
Last edited by a moderator:

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,309
Reaction score
531
First Language
indonesian
So let's say the actor reach lv 25 and then didn't fulfil the condition. Thus skill not learned. Does the actor learn the skill later when he fulfil the condition? Or lost forever?.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
The conditions are constantly checked whenever the actor is refreshed.


Learning a skill by level is just one condition.
 
Last edited by a moderator:

RandomIdoit

Legendary Bird
Veteran
Joined
Aug 12, 2013
Messages
38
Reaction score
2
First Language
English
Primarily Uses
Hm... would I be able to let someone only learn the skill if they had a certain item equipped?

The magic screen gets a little nasty with all those greyed-out-but-still-visible not usable magics.... I'm having it so that a certain variety of classes can only use, say, Blaze, if they have a fire crystal equipped as a weapon.

I've gotten it to work without scripting, but, again... all the spells are visible, just greyed out.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
^ why not just put the skill as a trait to the weapons?

or I think yanfly has a script that allows you to hide unusable skills

because I think using this script, you can learn the skill upon equipping the weapon, but it won't be unlearned when you remove the weapon...
 
Last edited by a moderator:

RandomIdoit

Legendary Bird
Veteran
Joined
Aug 12, 2013
Messages
38
Reaction score
2
First Language
English
Primarily Uses
Hm... well, thanks for pointing me in the right direction, at least... but...

the issue with the non-script answer would be that I wanted certain skills or spells to be learned by different monsters eventually...

such as...

Big Beetle with the Fire Crystal equipped would learn Firey Kick at level 5.

Slime with a Fire Crystal equipped would learn Blaze at level 5.

ect, ect.

I'll check out that script, and thank Yanfly once more for providing good scripting for free.

At least, I sure hope it's free...
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
wait, monsters can learn skills?
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,309
Reaction score
531
First Language
indonesian
i think he means he have actor that like pokemon (a monster).

i think since it use formula it can check for equipped item. but there will be flaw.

1) actor reach lv 5 and didn't equip fire crystal.

2) actor equip fire crystal and actor refreshed. it learn the skill. (since both condition - lv and item met).
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Not sure how yanfly is related to this but I don't think anyone distributes scripts for free just because yanfly does it.


I will release some new updates that will address the problem that estriole has pointed out later.


The new feature would basically make Learning objects valid only once. That is, once you are able to learn it, but you are missing certain requirements, you won't learn it, and you can't learn it again even if you meet all the requirements at a later time.


There are some other tricks built into the editor that I will be using to increase the flexibility of this script.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
How would you even be able to learn it if you're missing requirements???

Or do you specifically mean able to learn it based on level? So like if you reach the required level but misses some other requirements you won't learn it, forever?

That's good but I hope it comes as an additional only coz the current set-up is also useful, and I think it's a good method too... 

That way, we can make skills that can be learned as long as ur playing the game (the current set-up) and skills where you have only one-chance of learning (the proposed new mechanic)

This is specially useful when we don't want to base learning on level (like we just set it to level 1, then let the conditions do the rest)

or can we actually bypass the level requirement right now?
 
Last edited by a moderator:

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,309
Reaction score
531
First Language
indonesian
@hime: will waiting on that feature. it would be best if we can have both feature (learn once chance only and learn as long as condition met).

learn once chance => useful to unlock 'secret' built. need to equip certain item at certain level to learn skill (ex lv 5-10). when you miss it you won't be able to learn it anymore :D .
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Yes, these one-time learnings will be optional; you can still have regular learn condition formulas.

Or do you specifically mean able to learn it based on level? So like if you reach the required level but misses some other requirements you won't learn it, forever?
Not just level. Any learn condition formula. It is a simple solution if you think about it some more.


I am just adding on to what I have already written, not changing it (though the note-tag will change slightly due to some issues I didn't think of initially).

or can we actually bypass the level requirement right now?
No, if you need to ignore level set it to level 1 so that the level condition is always met.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Yeah, but in the one-time learning, if I use level 1 then does that mean that if I don't fulfill the other requirements at the start, then I'll never learn it?

I'm curious with the one-time learning thing... especially when having non-level based requirement (meaning as per your post, I need to set level requirement to 1)

like:

Requirement 1: I have 100 atk

Requirement 2: I have 200 magic

how will the one-time learning know when to check? is it via script calls?

IMO, it cannot be automatic right? since the level requirement is 1, it will already check at the start which is probably false, else I'd have no need for the custom formula anymore...
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
You can have your custom formula and still be a one-time thing.


The one-time check is performed automatically once the learn conditions have been met.


If it happens that the one-time check occurs when you're level 1, then yes, you will never learn the skill cause chances are you don't have 100 atk and 200 magic. However, if you actually did that, then it's your fault as a developer for poor design. The script provides a means to implement a mechanic, not a way to prevent you from doing silly things.


The learn condition formula is only useless if you make it a useless formula. Otherwise, it works just as it does now, and will not change in behavior even after I implement the one-time check feature.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Which is why I'm curious as to how the one-time check is done...

The one-time check is performed automatically once the learn conditions have been met.
I don't seem to understand this... 

Example:

Requirement 1: I have 100 atk

Requirement 2: I have 200 magic

Plus the fact that I need to set level to 1 since you said that you cannot bypass the level requirement field

When will the one-time check run in this case?
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
It will run when you reach level 1, have 100 atk, and have 200 magic.


If you have additional requirements that have not been satisfied, then you don't learn the skill.


The term "one-time check" is just a marketing thing: that's sort of what this script currently does, except because you will *always* learn it when the learning is actually checked, that "one-time check" is the same as saying "learning the skill"


The script just doesn't have support for these "additional requirements" that I mention, which will make it appear that there is a one-time check going on.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Okay... so it's not a real one-time check where you only check if you can learn it once...

which is what I think estriole wants (and what I want too)...

EDIT: Oh wait, we don't even need a "one-time check"... I think... since we can use a formula like level == 5 && atk > 100 etc right???

if that's right, then I'm sorry for any inconvenience that this might have brought you...

unless of course we want it to check exactly when you level-up to level 5, and never after that... but that can be done via events(CE) anyways...
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
It is a real one-time check: it is checked when the learn conditions are met, and never checked again.


When that check occurs, you will only learn the skill when you have met the additional requirements, which just happens to be another formula.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
My idea of one-time check was something like you check it only at a certain point, if you have the requirements at that point in time, you learn it, if not then you lose it forever...
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Yes, that's exactly what I am implementing.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top