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.
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.