I'll try to keep this one short, but I'm currently working on a sideproject of mine where I'm trying to emulate... well Kingdom Hearts: Chain of Memories's card system via skills, but the code isn't working, I think because I need to clearly define what skill is it, but I have absolutely no idea how to. And don't worry, I only intend to use this skill for only one actor.
(also by personal request is there some sort of way i could have insert the code into custom cost display without using variables???)
EDIT:
(also by personal request is there some sort of way i could have insert the code into custom cost display without using variables???)
Code:
<Uses:3>
<MaxUses:3>
<cost display eval>
$gameVariables.setValue(19, skill.meta.uses);
$gameVariables.setValue(20, skill.meta.maxuses);
</cost display eval>
<custom cost display>
\v[19]/\v[20]
</custom cost display>
<custom requirement>
if skill.meta.Uses == 0 {
value = false;
} else {
value = true;
}
</custom requirement>
<custom execution>
if skill.meta.Uses >= 0 {
skill.meta.Uses = skill.meta.Uses - 1
}
</custom execution>
<setup action>
eval: BattleManager.addText(user.name() + " strikes " + target.name() + " with his bat!", 0)
immortal: targets,true
</setup action>
<target action>
action animation
wait for animation
action effect: target
death break
</target action>
<finish action>
immortal: targets,false
clear battle log
wait for effect
</finish action>
EDIT: