Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Learn/forget skill?

Hi,

I've been trying to find out how to give/remove a skill from a character by a call script inside an event, and i tried using this line:
Code:
$game_party.actors[0].learn_skill(4)

And it seamed to work, and then i tried this line to remove the skill:
Code:
$game_party.actors[0].forget_skill(4)

and it didn't work at all..  And then, a while after i relized that both of those lines will make the player learn the skill..  :shock:
So i'm a bit confused, and my question is:
Is there a way by call script, to make a certain character learn/forget certain skills?
Thanks! :smile:

Over and out - Gando
 

khmp

Sponsor

In XP I got it to work using those exact lines to make Aluxes learn Remedy and then forget it. But I used two separate events for this. Do you have any other scripts that modify skill learning? I remember you asking a question about it. Although I don't know if it was you or someone else. My apology Gando.
 
Aaaah,  i'm sorry.. :down:
I looked through the script editor, and i saw that i had a script there that's modifying the skill learning. 
When i tried this I opened an old project where i sometimes test different script out, a clean project with no other scripts in it, then when i'm done i usually delete the scripts, but i had forgotten to delete this script..

Once again, sorry for creating a completely useless topic,
and thanks for the help! :thumb:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top