Hello!
I'm using YEP_SkillLearnSystem and I'm trying to set it up so that a skill costs a different item depending on who is trying to learn it. Without bogging down the topic with unnecessary details, I tried looking for something similar but none of the results were for this problem.
I managed to hobble something together from the search results for similar issues, but it isn't working and I'm 150% sure this is because I am doing this wrong.
<Learn Cost Eval>
if (user._actorId == 1)
{
skill.learnCost = $dataItems[item2], 1;
}
if (user._actorID == 2)
{
skill.learnCost = $dataItems[item3], 2;
}
</Learn Cost Eval>
Does anyone know how to make that correct, or possibly a better way to get at what I'm after?
I'm using YEP_SkillLearnSystem and I'm trying to set it up so that a skill costs a different item depending on who is trying to learn it. Without bogging down the topic with unnecessary details, I tried looking for something similar but none of the results were for this problem.
I managed to hobble something together from the search results for similar issues, but it isn't working and I'm 150% sure this is because I am doing this wrong.
<Learn Cost Eval>
if (user._actorId == 1)
{
skill.learnCost = $dataItems[item2], 1;
}
if (user._actorID == 2)
{
skill.learnCost = $dataItems[item3], 2;
}
</Learn Cost Eval>
Does anyone know how to make that correct, or possibly a better way to get at what I'm after?