So here's what I'd like to do;
I want to store the ID of a skill into a variable so that I can use that in a script call for conditional branches or to learn said skill.
I need something along these lines:
◆Script:$gameVariables.setValue(94, $dataSkills[358]);
◆Script:$gameActors.actor(1).learnSkill($gameVariables.value(94));
OR
◆Script:$gameVariables.setValue(94, $dataSkills[358]);
◆If:Script:$gameActors.actor(1).canUse($gameVariables.value(94))
◆
:End
This way, I could just assign my skill to a variable at the beginning of an event and didn't have to edit every instance of where said skill is referenced because every instance is already replaced by the variable.
EDIT: Okay I tested around a little more and it turns out I am just stupid.
For anyone that is interested, here is my solution:
◆Script:$gameVariables.setValue(X, Y);
◆Script:$gameActors.actor(Z).learnSkill($gameVariables.value(X));
X = The variable that stores the Skill ID
Y = The Skill ID
Z = ID of the actor that is supposed to learn the skill
For the conditional branch:
◆If:Script:$gameActors.actor(Z).isLearnedSkill($gameVariables.value(X))
Anyways, my issue is basically solved now, I feel really stupid finding the solution myself right after I post a thread for it.
I want to store the ID of a skill into a variable so that I can use that in a script call for conditional branches or to learn said skill.
I need something along these lines:
◆Script:$gameVariables.setValue(94, $dataSkills[358]);
◆Script:$gameActors.actor(1).learnSkill($gameVariables.value(94));
OR
◆Script:$gameVariables.setValue(94, $dataSkills[358]);
◆If:Script:$gameActors.actor(1).canUse($gameVariables.value(94))
◆
:End
This way, I could just assign my skill to a variable at the beginning of an event and didn't have to edit every instance of where said skill is referenced because every instance is already replaced by the variable.
EDIT: Okay I tested around a little more and it turns out I am just stupid.
For anyone that is interested, here is my solution:
◆Script:$gameVariables.setValue(X, Y);
◆Script:$gameActors.actor(Z).learnSkill($gameVariables.value(X));
X = The variable that stores the Skill ID
Y = The Skill ID
Z = ID of the actor that is supposed to learn the skill
For the conditional branch:
◆If:Script:$gameActors.actor(Z).isLearnedSkill($gameVariables.value(X))
Anyways, my issue is basically solved now, I feel really stupid finding the solution myself right after I post a thread for it.