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.

Skills and Scripts Question

Hello.

I'm currently working on a project using RMVX, with some friends, and we came upon a problem.

I want to be able to be in battle, and use a skill. This skill will need to activate a variable and then set it's number to the character number of the user.

For example: If Ralph (who is the first character in the actors list) were to use this skill, the skill would set the variable to 1. But if Ulrika (character slot 2) were to use the same skill, it would switch the variable to 2.

I've been searching in the common events, but I haven't had any luck with finding a way to do this.
If there is a way to do this, can someone help if so?

Also, a second question popped up:
Is there a way to make the script editor modify variables? If there is, what is the command?

EDIT: reworded the original post so it makes more sense... hopefully.
 

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