- Joined
- Feb 21, 2020
- Messages
- 5
- Reaction score
- 2
- First Language
- Korean
- Primarily Uses
- RMMV
Hey there!
I wanted to make a skill, which performs another skill based on equipped weapon type.
So I used yanfly's skill core and somehow it's not working.
What I wrote was like this;
<After Eval>
var possibleSkills = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
var equipMainhand = user._equips[0];
var mainhandId = equipMainhand._itemId;
var MainWeaponType = $dataWeapons[mainhandId].wtypeId;
var index = MainWeaponType;
var skillId = possibleSkills[index];
BattleManager.queueForceAction(user, skillId, target);
}
</After Eval>
anyone can help me for this script? thank you
I wanted to make a skill, which performs another skill based on equipped weapon type.
So I used yanfly's skill core and somehow it's not working.
What I wrote was like this;
<After Eval>
var possibleSkills = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
var equipMainhand = user._equips[0];
var mainhandId = equipMainhand._itemId;
var MainWeaponType = $dataWeapons[mainhandId].wtypeId;
var index = MainWeaponType;
var skillId = possibleSkills[index];
BattleManager.queueForceAction(user, skillId, target);
}
</After Eval>
anyone can help me for this script? thank you