How to set up actions for RPG?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sir Skylight

I’m trying to set up actions for a character to perform. I was watching a video from GDQuest on their skill system, but I can’t seem to understand how they have it set up. From what I can tell, they’re storing scripts in a PackedScene or something in order for the character to use when a certain action is selected. I already have a script that is set up for my character to perform the attack, but I can’t seem to find a way to actually get the character to use said script. Am I doing something wrong here?

the question is a little generic, but if i understood correctly you should attach the script to a Node (one node for each skill) and instance these skill nodes to the character scene as child.
In this way you can access the skill script with $SkillNode.method()

Andrea | 2021-01-16 13:29