I'm using the VE_CommandReplace plugin and was wondering if, instead of specifying a skill to replace my default attack, I could get the skill number from a variable.
The script works as follows:
<command replace: 'Attack', 'Limit', skill 66>
result = a.tp == 100;
</command replace>
But instead of writing "skill 66" could i write something like "$gameVariables.value(1)" so that the skill number was changed depending on the variable. So would look something like below but I'm no good at JavaScript so don't know how to write it if it is possible...
<command replace: 'Attack', 'Limit', skill $gameVariables.value(1)>
result = a.tp == 100;
</command replace>
The script works as follows:
<command replace: 'Attack', 'Limit', skill 66>
result = a.tp == 100;
</command replace>
But instead of writing "skill 66" could i write something like "$gameVariables.value(1)" so that the skill number was changed depending on the variable. So would look something like below but I'm no good at JavaScript so don't know how to write it if it is possible...
<command replace: 'Attack', 'Limit', skill $gameVariables.value(1)>
result = a.tp == 100;
</command replace>