UPDATE: Thanks to Jragyn - working with the following...
Color coded below
$dataSkills[$gameParty.members()[0].battleSkillsRaw()[0]].iconIndex;
0 = party member number 0-3, 0 is the part leader
0 = equipped skill number 0-X, 0 is the first skill
ORIGINAL POST:
I am using Yanfly's Equipped Battle Skills: http://www.yanfly.moe/wiki/Equip_Battle_Skills_(YEP)
I want to capture the icon index of an equipped battle skill in to a variable. This is so that I can reference the skill icon in TextEx using \I[\v[x]].
I am new to javascript, so I am not sure if my syntax is correct. The below is my attempt to capture the first equipped skill icon index of the first part member into a variable.
Can you tell me where I am wrong? Thanks in advance for help!
$skill($gameParty.members()[0].battleSkillsRaw()[1]).iconIndex
$dataSkills[$gameParty.members()[0].battleSkillsRaw()[0]].iconIndex;Color coded below
$dataSkills[$gameParty.members()[0].battleSkillsRaw()[0]].iconIndex;
0 = party member number 0-3, 0 is the part leader
0 = equipped skill number 0-X, 0 is the first skill
ORIGINAL POST:
I am using Yanfly's Equipped Battle Skills: http://www.yanfly.moe/wiki/Equip_Battle_Skills_(YEP)
I want to capture the icon index of an equipped battle skill in to a variable. This is so that I can reference the skill icon in TextEx using \I[\v[x]].
I am new to javascript, so I am not sure if my syntax is correct. The below is my attempt to capture the first equipped skill icon index of the first part member into a variable.
Can you tell me where I am wrong? Thanks in advance for help!
$skill($gameParty.members()[0].battleSkillsRaw()[1]).iconIndex