Jump to content
MasterMoes

Make an actor learn a skill type through an event

Recommended Posts

For some reason, there is no option to make an actor learn a new skill type through events. It's either through weapons, armors, states or by pre-setting the skill type into the character or class. Is there a script call that permanently adds a skill type to an actor?

Share this post


Link to post
Share on other sites

Hmmm...I'm not sure. I've never actually looked into this myself.

Share this post


Link to post
Share on other sites
4 hours ago, MasterMoes said:

make an actor learn a new skill type through events

The best solution I can think of (cause the RGSS code doesn't point to a method of adding skill types) is to have a state where the skill type is added and then you would just inflict the actor with that state. then remove the state.

Make sure that the text for the state is empty and the icon is blank, then it would not be seen to the player.

That doesn't work. As soon as the state is removed the skill type is lost.

A bit of searching and I found Shaz's Dynamic Features script.

https://forums.rpgmakerweb.com/index.php?threads/dynamic-features.19645/

You can add skill types with a script call.

add_feature(class, id, feature_code, data_id[, value])

 

add_feature(:actor, 1, :stype_add, 1)

Adds skill type 1 to actor 1

Edited by roninator2
  • Like 1

Share this post


Link to post
Share on other sites

Thank you roninator, I don't know how I missed this. I'll see if it works out!

 

UPDATE: It works great. Thank you!

Edited by MasterMoes

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted