Hello, I'm using Yanfly's skill cost manager and ran into a problem while trying to make a custom cost.
So basically, I want to make a skill usable only when actor with id 2 is in battle, and take tp from both actors (actor 1 uses the skill):
the skill note looks like this:
<custom cost: 100>
<custom cost colour: 0>
<custom cost requirement>
$gameActors.actor(2).isBattleMember()
</custon cost requirement>
<custom cost perform>
$game_actors[1].tp - 100
$game_actors[2].tp -100
</custom cost perform>
when I try to see the cost in skill menu in the game I get this error:
Script 'Skill Cost Manager' line 577: SyntaxError occured.
unterminated regexp meets end of file
the problem is in the custom cost requirement, when I take it out the cost shows but I need this requirement for the skill to make sense.
If there is some information missing, I will provide it.
Thanks in advance for the help!
So basically, I want to make a skill usable only when actor with id 2 is in battle, and take tp from both actors (actor 1 uses the skill):
the skill note looks like this:
<custom cost: 100>
<custom cost colour: 0>
<custom cost requirement>
$gameActors.actor(2).isBattleMember()
</custon cost requirement>
<custom cost perform>
$game_actors[1].tp - 100
$game_actors[2].tp -100
</custom cost perform>
when I try to see the cost in skill menu in the game I get this error:
Script 'Skill Cost Manager' line 577: SyntaxError occured.
unterminated regexp meets end of file
the problem is in the custom cost requirement, when I take it out the cost shows but I need this requirement for the skill to make sense.
If there is some information missing, I will provide it.
Thanks in advance for the help!