- Joined
- Oct 24, 2016
- Messages
- 21
- Reaction score
- 10
- First Language
- English
- Primarily Uses
Right now, i'm using this
<On Creation Eval>
var skills = [3, 4, 5, 6]
var rdmId = skills[Math.floor(Math.random()*4)]
var trait = {code: 43, dataId: rdmId, value: 1}
item.traits.push(trait)
</On Creation Eval>
When the armor gets created, it'll pick a skill from 3,4,5,6 pool and assign it as an "add skill". But It is hard to deal with the description now since you'll never know which skill will be assign on that equipment.
So I want the description to show the skill name that is added when created.
I guess I should be using the same yanfly item core's <Info Eval> note tag, store the "skill that is assigned on the armor" as a variable and call it on description as for eg. "this armor adds /V[1] to the wearer"?
But I'm a noob at writing javascript myself, any help would be very appreciated
<On Creation Eval>
var skills = [3, 4, 5, 6]
var rdmId = skills[Math.floor(Math.random()*4)]
var trait = {code: 43, dataId: rdmId, value: 1}
item.traits.push(trait)
</On Creation Eval>
When the armor gets created, it'll pick a skill from 3,4,5,6 pool and assign it as an "add skill". But It is hard to deal with the description now since you'll never know which skill will be assign on that equipment.
So I want the description to show the skill name that is added when created.
I guess I should be using the same yanfly item core's <Info Eval> note tag, store the "skill that is assigned on the armor" as a variable and call it on description as for eg. "this armor adds /V[1] to the wearer"?
But I'm a noob at writing javascript myself, any help would be very appreciated