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.

SBABS Button help

Yeah, This shouldn't be too hard(unless your me). I want it so I can use 2 skills with 1 button in Nears ABS V3.

Code:
#----Skill Keys#--------------------------
@skill_key = {}

@skill_key[1] = 1
@skill_key[2] = 2
@skill_key[2] = 5
The number is the brackets [], is the button you press to do the skill.
The number after the = is the skill number.

As you can see, I have 2 numbers assigned to 2, but, 2 seperate actors use them. One hero uses [2]=2, one uses [2]=5.

But when I go to use the skill with [2]=2, IT don't work, unless of course I switch the script around, but then the other guy can't use his skill.

I tried to "If" "Elsif" and all that stuff, but it doesn't change. Anyone know how to fix this?

If you need me to post more parts of the script, Just tell me. Thanks.
 

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