motif
Animal ({cat|dog|bear|bunny|horse|tiger|lion|leopard|other})
Flower
Fungi
Sea animal
Circus
Victorian
Sci-fi
Cyberpunk
Fantasy
Fairy tale
Dreamy
Abstract
Artistic
East asian({japanse|korean|chinese})
Mythological
Art deco
Bohemian
Gothic
Retro
Retro Futurism
Steampunk
Baroque
Minimalist
Art Nouveau
Surrealist
Rococo
Punk
Tropical
Military
Western
Harajuku
Hallyu
Hanfu
Lolita
Biker
Popstar
Cowboy
Country
Hip hop
Ethnic
African
Witch
Wizard
Angelic
Demonic
insect ({butterfly|moth|beetle|bee|wasp|other})
Arancnid ({spider|scorpion|other})
element
Cool
Hot
Flashy
Cute
Fresh
Elegant
Gorgeous ^[if (ra == "UR" || ra == "SSR") {10} else {1}]
Edgy ^[if (ra == "UR" || ra == "SSR") {10} else {1}]
Pure ^[if (ra == "UR" || ra == "SSR") {10} else {1}]
gender
Male ^3
Female ^4
Nonbinary({Androgynous|Fem|Masc}) ^0.5
rarity
UR ✦✦✦✦✦✦✦ ^0.5
SSR ✦✦✦✦✦✦ ^2
SR ✦✦✦✦✦ ^4
R ✦✦✦✦ ^6
role
Support
Tank
DPS
Healer
gimmick
Self-healing
Self-enhancer
Stance
Summoning
Combo system
Charge
Debuffer ^[if (r == "Support") {10} else {1}]
Buffer ^[if (r == "Support") {10} else {1}]
Turn manipulation ^0.5
Ultimate State
cast from hp
range
AoE
Splash
Chain
Single
Multi
Self ^[if (g == "Self-healing"||g == "Self-enhancer") {10} else {0}]
passive
Increases damage depending on condition
self-heals depending on condition ^[if (g == "Self-healing") {10} else {0}]
does a counter depending on condition
can change turn order depending on condition
abilities change depending on stance
has stacks which do certain things and stack up depending on condition
during certain things charges {main skill|basic attack|second skill|showcase}
Taking large damage boosts turn order
Increases evasion after each successful hits
skills have a chance to not consume flow
skills can overcharge dealing area damage
share a portion of healing received with the nearest ally ^[if (r == "healer") {10} else {0}]
attacks of a chance to stun the target
`
So here's my code. Says there's an issue with the syntax where '{' ruins the input. Would love if somebody took a look and find the problem curly because otherwise I'm beat.
Okay, so first you add the quotes between these curly brackets wrapped syntaxes (and remove the quotes around the none part) so they'll be evaluated properly:
And then change the rarity picking mechanism (evaluateItem first, create a matchable version, and then display the evaluated version instead of just selectOne and then display) so it'll be matched properly when picking a gimmick and an ability, to this:
[ra1 = rarity.evaluateItem, ra = ra1.match(/[A-Z]+/g)[0], ra1]