var a = $gameParty._targetActorId;
if($gameActors.actor(a).skills().contains($dataSkills[技能ID])){
$gameMessage.add("他已经学会了这个技能请不要再让他学")
$gameParty.gainItem($dataItems[技能书ID], 1);}
else{
if([color=Red]$gameActors.actor(a).level >= 10[/color]){
$gameActors.actor(a).learnSkill(技能ID);
$gameMessage.add("成功学了了技能: 火球");
}else{
$gameMessage.add("你的潜力不足");
$gameParty.gainItem($dataItems[技能书ID], 1);}
};
var a = $gameParty._targetActorId;
if($gameActors.actor(a).skills().contains($dataSkills[技能ID])){
$gameMessage.add("他已经学会了这个技能请不要再让他学")
$gameParty.gainItem($dataItems[技能书ID], 1);}
else{
if([color=Red]$gameActors.actor(a).level >= 10[/color]){
$gameActors.actor(a).learnSkill(技能ID);
$gameMessage.add("成功学了了技能: 火球");
}else{
$gameMessage.add("你的潜力不足");
$gameParty.gainItem($dataItems[技能书ID], 1);}
};