Script call for skill

J-G

Veteran
Member
Joined
Oct 4, 2019
Messages
606
Reaction score
143
First Language
English
Primarily Uses
RMMV
So I have several skills I want to have conditional learning for them and the system mv provides for that is only level. I'm going to be using skill learn by yamfly.

The thing is I don't know what Eval scrip calls to use.

For example. If skill 10 is used 8 times then x player will learn skill 11.
What would be the correct script to use for this?

Another one I'm trying to figure out is. If player has fought 120 times then learn skill 14.
How would I put this?

Can anyone help me please
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,695
Reaction score
1,113
First Language
Portuguese - Br
Primarily Uses
RMMZ
Hi!
I don't play too much with Mv battle. But I know that has a way for you to count battles:
$gameSystem.battleCount() This will return the number of how many battles did you fight.
Alternatively, you can set a variable to increase by 1, every time the player enters a battle.

For the skill thing, I have no idea how to track the times he used the skill =/
 

J-G

Veteran
Member
Joined
Oct 4, 2019
Messages
606
Reaction score
143
First Language
English
Primarily Uses
RMMV
Okay. I think I get it. How would I set the variable along with the script? I'm pretty bad at using script lol.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,695
Reaction score
1,113
First Language
Portuguese - Br
Primarily Uses
RMMZ
Okay. I think I get it. How would I set the variable along with the script? I'm pretty bad at using script lol.
Don't need to use script for the variable. You can put the code when the battler start in a event command, only in turn 1.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Or you put a variable as part of the damage formula so that it adds one to the value of the variable every time it is used. Counting battles tells you nothing as you would have no way of knowing if the skill was used in battle.

Have a conditional on the troop page of each encounter set to turn zero and then every subsequent turn which checks the value of the variable. When it reaches #n use the learn skill command. I'd also turn on a control switch which stopped that conditional check happening again.
 

J-G

Veteran
Member
Joined
Oct 4, 2019
Messages
606
Reaction score
143
First Language
English
Primarily Uses
RMMV
Ah ok, I think I'm starting to get it. Still a bit unsure. I'll give it a test run later on to see if I can manage to set it up properly.
 

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,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top