How do I display skills for the players?

boyflea

boyflea
Veteran
Joined
Dec 8, 2016
Messages
51
Reaction score
14
First Language
English
Primarily Uses
RMVXA
Hi,
in VX Ace, you can review SKILLS for each player in your party. As you level-up, you learn more skills based on your class setup.

The SKILL menu does a great job listing and showign SKILLS learned... but.
Say if you wanted to let the player decide which CLASS to go for during generation: it would be really helpful to list ALL SKILLS on the SKILLS menu, learned and pending.

So here's the thing: are there any methods or scripts which would list ALL SKILLS for a player class in the menus, learned and unlearned? Unlearned skills could still be accessed to review what they do, but obviously not used.

Its a fairly fundamental feature, but I'm struggling to find a method that would allow me to do this: pointers very welcome, thanks!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
You would need a script.
 

boyflea

boyflea
Veteran
Joined
Dec 8, 2016
Messages
51
Reaction score
14
First Language
English
Primarily Uses
RMVXA
ah I see, so I assume this topic is in the wrong section.

would need to investigate, under 'Window_SkillList'
1/ how to create a replacement for class Window_SkillList < Window_Selectable
2/ how to re-write this logic to show ALL skills:
def make_item_list
@data = @actor ? @actor.skills.select {|skill| include?(skill) } : []
end
3/ and then how to manage it being usable or not-usable, despite both types being displayed:
def enable?(item)
@actor && @actor.usable?(item)
end

I might have to consider another option, where all usable skills are shown on one screen - and then all possible skills available shown on another 'class' screen - or similar.

ok, thankyou for your response - apologies for being in the wrong place again.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
I am at work and don't have my laptop with me, so I can't check the exact details.

Under make_item_list you would need to add an additional check to see if the skill is in the list for the actor's class. The current test needs to stay, in case you give skills in other ways apart from levelling up. I expect it will be something like this:

Code:
@data = @actor ? @actor.skills.select {|skill| include?(skill) } <and something here to also include skills from the actor's class, but not to duplicate any of them when the actor has already learned them> || []
and under enable?(item) you would add a test that the actor has learned the skill.

I am not sure what the include? method does - it may be necessary to also call that when looking at the class skills.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
[move]RGSS3 Script Requests[/move]
 

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

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,243
Members
137,609
Latest member
shododdydoddy
Top